2
* DO NOT EDIT! THIS FILE HAS BEEN AUTOMATICALLY GENERATED FROM /home/mquinson/Code/simgrid/examples/gras/properties/properties.xml BY gras_stub_generator
5
/* specific to Borland Compiler */
16
int alice(int argc,char *argv[]);
17
int bob(int argc,char *argv[]);
19
int launch_alice(int argc,char *argv[]);
20
int launch_bob(int argc,char *argv[]);
23
* DO NOT EDIT! THIS FILE HAS BEEN AUTOMATICALLY GENERATED FROM /home/mquinson/Code/simgrid/examples/gras/properties/properties.xml BY gras_stub_generator
26
int launch_alice(int argc, char **argv) {
33
myargv=malloc((argc+1) * sizeof(char**));
34
for (i=0; i<argc; i++)
36
myargv[myargc++] = gras_log;
38
retcode = alice(myargc,myargv);
43
int launch_bob(int argc, char **argv) {
50
myargv=malloc((argc+1) * sizeof(char**));
51
for (i=0; i<argc; i++)
53
myargv[myargc++] = gras_log;
55
retcode = bob(myargc,myargv);
62
* DO NOT EDIT! THIS FILE HAS BEEN AUTOMATICALLY GENERATED FROM /home/mquinson/Code/simgrid/examples/gras/properties/properties.xml BY gras_stub_generator
65
/* specific to Borland Compiler */
70
int main (int argc,char *argv[]) {
72
/* Simulation setup */
73
gras_global_init(&argc,argv);
75
fprintf(stderr, "Usage: %s platform.xml deployment.xml [--log=...]\n",argv[0]);
79
gras_create_environment(argv[1]);
81
/* Application deployment */
82
gras_function_register("alice", launch_alice);
83
gras_function_register("bob", launch_bob);
86
gras_launch_application(argv[2]);
88
/* Run the simulation */
91
/* cleanup the place */