pike.git / src / dmalloc.h

version» Context lines:

pike.git/src/dmalloc.h:1:   /* -  * $Id: dmalloc.h,v 1.7 1998/04/16 21:30:09 hubbe Exp $ +  * $Id: dmalloc.h,v 1.8 1998/10/12 22:57:56 hubbe Exp $    */ - #ifdef DEBUG_MALLOC +     -  + extern char *debug_xalloc(long); + #ifdef DEBUG_MALLOC   struct memhdr;      void dump_memhdr_locations(struct memhdr *from,    struct memhdr *notfrom);   struct memhdr *alloc_memhdr(void);   void free_memhdr(struct memhdr *mh);   void add_marks_to_memhdr(struct memhdr *to,void *ptr);   void low_add_marks_to_memhdr(struct memhdr *to,    struct memhdr *from);      extern int verbose_debug_malloc;   extern int verbose_debug_exit;   extern void *debug_malloc(size_t, const char *, int); - extern char *debug_xalloc(long); +    extern void *debug_calloc(size_t, size_t, const char *, int);   extern void *debug_realloc(void *, size_t, const char *, int);   extern void debug_free(void *, const char *, int);   extern char *debug_strdup(const char *, const char *, int);   extern void reset_debug_malloc(void);   void *debug_malloc_update_location(void *,const char *, int);   #define malloc(x) debug_malloc((x), __FILE__, __LINE__)   #define calloc(x, y) debug_calloc((x), (y), __FILE__, __LINE__)   #define realloc(x, y) debug_realloc((x), (y), __FILE__, __LINE__)   #define free(x) debug_free((x), __FILE__, __LINE__)