Branch: Tag:

2000-03-26

2000-03-26 14:18:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Changed some debug_malloc_touch() to debug_malloc_pass() for clarity.

Rev: src/dmalloc.h:1.22
Rev: src/dynamic_buffer.h:1.8
Rev: src/object.h:1.38
Rev: src/pike_types.c:1.129

1:   /* -  * $Id: dmalloc.h,v 1.21 2000/03/21 03:20:48 mast Exp $ +  * $Id: dmalloc.h,v 1.22 2000/03/26 14:17:30 grubba Exp $    */      extern char *debug_xalloc(long);
51:   #define DO_IF_DMALLOC(X) 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 xalloc(X) ((char *)debug_malloc_touch(debug_xalloc(X))) + #define xalloc(X) ((char *)debug_malloc_pass(debug_xalloc(X)))   void debug_malloc_dump_references(void *x);   #define dmalloc_touch(TYPE,X) ((TYPE)debug_malloc_update_location((X),DMALLOC_LOCATION()))   #define dmalloc_touch_svalue(X) do { struct svalue *_tmp = (X); if ((X)->type <= MAX_REF_TYPE) { debug_malloc_touch(_tmp->u.refs); } } while(0)