Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reduce the amount of includes to speed up recompilations
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 23 Feb 2016 18:44:27 +0000 (19:44 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 23 Feb 2016 18:44:27 +0000 (19:44 +0100)
examples/msg/actions/actions.c
examples/msg/exception/exception.c
include/simgrid/forward.h
include/simgrid/jedule/jedule_platform.h
include/xbt/hash.h
src/instr/jedule/jedule_platform.cpp
src/mc/mc_pair.cpp
src/mc/mc_record.cpp
src/xbt/xbt_sha.c
teshsuite/mc/dwarf/dwarf.cpp

index 81ef04e..f8b1b88 100644 (file)
@@ -8,7 +8,6 @@
 #include <stdlib.h>
 #include "simgrid/msg.h"        /* Yeah! If you want to use msg, you need to include simgrid/msg.h */
 #include "simgrid/simix.h"      /* semaphores for the barrier */
-#include "xbt.h"                /* calloc, printf */
 #include <xbt/replay.h>
 
 /** @addtogroup MSG_examples
index 18d5c10..3a11d2e 100644 (file)
@@ -4,8 +4,8 @@
 /* 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 "xbt/log.h"
 #include "simgrid/msg.h"
-#include "xbt.h"
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test_exception,
                              "Messages specific for this msg example");
index 316a59a..629feb6 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef SG_PLATF_TYPES_H
 #define SG_PLATF_TYPES_H
 
-#include <xbt.h>
-
 #ifdef __cplusplus
 
 namespace simgrid {
@@ -51,7 +49,7 @@ typedef surf_NetCard *sg_netcard_t;
 typedef surf_Resource *sg_resource_t;
 
 // Types which are in fact dictelmt:
-typedef xbt_dictelm_t sg_storage_t;
+typedef struct s_xbt_dictelm *sg_storage_t;
 
 typedef struct tmgr_trace *tmgr_trace_t; /**< Opaque structure defining an availability trace */
 
index f74ddf6..cb1552d 100644 (file)
@@ -10,7 +10,7 @@
 #include "simgrid_config.h"
 
 #include "xbt/dynar.h"
-#include "xbt/hash.h"
+#include "xbt/dict.h"
 
 #ifdef HAVE_JEDULE
 
index d66ec43..7bcea4f 100644 (file)
@@ -8,7 +8,8 @@
 
 #ifndef XBT_HASH_H
 #define XBT_HASH_H
-#include "xbt/str.h"
+
+#include "xbt/misc.h"
 
 SG_BEGIN_DECL()
 
index b585d51..73beb15 100644 (file)
@@ -4,12 +4,14 @@
 /* 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 <stdlib.h>
-#include <string.h>
+#include "simgrid/jedule/jedule_platform.h"
+
 #include "xbt/asserts.h"
 #include "xbt/dynar.h"
+#include "xbt/str.h"
 
-#include "simgrid/jedule/jedule_platform.h"
+#include <stdlib.h>
+#include <string.h>
 
 #ifdef HAVE_JEDULE
 
index 129e69a..dcbff99 100644 (file)
@@ -4,7 +4,6 @@
 /* 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 <xbt.h>
 #include "src/mc/mc_liveness.h"
 #include "src/mc/mc_private.h"
 
index 824466a..4541cef 100644 (file)
@@ -8,8 +8,7 @@
 #include <cstdio>
 #include <cstdlib>
 
-#include <xbt.h>
-#include <simgrid/simix.h>
+#include "simgrid/simix.h"
 
 #include "src/mc/mc_replay.h"
 #include "src/mc/mc_record.h"
index d6223e2..baa24c3 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "xbt/sysdep.h"
 #include "xbt/hash.h"
+#include <stdio.h> /* sprintf */
 
 struct s_xbt_sha_ {
   unsigned int hash[5];
index 7e1a2e5..83862c4 100644 (file)
@@ -11,7 +11,6 @@
 #include <string.h>
 #include <assert.h>
 
-#include <xbt.h>
 #include <mc/mc.h>
 
 #include "mc/datatypes.h"