X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5ad9531aeffe7130cb9a83488f11b181519651d0..c64e6aaf073674de0142b2ba5cd8e57331df1ab9:/examples/gras_stub_generator diff --git a/examples/gras_stub_generator b/examples/gras_stub_generator index 9670c753ea..2791ff51ed 100755 --- a/examples/gras_stub_generator +++ b/examples/gras_stub_generator @@ -9,12 +9,13 @@ # under the terms of the license (GNU LGPL) which comes with this package. use strict; -use warnings; - +eval qq{ + use warnings; +}; # warnings not defined in 5.00503/sun4-solaris sub usage { my ($msg)=@_; - fail ($msg? "gras_stub_generator: $msg\n":""). + die ($msg? "gras_stub_generator: $msg\n":""). "gras_stub_generator: USAGE\n". " gras_stub_generator project_name deployment_file\n" } @@ -45,9 +46,11 @@ $warn #include #include -#include +#include "msg/msg.h" #include +char *gras_log=NULL; + EOF ; foreach (keys %process) { print OUT "int $_(int argc,char *argv[]);\n"; } @@ -57,13 +60,22 @@ print OUT "\n$warn\n"; foreach (keys %process) { print OUT<