Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename a global to make its purpose clear (hopefully)
[simgrid.git] / teshsuite / surf / surf_usage / surf_usage2.c
index 8d3791e..7859613 100644 (file)
@@ -1,15 +1,11 @@
 /* A few basic tests for the surf library                                   */
 
-/* Copyright (c) 2004-2014. The SimGrid Team.
+/* Copyright (c) 2004-2015. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* 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 "simgrid/sg_config.h"
 #include "surf/surf.h"
@@ -76,8 +72,8 @@ void test(char *platform)
     now = surf_get_clock();
     XBT_DEBUG("Next Event : %g", now);
 
-    xbt_dynar_foreach(model_list, iter, model) {
-      XBT_DEBUG("\t %s actions", surf_model_name(model));
+    xbt_dynar_foreach(all_existing_models, iter, model) {
+      XBT_DEBUG("\t Actions");
       while ((action = surf_model_extract_failed_action_set((surf_model_t)model))) {
         XBT_DEBUG("\t * Failed : %p", action);
         surf_action_unref(action);
@@ -87,7 +83,7 @@ void test(char *platform)
         surf_action_unref(action);
       }
       if (surf_model_running_action_set_size((surf_model_t)model)) {
-        XBT_DEBUG("running %s", surf_model_name(model));
+        XBT_DEBUG("running that model");
         running = 1;
       }
     }
@@ -97,10 +93,6 @@ void test(char *platform)
 
 }
 
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
 int main(int argc, char **argv)
 {
   surf_init(&argc, argv);       /* Initialize some common structures */