git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@164
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
print OUT<<EOF
int launch_$_(int argc, char *argv[]) {
print OUT<<EOF
int launch_$_(int argc, char *argv[]) {
- if (gras_process_init()) exit(1);
- if (gras_process_exit()) exit(1);
-
int errcode;
gras_init(&argc,argv);
int errcode;
gras_init(&argc,argv);
errcode=$pname(argc,argv);
errcode=$pname(argc,argv);
gras_exit();
return errcode;
gras_exit();
return errcode;
TRYFAIL(gras_log_control_set(defaultlog));
}
TRYFAIL(gras_log_control_set(defaultlog));
}
+ gras_process_init(); /* calls procdata_init, which calls dynar_new */
/** init other submodules */
gras_msg_init();
gras_trp_init();
/** init other submodules */
gras_msg_init();
gras_trp_init();
void
gras_exit(){
INFO0("Exiting GRAS");
void
gras_exit(){
INFO0("Exiting GRAS");
gras_msg_exit();
gras_trp_exit();
gras_datadesc_exit();
gras_msg_exit();
gras_trp_exit();
gras_datadesc_exit();