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.47 2004/04/03 15:22:12 mast Exp $ + || $Id: dmalloc.h,v 1.48 2004/04/03 15:55:15 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:30:   extern size_t dmalloc_tracelogptr;      #define DMALLOC_TRACE_LOG(X) (dmalloc_tracelog[ dmalloc_tracelogptr = (dmalloc_tracelogptr +1 )%DMALLOC_TRACELOGSIZE ] = (X))      #endif /* DMALLOC_TRACE */      #if defined (PIKE_DEBUG) && defined (DO_PIKE_CLEANUP)   extern int verbose_debug_exit;   #endif    + typedef void describe_block_fn (void *); +    #ifdef DEBUG_MALLOC   struct memhdr;      void dump_memhdr_locations(struct memhdr *from,    struct memhdr *notfrom,    int indent);   struct memhdr *alloc_memhdr(void);   void really_free_memhdr(struct memhdr *mh);   void add_marks_to_memhdr(struct memhdr *to,void *ptr);      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); - void dmalloc_check_block_free(void *, LOCATION); + void dmalloc_check_block_free(void *, LOCATION, char *, describe_block_fn *);   extern void dmalloc_free(void *p);   extern int debug_malloc_touch_fd(int, LOCATION);   extern int debug_malloc_register_fd(int, LOCATION);   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);   void cleanup_memhdrs(void);