pike.git / src / dmalloc.h

version» Context lines:

pike.git/src/dmalloc.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: dmalloc.h,v 1.39 2002/10/27 15:48:18 nilsson Exp $ + || $Id: dmalloc.h,v 1.40 2002/11/25 00:52:18 mast 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:45: Inside #if defined(DEBUG_MALLOC)
  extern void reset_debug_malloc(void);   extern void dmalloc_free(void *p);   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); + void cleanup_memhdrs(void); + void cleanup_debug_malloc(void);      /* Beware! names of named memory regions are never ever freed!! /Hubbe */   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