A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
C files also need to know whether they're compiling with CSDP or not.
[simgrid.git]
/
testsuite
/
surf
/
surf_usage.c
diff --git
a/testsuite/surf/surf_usage.c
b/testsuite/surf/surf_usage.c
index
d7a2749
..
7296f60
100644
(file)
--- a/
testsuite/surf/surf_usage.c
+++ b/
testsuite/surf/surf_usage.c
@@
-6,6
+6,10
@@
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+
+#ifdef __BORLANDC__
+#pragma hdrstop
+#endif
#include <stdio.h>
#include "surf/surf.h"
#include <stdio.h>
#include "surf/surf.h"
@@
-100,7
+104,7
@@
void test(char *platform)
do {
surf_action_t action = NULL;
now = surf_get_clock();
do {
surf_action_t action = NULL;
now = surf_get_clock();
- DEBUG1("Next Event : " "%
l
g" "\n", now);
+ DEBUG1("Next Event : " "%g" "\n", now);
DEBUG0("\t CPU actions\n");
while ((action =
xbt_swag_extract(surf_cpu_resource->common_public->states.
DEBUG0("\t CPU actions\n");
while ((action =
xbt_swag_extract(surf_cpu_resource->common_public->states.
@@
-131,10
+135,12
@@
void test(char *platform)
} while (surf_solve()>=0.0);
DEBUG0("Simulation Terminated\n");
} while (surf_solve()>=0.0);
DEBUG0("Simulation Terminated\n");
-
- surf_finalize();
}
}
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+
int main(int argc, char **argv)
{
surf_init(&argc, argv); /* Initialize some common structures */
int main(int argc, char **argv)
{
surf_init(&argc, argv); /* Initialize some common structures */
@@
-143,5
+149,7
@@
int main(int argc, char **argv)
return 1;
}
test(argv[1]);
return 1;
}
test(argv[1]);
+
+ surf_exit();
return 0;
}
return 0;
}