Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bug Fix. This function used to return the last task of the list when no matching...
[simgrid.git] / tools / gras / unix_stub_generator.c
index 580b420..bce8ab5 100644 (file)
 #include <stdarg.h>
 
 
-
+#ifdef _WIN32
+/* stupid stubs so that it compiles on windows */
+void generate_sim(char *project) {}
+void generate_rl(char *project) {}
+void generate_makefile_local(char *project, char *deployment) {}
+#else 
+/* real implementation */
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(stubgen);
 
 
@@ -145,7 +151,7 @@ void generate_sim(char *project) {
           "  /*  Simulation setup */\n" 
           "  gras_global_init(&argc,argv);\n"
           "  if (argc != 3) {\n" 
-          "    fprintf(stderr, \"Usage: %s platform.xml deployment.xml [--gras-log=...]\\n\",argv[0]);\n" 
+          "    fprintf(stderr, \"Usage: %s platform.xml deployment.xml [--log=...]\\n\",argv[0]);\n" 
           "    exit(1);\n" 
           "  }\n"
           "\n");
@@ -450,3 +456,4 @@ static void print(void *p)
 {
   printf("%p",p);
 }
+#endif