Branch: Tag:

1998-01-27

1998-01-27 17:13:39 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

some minor fixes

Rev: src/dmalloc.h:1.3
Rev: src/error.h:1.11
Rev: src/pike_memory.c:1.6
Rev: src/pike_memory.h:1.3

3: Inside #if defined(DEBUG_MALLOC)
  extern int verbose_debug_malloc;   extern int verbose_debug_exit;   extern void *debug_malloc(size_t, const char *, int); - extern char *debug_xalloc(long, 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);   void *debug_malloc_update_location(void *,const char *, int);   #define malloc(x) debug_malloc((x), __FILE__, __LINE__) - #define xalloc(x) debug_xalloc((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__)
18:   #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)))   #else -  + #define xalloc debug_xalloc   #define dbm_main main   #define DO_IF_DMALLOC(X) - extern char *xalloc(long); +    #define debug_malloc_update_location(X,Y,Z) (X)   #define debug_malloc_touch(X)   #define debug_malloc_pass(X) (X)   #endif