pike.git / src / dmalloc.h

version» Context lines:

pike.git/src/dmalloc.h:1:   /* -  * $Id: dmalloc.h,v 1.5 1998/03/28 15:03:54 grubba Exp $ +  * $Id: dmalloc.h,v 1.6 1998/04/06 04:20:42 hubbe Exp $    */   #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);
pike.git/src/dmalloc.h:24:   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__)   #define strdup(x) debug_strdup((x), __FILE__, __LINE__)   #define DO_IF_DMALLOC(X) X   #define debug_malloc_touch(X) debug_malloc_update_location((X),__FILE__,__LINE__)   #define debug_malloc_pass(X) debug_malloc_update_location((X),__FILE__,__LINE__)   #define xalloc(X) ((char *)debug_malloc_touch(debug_xalloc(X))) + void debug_malloc_dump_references(void *x);   #else -  + #define debug_malloc_dump_references(X)   #define xalloc debug_xalloc   #define dbm_main main   #define DO_IF_DMALLOC(X)   #define debug_malloc_update_location(X,Y,Z) (X)   #define debug_malloc_touch(X)   #define debug_malloc_pass(X) (X)   #endif