Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Massive cleanups in ruby. Not yet working (segfault on task reception)
[simgrid.git] / testsuite / surf / trace_usage.c
index 9232409..1d0dcb3 100644 (file)
@@ -6,6 +6,9 @@
 
 /* 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 <stdlib.h>
 #include <stdio.h>
@@ -14,7 +17,7 @@
 #include "surf/surf.h"
 
 #include "xbt/log.h"
-XBT_LOG_NEW_DEFAULT_CATEGORY(surf_test,"Messages specific for surf example");
+XBT_LOG_NEW_DEFAULT_CATEGORY(surf_test, "Messages specific for surf example");
 
 void test(void);
 void test(void)
@@ -34,7 +37,7 @@ void test(void)
   while ((next_event_date = tmgr_history_next_date(history)) != -1.0) {
     DEBUG1("%g" " : \n", next_event_date);
     while (tmgr_history_get_next_event_leq(history, next_event_date,
-                                          &value, (void **) &resource)) {
+                                           &value, (void **) &resource)) {
       DEBUG2("\t %s : " "%g" "\n", resource, value);
     }
     if (next_event_date > 1000)
@@ -46,10 +49,14 @@ void test(void)
   free(host_A);
 }
 
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+
 
 int main(int argc, char **argv)
 {
-  surf_init(&argc,argv);
+  surf_init(&argc, argv);
   test();
   surf_exit();
   return 0;