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.40 2002/11/25 00:52:18 mast Exp $ + || $Id: dmalloc.h,v 1.41 2002/11/30 16:11:14 grubba 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:28: Inside #if defined(DEBUG_MALLOC)
     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);   extern int debug_malloc_touch_fd(int, char *);
pike.git/src/dmalloc.h:129:   #define xfree debug_xfree   #else /* defined(DYNAMIC_MODULE) && defined(__NT__) */   #define xmalloc malloc   #define xcalloc calloc   #define xrealloc realloc   #define xfree free   #endif /* !(defined(DYNAMIC_MODULE) && defined(__NT__)) */      #define dbm_main main   #define DO_IF_DMALLOC(X) + #define dmalloc_trace(X)   #define dmalloc_register(X,Y,Z)   #define dmalloc_unregister(X,Y)   #define debug_free(X,Y,Z) free((X))   #define debug_malloc_name(P,FN,LINE)   #define debug_malloc_copy_names(p,p2) 0   #define search_all_memheaders_for_references()   #define dmalloc_find_name(X) "unknown (no dmalloc)"   #define dmalloc_touch_struct_ptr(TYPE,X,MEMBER) (X)      #ifdef DMALLOC_TRACE