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.53 2004/09/27 21:37:22 mast Exp $ + || $Id: dmalloc.h,v 1.54 2006/01/24 11:57:41 mast Exp $   */      #ifndef DMALLOC_H   #define DMALLOC_H      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);
pike.git/src/dmalloc.h:60: Inside #if defined(DEBUG_MALLOC)
  extern int verbose_debug_malloc;   extern void dmalloc_trace(void *);   extern void dmalloc_register(void *, int, LOCATION);   extern int dmalloc_unregister(void *, int);   extern void *debug_malloc(size_t, LOCATION);   extern void *debug_calloc(size_t, size_t, LOCATION);   extern void *debug_realloc(void *, size_t, LOCATION);   extern void debug_free(void *, LOCATION, int);   extern char *debug_strdup(const char *, LOCATION);   extern void reset_debug_malloc(void); + int dmalloc_check_allocated (void *p, int must_be_freed); + #if 0   void dmalloc_check_block_free(void *, LOCATION, char *, describe_block_fn *); -  + #endif   extern void dmalloc_free(void *p);   extern int debug_malloc_touch_fd(int, LOCATION);   extern int debug_malloc_register_fd(int, LOCATION);   extern void debug_malloc_accept_leak_fd(int);   extern int debug_malloc_close_fd(int, LOCATION);   extern int dmalloc_mark_as_free(void*,int);      void *debug_malloc_update_location(void *, LOCATION);   void *debug_malloc_update_location_ptr(void *, ptrdiff_t, LOCATION);   void search_all_memheaders_for_references(void);