Branch: Tag:

2002-12-01

2002-12-01 05:35:15 by Martin Stjernholm <mast@lysator.liu.se>

Added a DO_IF_NOT_DMALLOC macro. A little more memhdr trace. add_location is
a bit too large to be inlined.

Rev: src/dmalloc.h:1.42
Rev: src/pike_memory.c:1.136

2:   || 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.41 2002/11/30 16:11:14 grubba Exp $ + || $Id: dmalloc.h,v 1.42 2002/12/01 05:35:15 mast Exp $   */      PMOD_EXPORT extern void *debug_xalloc(size_t);
73:   #define dmfree(x) debug_free((x),DMALLOC_LOCATION(),1)   #define strdup(x) debug_strdup((x), DMALLOC_LOCATION())   #define DO_IF_DMALLOC(X) X + #define DO_IF_NOT_DMALLOC(X)   #define debug_malloc_touch(X) debug_malloc_update_location((X),DMALLOC_LOCATION())   #define debug_malloc_pass(X) debug_malloc_update_location((X),DMALLOC_LOCATION())   #define dmalloc_touch_struct_ptr(TYPE,X,MEMBER) ((TYPE)debug_malloc_update_location_ptr((X), ((ptrdiff_t)& (((TYPE)0)->MEMBER)), DMALLOC_LOCATION()))
137:      #define dbm_main main   #define DO_IF_DMALLOC(X) + #define DO_IF_NOT_DMALLOC(X) X   #define dmalloc_trace(X)   #define dmalloc_register(X,Y,Z)   #define dmalloc_unregister(X,Y)