diff --git a/src/dmalloc.h b/src/dmalloc.h index 68bfea26fb31a04a90d3a4a523beb81d5bca64b4..7ca0e1b80258bfe8ca6392c116d4a4577bc240e2 100644 --- a/src/dmalloc.h +++ b/src/dmalloc.h @@ -1,5 +1,5 @@ /* - * $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,7 +51,7 @@ void debug_malloc_copy_names(void *p, void *p2); #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) diff --git a/src/dynamic_buffer.h b/src/dynamic_buffer.h index 675728fc9411fd2d93cf5f5bd918dbc07b815ebe..1283c221f3e925c393be17f6efcb7879bb3c000e 100644 --- a/src/dynamic_buffer.h +++ b/src/dynamic_buffer.h @@ -5,7 +5,7 @@ \*/ /* - * $Id: dynamic_buffer.h,v 1.7 2000/03/20 21:00:04 hubbe Exp $ + * $Id: dynamic_buffer.h,v 1.8 2000/03/26 14:18:12 grubba Exp $ */ #ifndef DYNAMIC_BUFFER_H #define DYNAMIC_BUFFER_H @@ -54,13 +54,13 @@ char *debug_return_buf(void); do { dynamic_buffer *b_=(X); debug_initialize_buf(b_); \ debug_malloc_touch(b_->s.str); } while(0) #define low_free_buf(X) \ - ((struct pike_string *)debug_malloc_touch(debug_low_free_buf(X))) + ((struct pike_string *)debug_malloc_pass(debug_low_free_buf(X))) #define free_buf() \ - ((struct pike_string *)debug_malloc_touch(debug_free_buf())) + ((struct pike_string *)debug_malloc_pass(debug_free_buf())) #define return_buf() \ - ((char *)debug_malloc_touch(debug_return_buf())) + ((char *)debug_malloc_pass(debug_return_buf())) #else #define initialize_buf debug_initialize_buf diff --git a/src/object.h b/src/object.h index 523afae3437d8c86de1597f58b0312b6534b9f1e..019dffd3fe36991018651a6e523697faf0680149 100644 --- a/src/object.h +++ b/src/object.h @@ -5,7 +5,7 @@ \*/ /* - * $Id: object.h,v 1.37 2000/02/17 00:31:13 hubbe Exp $ + * $Id: object.h,v 1.38 2000/03/26 14:16:42 grubba Exp $ */ #ifndef OBJECT_H #define OBJECT_H @@ -109,7 +109,7 @@ void check_all_objects(void); /* Prototypes end here */ #ifdef DEBUG_MALLOC -#define clone_object(X,Y) ((struct object *)debug_malloc_touch(debug_clone_object((X),(Y)))) +#define clone_object(X,Y) ((struct object *)debug_malloc_pass(debug_clone_object((X),(Y)))) #else #define clone_object debug_clone_object #endif diff --git a/src/pike_types.c b/src/pike_types.c index 522765f5a2e125d189a4fa937afa52b9b67b2069..894558edb4bb4a6023b062bca40177ad60763c85 100644 --- a/src/pike_types.c +++ b/src/pike_types.c @@ -5,7 +5,7 @@ \*/ /**/ #include "global.h" -RCSID("$Id: pike_types.c,v 1.128 2000/03/23 19:05:08 grubba Exp $"); +RCSID("$Id: pike_types.c,v 1.129 2000/03/26 14:16:11 grubba Exp $"); #include <ctype.h> #include "svalue.h" #include "pike_types.h" @@ -2602,7 +2602,7 @@ int pike_types_le(struct pike_string *a,struct pike_string *b) #ifdef DEBUG_MALLOC -#define low_index_type(X,Y,Z) ((struct pike_string *)debug_malloc_touch(debug_low_index_type((X),(Y),(Z)))) +#define low_index_type(X,Y,Z) ((struct pike_string *)debug_malloc_pass(debug_low_index_type((X),(Y),(Z)))) #else #define low_index_type debug_low_index_type #endif @@ -2826,7 +2826,7 @@ struct pike_string *array_value_type(struct pike_string *array_type) #ifdef DEBUG_MALLOC -#define low_key_type(X,Y) ((struct pike_string *)debug_malloc_touch(debug_low_key_type((X),(Y)))) +#define low_key_type(X,Y) ((struct pike_string *)debug_malloc_pass(debug_low_key_type((X),(Y)))) #else #define low_key_type debug_low_key_type #endif