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.45 2003/03/28 23:48:45 mast Exp $ + || $Id: dmalloc.h,v 1.46 2004/03/16 18:35:13 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_NAMED_LOCATION(NAME) \    (("NS" __FILE__ ":" DEFINETOSTR(__LINE__) NAME )+1)
pike.git/src/dmalloc.h:19:   #ifdef DMALLOC_TRACE   #define DMALLOC_TRACELOGSIZE 131072      extern char *dmalloc_tracelog[DMALLOC_TRACELOGSIZE];   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 +    #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 int verbose_debug_exit; +    extern void dmalloc_trace(void *);   extern void dmalloc_register(void *, int, char *);   extern int dmalloc_unregister(void *, int);   extern void *debug_malloc(size_t, char *);   extern void *debug_calloc(size_t, size_t, char *);   extern void *debug_realloc(void *, size_t, char *);   extern void debug_free(void *, char *,int);   extern char *debug_strdup(const char *, char *);   extern void reset_debug_malloc(void);   extern void dmalloc_free(void *p);