#include "xbt/log.h"
#include "surf/surfxml_parse.h"
#include "surf/surf.h"
+#include "portable.h" /* Needed for the time of the SIMIX convertion */
#include <stdarg.h>
fprintf(OUT, "%s", "int main (int argc,char *argv[]) {\n"
"\n"
" /* Simulation setup */\n"
- " gras_global_init(&argc,argv);\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"
" exit(1);\n"
" }\n"
"\n");
- fprintf(OUT,
- " //MSG_paje_output(\"%s.trace\");\n"
- " //MSG_set_channel_number(XBT_MAX_CHANNEL); /* Using at most 10 channel (ports) per host. Change it here if needed */\n"
+ fprintf(OUT,
" gras_create_environment(argv[1]);\n"
"\n"
- " /* Application deployment */\n",
- project);
+ " /* Application deployment */\n"
+ );
xbt_dict_foreach(process_function_set,cursor,key,data) {
fprintf(OUT," gras_function_register(\"%s\", launch_%s);\n",key,key);
}
"#include <signal.h>\n" \
"#include <gras.h>\n" \
"\n" \
- "extern const char * XBT_PUBLIC_DATA _gras_procname;\n" \
+ "XBT_PUBLIC_DATA(const char *) _gras_procname;\n" \
"/* user code */\n" \
"int %s(int argc, char *argv[]);\n" \
"\n" \