Branch: Tag:

2003-03-28

2003-03-28 23:48:45 by Martin Stjernholm <mast@lysator.liu.se>

Fixed double evaluation in dmalloc_touch_svalue.

Rev: src/dmalloc.h:1.45

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.44 2003/03/14 15:43:22 grubba Exp $ + || $Id: dmalloc.h,v 1.45 2003/03/28 23:48:45 mast Exp $   */      PMOD_EXPORT extern void *debug_xalloc(size_t);
86:   void debug_malloc_dump_references(void *x, int indent, int depth, int flags);   #define dmalloc_touch(TYPE,X) ((TYPE)debug_malloc_update_location((void *)(X),DMALLOC_LOCATION()))   void debug_malloc_dump_fd(int fd); - #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_touch_svalue(X) do { struct svalue *_tmp = (X); if (_tmp->type <= MAX_REF_TYPE) { debug_malloc_touch(_tmp->u.refs); } } while(0)      #define DMALLOC_LINE_ARGS ,char * dmalloc_location   #define DMALLOC_POS ,DMALLOC_LOCATION()