Moved some code and add a coupld #defines to support use of dmalloc.

-Erik
This commit is contained in:
Eric Andersen
2000-07-19 17:35:54 +00:00
parent 52d6fa3bb3
commit ae6eae02dd
4 changed files with 26 additions and 27 deletions

View File

@@ -26,6 +26,10 @@
#include "busybox.def.h"
#ifdef DMALLOC
#include "dmalloc.h"
#endif
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
@@ -360,8 +364,11 @@ extern char process_escape_sequence(char **ptr);
extern char *get_last_path_component(char *path);
extern void xregcomp(regex_t *preg, const char *regex, int cflags);
#ifndef DMALLOC
extern void *xmalloc (size_t size);
extern void *xrealloc(void *old, size_t size)
extern char *xstrdup (const char *s);
#endif
extern char *xstrndup (const char *s, int n);