From 71624b31470ced68c72caef8ff4913a88570d069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 22 Oct 1999 00:40:23 +0200 Subject: [PATCH] Added dmalloc_touch_svalue(). Rev: src/dmalloc.h:1.17 --- src/dmalloc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dmalloc.h b/src/dmalloc.h index df8af09f0d..22016d364b 100644 --- a/src/dmalloc.h +++ b/src/dmalloc.h @@ -1,5 +1,5 @@ /* - * $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); @@ -45,6 +45,7 @@ void debug_malloc_copy_names(void *p, void *p2); #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__ @@ -70,6 +71,7 @@ void dmalloc_accept_leak(void *); #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)) -- GitLab