Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s/testsuite/cunit/
[simgrid.git] / tools / gras / stub_generator.c
index 2e15a95..e4affce 100644 (file)
@@ -9,7 +9,8 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "xbt/sysdep.h"
-#include "surf/surf_parse.h"
+#include "xbt/log.h"
+#include "surf/surf_parse_private.h"
 #include "surf/surf.h"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(stubgen,gras,"Stub generator");
@@ -164,7 +165,7 @@ static void generate_sim(char *project)
   fprintf(OUT, "%s", "int main (int argc,char *argv[]) {\n" 
                      "\n" 
                     "  /*  Simulation setup */\n" 
-                     "  MSG_global_init_args(&argc,argv);\n" 
+                     "  MSG_global_init(&argc,argv);\n" 
                      "  if (argc != 3) {\n" 
                      "    fprintf(stderr, \"Usage: %s platform_file application_description.txt [--gras-log=...]\\n\",argv[0]);\n" 
                      "    exit(1);\n" 
@@ -602,6 +603,6 @@ int main(int argc, char *argv[])
   generate_deployment(project_name, deployment_file);
 
   free(warning);
-  surf_finalize();
+  surf_exit();
   return 0;
 }