diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-19 17:35:54 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-19 17:35:54 +0000 |
commit | 7db1af0361c86ecb85dd635eacf86904b24945cc (patch) | |
tree | c3dbc22408e4323f916fb1f1171f7aa73fa2aecc /internal.h | |
parent | e6b213774cac20e1cd53daf0a7032434a2f42a1c (diff) | |
download | busybox-w32-7db1af0361c86ecb85dd635eacf86904b24945cc.tar.gz busybox-w32-7db1af0361c86ecb85dd635eacf86904b24945cc.tar.bz2 busybox-w32-7db1af0361c86ecb85dd635eacf86904b24945cc.zip |
Moved some code and add a coupld #defines to support use of dmalloc.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@878 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 5cf72d6d3..52419e34e 100644 --- a/internal.h +++ b/internal.h | |||
@@ -26,6 +26,10 @@ | |||
26 | 26 | ||
27 | #include "busybox.def.h" | 27 | #include "busybox.def.h" |
28 | 28 | ||
29 | #ifdef DMALLOC | ||
30 | #include "dmalloc.h" | ||
31 | #endif | ||
32 | |||
29 | #include <stdlib.h> | 33 | #include <stdlib.h> |
30 | #include <stdarg.h> | 34 | #include <stdarg.h> |
31 | #include <string.h> | 35 | #include <string.h> |
@@ -360,8 +364,11 @@ extern char process_escape_sequence(char **ptr); | |||
360 | extern char *get_last_path_component(char *path); | 364 | extern char *get_last_path_component(char *path); |
361 | extern void xregcomp(regex_t *preg, const char *regex, int cflags); | 365 | extern void xregcomp(regex_t *preg, const char *regex, int cflags); |
362 | 366 | ||
367 | #ifndef DMALLOC | ||
363 | extern void *xmalloc (size_t size); | 368 | extern void *xmalloc (size_t size); |
369 | extern void *xrealloc(void *old, size_t size) | ||
364 | extern char *xstrdup (const char *s); | 370 | extern char *xstrdup (const char *s); |
371 | #endif | ||
365 | extern char *xstrndup (const char *s, int n); | 372 | extern char *xstrndup (const char *s, int n); |
366 | 373 | ||
367 | 374 | ||