Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move an internal header out of the public directory
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 20 Mar 2018 12:10:32 +0000 (13:10 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 20 Mar 2018 13:47:54 +0000 (14:47 +0100)
src/include/xbt/mmalloc.h [moved from include/xbt/mmalloc.h with 87% similarity]
tools/cmake/DefinePackages.cmake

similarity index 87%
rename from include/xbt/mmalloc.h
rename to src/include/xbt/mmalloc.h
index 62d0a00..ab6ca00 100644 (file)
 #include "src/internal_config.h"
 #if HAVE_MMALLOC
 
 #include "src/internal_config.h"
 #if HAVE_MMALLOC
 
-# include <sys/types.h>        /* for size_t */
-# include <stdio.h>            /* for NULL */
+#include <stdio.h>     /* for NULL */
+#include <sys/types.h> /* for size_t */
 
 
-#include "xbt/dynar.h"
 #include "xbt/dict.h"
 #include "xbt/dict.h"
+#include "xbt/dynar.h"
 
 SG_BEGIN_DECL()
 
 
 SG_BEGIN_DECL()
 
@@ -27,13 +27,13 @@ SG_BEGIN_DECL()
  * The heap structure itself is an opaque object that shouldnt be messed with.
  */
 typedef struct mdesc s_xbt_mheap_t;
  * The heap structure itself is an opaque object that shouldnt be messed with.
  */
 typedef struct mdesc s_xbt_mheap_t;
-typedef struct mdesc *xbt_mheap_t;
+typedef struct mdescxbt_mheap_t;
 
 /* Allocate SIZE bytes of memory (and memset it to 0).  */
 XBT_PUBLIC void* mmalloc(xbt_mheap_t md, size_t size);
 
 /* Allocate SIZE bytes of memory (and don't mess with it) */
 
 /* Allocate SIZE bytes of memory (and memset it to 0).  */
 XBT_PUBLIC void* mmalloc(xbt_mheap_t md, size_t size);
 
 /* Allocate SIZE bytes of memory (and don't mess with it) */
-void *mmalloc_no_memset(xbt_mheap_t mdp, size_t size);
+voidmmalloc_no_memset(xbt_mheap_t mdp, size_t size);
 
 /* Re-allocate the previously allocated block in void*, making the new block SIZE bytes long.  */
 XBT_PUBLIC void* mrealloc(xbt_mheap_t md, void* ptr, size_t size);
 
 /* Re-allocate the previously allocated block in void*, making the new block SIZE bytes long.  */
 XBT_PUBLIC void* mrealloc(xbt_mheap_t md, void* ptr, size_t size);
@@ -59,11 +59,11 @@ xbt_mheap_t mmalloc_set_current_heap(xbt_mheap_t new_heap);
 xbt_mheap_t mmalloc_get_current_heap(void);
 
 size_t mmalloc_get_bytes_used(xbt_mheap_t);
 xbt_mheap_t mmalloc_get_current_heap(void);
 
 size_t mmalloc_get_bytes_used(xbt_mheap_t);
-ssize_t mmalloc_get_busy_size(xbt_mheap_t, void *ptr);
+ssize_t mmalloc_get_busy_size(xbt_mheap_t, voidptr);
 
 void* malloc_no_memset(size_t n);
 
 SG_END_DECL()
 
 #endif
 
 void* malloc_no_memset(size_t n);
 
 SG_END_DECL()
 
 #endif
-#endif                          /* SIMGRID_MMALLOC_H */
+#endif /* SIMGRID_MMALLOC_H */
index 7725339..6d81ef1 100644 (file)
@@ -8,6 +8,7 @@ set(EXTRA_DIST
   src/include/simgrid/sg_config.h
   src/include/surf/surf.hpp
   src/include/xbt/parmap.hpp
   src/include/simgrid/sg_config.h
   src/include/surf/surf.hpp
   src/include/xbt/parmap.hpp
+  src/include/xbt/mmalloc.h
   src/mc/mc_mmu.hpp
   src/mc/mc_record.hpp
   src/mc/PageStore.hpp
   src/mc/mc_mmu.hpp
   src/mc/mc_record.hpp
   src/mc/PageStore.hpp
@@ -741,7 +742,6 @@ set(headers_to_install
   include/xbt/log.hpp
   include/xbt/mallocator.h
   include/xbt/misc.h
   include/xbt/log.hpp
   include/xbt/mallocator.h
   include/xbt/misc.h
-  include/xbt/mmalloc.h
   include/xbt/module.h
   include/xbt/parmap.h
   include/xbt/range.hpp
   include/xbt/module.h
   include/xbt/parmap.h
   include/xbt/range.hpp