pike.git / src / dmalloc.h

version» Context lines:

pike.git/src/dmalloc.h:1:   /* -  * $Id: dmalloc.h,v 1.35 2001/11/10 19:39:25 mast Exp $ +  * $Id: dmalloc.h,v 1.36 2002/09/12 13:15:49 marcus Exp $    */      PMOD_EXPORT extern void *debug_xalloc(size_t);   PMOD_EXPORT extern void debug_xfree(void *);   PMOD_EXPORT extern void *debug_xmalloc(size_t);   PMOD_EXPORT extern void *debug_xcalloc(size_t,size_t);   PMOD_EXPORT extern void *debug_xrealloc(void *,size_t);      #define DMALLOC_LOCATION() (("NS" __FILE__ ":" DEFINETOSTR(__LINE__) )+1)   
pike.git/src/dmalloc.h:44: Inside #if defined(DEBUG_MALLOC)
  extern int debug_malloc_touch_fd(int, char *);   extern int debug_malloc_register_fd(int, char *);   extern int debug_malloc_close_fd(int, char *);   extern int dmalloc_mark_as_free(void*,int);      void *debug_malloc_update_location(void *, char *);   void *debug_malloc_update_location_ptr(void *, ptrdiff_t, char *);   void search_all_memheaders_for_references(void);      /* Beware! names of named memory regions are never ever freed!! /Hubbe */ - void *debug_malloc_name(void *p, char *fn, int line); + void *debug_malloc_name(void *p, const char *fn, int line);   int debug_malloc_copy_names(void *p, void *p2);   char *dmalloc_find_name(void *p);      /* glibc 2.1 defines this as a macro. */   #ifdef strdup   #undef strdup   #endif      #define malloc(x) debug_malloc((x), DMALLOC_LOCATION())   #define calloc(x, y) debug_calloc((x), (y), DMALLOC_LOCATION())