Skip to content
Snippets Groups Projects
Commit 15139ad2 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Fixed double evaluation in dmalloc_touch_svalue.

Rev: src/dmalloc.h:1.45
parent 6b00406b
Branches
Tags
No related merge requests found
......@@ -2,7 +2,7 @@
|| 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,7 +86,7 @@ char *dmalloc_find_name(void *p);
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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment