/* 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"
}
}
-
void test(char *platform);
void test(char *platform)
{
do {
surf_action_t action = NULL;
now = surf_get_clock();
- DEBUG1("Next Event : " "%lg" "\n", now);
+ DEBUG1("Next Event : " "%g" "\n", now);
DEBUG0("\t CPU actions\n");
while ((action =
xbt_swag_extract(surf_cpu_resource->common_public->states.
} 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 */
return 1;
}
test(argv[1]);
+
+ surf_exit();
return 0;
}