Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill unused includes, and put the remaining ones at the top of the file.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 21 Dec 2019 20:33:05 +0000 (21:33 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 21 Dec 2019 21:07:18 +0000 (22:07 +0100)
examples/deprecated/msg/mc/bugged1_liveness.c
examples/smpi/mc/bugged1_liveness.c
examples/smpi/mc/mutual_exclusion.c
include/xbt/virtu.h
src/surf/surf_interface.hpp

index 8fd8490..d519d5d 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <simgrid/modelchecker.h>
 #include <simgrid/msg.h>
+#include <xbt/dynar.h>
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(bugged1_liveness, "my log messages");
 
index 7b34808..8b9a4e6 100644 (file)
@@ -21,6 +21,7 @@
 #include <stdio.h>
 #include <mpi.h>
 #include <simgrid/modelchecker.h>
+#include <xbt/dynar.h>
 
 #define GRANT_TAG 0
 #define REQUEST_TAG 1
index 9a3de8c..eec4663 100644 (file)
@@ -7,6 +7,7 @@
 #include <stdio.h>
 #include <mpi.h>
 #include <simgrid/modelchecker.h>
+#include <xbt/dynar.h>
 
 #define GRANT_TAG 0
 #define REQUEST_TAG 1
index 05be643..e19caa7 100644 (file)
@@ -9,21 +9,11 @@
 #define XBT_VIRTU_H
 
 #include <xbt/base.h>
-#include <xbt/dynar.h>
-#include <xbt/function_types.h>
-#include <xbt/misc.h>
-
-SG_BEGIN_DECL
-
-XBT_PUBLIC const char* xbt_procname(void);
-
-XBT_PUBLIC int xbt_getpid(void);
-
-SG_END_DECL
 
 #ifdef __cplusplus
 #include <string>
 #include <vector>
+
 namespace simgrid {
 namespace xbt {
 
@@ -35,4 +25,13 @@ XBT_PUBLIC_DATA std::vector<std::string> cmdline;
 } // namespace xbt
 } // namespace simgrid
 #endif
+
+SG_BEGIN_DECL
+
+XBT_PUBLIC const char* xbt_procname(void);
+
+XBT_PUBLIC int xbt_getpid(void);
+
+SG_END_DECL
+
 #endif /* XBT_VIRTU_H */
index ef68675..d577c6d 100644 (file)
@@ -8,6 +8,7 @@
 
 #include "src/internal_config.h"
 #include "src/surf/surf_private.hpp"
+#include "xbt/function_types.h"
 
 #include <cmath>
 #include <set>