summaryrefslogtreecommitdiff
path: root/src/common/malloc.h
diff options
context:
space:
mode:
authorshennetsind <notind@gmail.com>2013-06-08 12:46:37 -0700
committershennetsind <notind@gmail.com>2013-06-08 12:46:37 -0700
commit9fdea24a67a39e86c2ae4dd032f08021b35942dc (patch)
treefeea3cd428cee18be3da9bf0bee6d4570d9cad02 /src/common/malloc.h
parentb0f866ca419d87fcb3625b45e2437e0a0bb1810e (diff)
parentd73783f22b2bb881aab74524d153d89a5932a199 (diff)
downloadhercules-9fdea24a67a39e86c2ae4dd032f08021b35942dc.tar.gz
hercules-9fdea24a67a39e86c2ae4dd032f08021b35942dc.tar.bz2
hercules-9fdea24a67a39e86c2ae4dd032f08021b35942dc.tar.xz
hercules-9fdea24a67a39e86c2ae4dd032f08021b35942dc.zip
Merge pull request #4 from Earisu/master
Attempt to Merge Earisu's Hercules
Diffstat (limited to 'src/common/malloc.h')
-rw-r--r--src/common/malloc.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/common/malloc.h b/src/common/malloc.h
index 34a26b56e..834781905 100644
--- a/src/common/malloc.h
+++ b/src/common/malloc.h
@@ -30,11 +30,11 @@
#undef LOG_MEMMGR
#endif
-# define aMalloc(n) malloclib->malloc (n,ALC_MARK)
-# define aCalloc(m,n) malloclib->calloc (m,n,ALC_MARK)
-# define aRealloc(p,n) malloclib->realloc (p,n,ALC_MARK)
-# define aStrdup(p) malloclib->astrdup (p,ALC_MARK)
-# define aFree(p) malloclib->free (p,ALC_MARK)
+# define aMalloc(n) iMalloc->malloc (n,ALC_MARK)
+# define aCalloc(m,n) iMalloc->calloc (m,n,ALC_MARK)
+# define aRealloc(p,n) iMalloc->realloc (p,n,ALC_MARK)
+# define aStrdup(p) iMalloc->astrdup (p,ALC_MARK)
+# define aFree(p) iMalloc->free (p,ALC_MARK)
/////////////// Buffer Creation /////////////////
// Full credit for this goes to Shinomori [Ajarn]
@@ -78,7 +78,9 @@ struct malloc_interface {
size_t (*usage) (void);
void (*init) (void);
void (*final) (void);
-} malloclib_s;
+} iMalloc_s;
-struct malloc_interface *malloclib;
+void memmgr_report (int extra);
+
+struct malloc_interface *iMalloc;
#endif /* _MALLOC_H_ */