pike.git / src / dmalloc.h

version» Context lines:

pike.git/src/dmalloc.h:1:   /* -  * $Id: dmalloc.h,v 1.16 1999/10/18 19:15:40 hubbe Exp $ +  * $Id: dmalloc.h,v 1.17 1999/10/21 22:40:23 grubba Exp $    */      extern char *debug_xalloc(long);   #ifdef DEBUG_MALLOC   struct memhdr;      void dump_memhdr_locations(struct memhdr *from,    struct memhdr *notfrom);   struct memhdr *alloc_memhdr(void);   void really_free_memhdr(struct memhdr *mh);
pike.git/src/dmalloc.h:38:   #define realloc(x, y) debug_realloc((x), (y), __FILE__, __LINE__)   #define free(x) debug_free((x), __FILE__, __LINE__,0)   #define dmfree(x) debug_free((x),__FILE__,__LINE__,1)   #define strdup(x) debug_strdup((x), __FILE__, __LINE__)   #define DO_IF_DMALLOC(X) X   #define debug_malloc_touch(X) debug_malloc_update_location((X),__FILE__,__LINE__)   #define debug_malloc_pass(X) debug_malloc_update_location((X),__FILE__,__LINE__)   #define xalloc(X) ((char *)debug_malloc_touch(debug_xalloc(X)))   void debug_malloc_dump_references(void *x);   #define dmalloc_touch(TYPE,X) ((TYPE)debug_malloc_update_location((X),__FILE__,__LINE__)) + #define dmalloc_touch_svalue(X) do { struct svalue *_tmp = (X); if ((X)->type <= MAX_REF_TYPE) { debug_malloc_touch(_tmp->u.refs); } } while(0)      #define DMALLOC_LINE_ARGS ,char * dmalloc_file, int dmalloc_line   #define DMALLOC_POS ,__FILE__,__LINE__   #define DMALLOC_PROXY_ARGS ,dmalloc_file,dmalloc_line   void dmalloc_accept_leak(void *);   #define dmalloc_touch_fd(X) debug_malloc_touch_fd((X),__FILE__,__LINE__)   #define dmalloc_register_fd(X) debug_malloc_register_fd((X),__FILE__,__LINE__)   #define dmalloc_close_fd(X) debug_malloc_close_fd((X),__FILE__,__LINE__)   #else   #define dmalloc_touch_fd(X) (X)
pike.git/src/dmalloc.h:63:   #define DMALLOC_POS   #define DMALLOC_PROXY_ARGS   #define debug_malloc_dump_references(X)   #define xalloc debug_xalloc   #define dbm_main main   #define DO_IF_DMALLOC(X)   #define debug_malloc_update_location(X,Y,Z) (X)   #define debug_malloc_touch(X)   #define debug_malloc_pass(X) (X)   #define dmalloc_touch(TYPE,X) (X) + #define dmalloc_touch_svalue(X)   #define dmalloc_register(X,Y,Z,W)   #define dmalloc_unregister(X,Y)   #define debug_free(X,Y,Z,Q) free((X))   #define debug_malloc_name(P,FN,LINE)   #define debug_malloc_copy_names(p,p2)   #endif