X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f783ed4680c6862a1b7543237e89d1221334bae0..f4d117984401d94136223dc1d254a288c06606f2:/src/bindings/lua/lua_stub_generator.c diff --git a/src/bindings/lua/lua_stub_generator.c b/src/bindings/lua/lua_stub_generator.c index 87e2c8ce2a..0b13f2691d 100644 --- a/src/bindings/lua/lua_stub_generator.c +++ b/src/bindings/lua/lua_stub_generator.c @@ -7,6 +7,9 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "simgrid_lua.h" +#include "xbt.h" +#include +#include #define WARN "/***********\n * DO NOT EDIT! THIS FILE HAS BEEN AUTOMATICALLY GENERATED FROM %s BY gras_stub_generator\n ***********/\n" #define SIM_SOURCENAME "_%s_simulator.c" @@ -67,7 +70,9 @@ const char *SIM_MAIN_POSTEMBULE = "\n" "\n" " /* cleanup the place */\n" " gras_clean();\n" - " if (gras_log)\n" " free(gras_log);\n" " return 0;\n" "}\n"; + " free(gras_log);\n" + " return 0;\n" + "}\n"; /*************************************** @@ -322,7 +327,7 @@ void generate_makefile_local(const char *project) "\t$(CC) $(INCLUDES) $(DEFS) $(CFLAGS) -c -o $@ $<\n" "\n"); fprintf(OUT, - "## Rules for tarballs and cleaning\n" + "## Rules for tarballs and cleaning\n" "DIST_FILES= $(EXTRA_DIST) $(GENERATED_C_FILES) $(PRECIOUS_C_FILES) " MAKEFILE_FILENAME_LOCAL " " /*MAKEFILE_FILENAME_REMOTE */ "\n" "distdir: $(DIST_FILES)\n" "\trm -rf $(DISTDIR)\n"