Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove internal definitions from public config header
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 7 Mar 2016 19:42:40 +0000 (20:42 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 7 Mar 2016 20:20:04 +0000 (21:20 +0100)
include/simgrid_config.h.in
include/smpi/smpi.h
include/xbt/mmalloc.h
src/simix/RawContext.cpp
src/xbt/automaton/automatonparse_promela.c
src/xbt/mmalloc/mm_module.c
src/xbt/mmalloc/mmorecore.c

index f310d59..a33a432 100644 (file)
 #define SIMGRID_VERSION_STRING "@SIMGRID_VERSION_STRING@"
 #define SIMGRID_VERSION_BANNER "@SIMGRID_VERSION_BANNER@"
 
-/* Version X.Y.Z will get version number XYZ: all digits concatenated without dots
- * (with Y and Z must be on two positions)*/
+/* Version X.Y.Z will get version number XYZ: all digits concatenated without dots (with Y and Z must be on two positions) */
 #define MAKE_SIMGRID_VERSION(major, minor, patch)   (100UL * (100UL * (major) + (minor)) + (patch))
 #define SIMGRID_VERSION MAKE_SIMGRID_VERSION(SIMGRID_VERSION_MAJOR, SIMGRID_VERSION_MINOR, SIMGRID_VERSION_PATCH)
 
-/* Define to 1 if you have the <unistd.h> header file. */
-#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
-
 /* Whether mallocators were enabled in ccmake or not. */
 #define MALLOCATOR_COMPILED_IN @MALLOCATOR_IS_WANTED@
 
-/* Define if xbt contexts are based on our threads implementation or not */
-#cmakedefine HAVE_THREAD_CONTEXTS @HAVE_THREAD_CONTEXTS@
-
 /* If __thread is available */
 #cmakedefine HAVE_THREAD_LOCAL_STORAGE @HAVE_THREAD_LOCAL_STORAGE@
 
-/* Define to 1 if mmalloc is compiled in. */
-#cmakedefine HAVE_MMALLOC @HAVE_MMALLOC@
-
 #cmakedefine HAVE_JEDULE @HAVE_JEDULE@ /* Was Jedule compiled in?  */
 #cmakedefine HAVE_MC     @HAVE_MC@     /* Was the model-checking compiled in? */
 #cmakedefine HAVE_NS3    @HAVE_NS3@    /* Was the NS3 support compiled in? */
index e3eeca7..eaf101b 100644 (file)
@@ -7,10 +7,7 @@
 #ifndef SMPI_H
 #define SMPI_H
 
-#include <simgrid_config.h>
-#ifdef HAVE_UNISTD_H
 #include <unistd.h>
-#endif
 #include <sys/time.h>
 
 #include <stddef.h>
index 419a836..fb62d48 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef MMALLOC_H
 #define MMALLOC_H 1
 
-#include <simgrid_config.h>
+#include "src/internal_config.h"
 #ifdef HAVE_MMALLOC
 
 #ifdef HAVE_STDDEF_H
index d131015..96cedd1 100644 (file)
 #include <utility>
 #include <functional>
 
-#include <xbt/log.h>
-#include <xbt/parmap.h>
-#include <xbt/dynar.h>
+#include "src/internal_config.h" 
+
+#include "xbt/log.h"
+#include "xbt/parmap.h"
+#include "xbt/dynar.h"
 
 #include "smx_private.h"
 #include "smx_private.hpp"
index 44758e3..2ed7b56 100644 (file)
@@ -7,6 +7,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "xbt/automaton.h"
+#include "src/internal_config.h"
 #include <errno.h>
 #include <string.h>             /* strerror */
 
index 3440236..fea22d3 100644 (file)
@@ -27,6 +27,7 @@
    not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include "src/internal_config.h"
 #include <sys/types.h>
 #include <fcntl.h>              /* After sys/types.h, at least for dpx/2.  */
 #include <sys/stat.h>
index b99f322..e78ba90 100644 (file)
@@ -10,6 +10,7 @@
 
    Contributed by Fred Fish at Cygnus Support.   fnf@cygnus.com */
 
+#include "src/internal_config.h"
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>             /* Prototypes for lseek */
 #endif