#ifndef _SURF_SURFXML_PARSE_H
#define _SURF_SURFXML_PARSE_H
+#include <stdio.h> /* to have FILE */
#include "surf/surfxml.h"
-#include "xbt/sysdep.h" /* to have FILE */
#include "xbt/function_types.h"
/* Entry-point of the surfxml parser. */
extern int_f_void_t *surf_parse;
Instead, copy the parts we need (and fake when it's not there) */
XBT_PUBLIC(int) backtrace (void **__array, int __size);
-/* required ISO-C standard facilities */
-#include <errno.h>
-#include <stdio.h>
-
/*-*-* Emergency debuging: define this when the exceptions get crazy *-*-*/
#undef __EX_MAYDAY
#ifdef __EX_MAYDAY
+# include <stdio.h>
+#include <errno.h>
+
XBT_PUBLIC(int) gras_os_getpid(void);
# define MAYDAY_SAVE(m) printf("%d %s:%d save %p\n", \
gras_os_getpid(),__FILE__,__LINE__, \
#include <string.h>
#include <stdlib.h>
-#include <stdio.h>
#include <stdarg.h> /* va_list */
#include "xbt/misc.h"
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+#include <stdio.h> /* sprintf */
#include "gras/emul.h"
#include "gras/Virtu/virtu_sg.h"
#include "gras_modinter.h"
#ifndef METASIMGRID_PRIVATE_H
#define METASIMGRID_PRIVATE_H
+#include <stdio.h>
#include "msg/msg.h"
#include "surf/surf.h"
#include "xbt/fifo.h"
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+#include <stdio.h>
#include "xbt/misc.h"
#include "xbt/sysdep.h"
#include "xbt/log.h"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include <string.h>
+#include <stdio.h>
#include "xbt/ex.h"
#include "xbt/log.h"
#include "xbt/mallocator.h"
#endif
#ifdef SIMGRID_TEST
+#include <stdio.h>
#include "xbt/ex.h"
XBT_TEST_SUITE("xbt_ex","Exception Handling");
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+#include <stdio.h>
#include "xbt/sysdep.h"
#include "xbt/log.h"
#include "xbt/matrix.h"
#pragma hdrstop
#endif
+#include <stdio.h>
#include "xbt/sysdep.h"
#include "xbt/function_types.h"
#include "xbt/log.h"
$beginline+=2;
open OUT,">$outfile" || die "$progname: Cannot open output file '$outfile': $!\n";
print OUT $GENERATED;
+print OUT "#include <stdio.h>\n";
print OUT "#include \"xbt.h\"\n";
print OUT $GENERATED;
print OUT "# $beginline \"$infile\" \n";
if (! -e "simgrid_units_main.c") {
open OUT,">simgrid_units_main.c" || die "$progname: Cannot open main file 'simgrid_units_main.c': $!\n";
print OUT $GENERATED;
+ print OUT "#include <stdio.h>\n\n";
print OUT "#include \"xbt.h\"\n\n";
print OUT "extern xbt_test_unit_t _xbt_current_unit;\n\n";
print OUT "/* SGU: BEGIN PROTOTYPES */\n";