Branch: Tag:

2007-04-25

2007-04-25 22:10:05 by Martin Stjernholm <mast@lysator.liu.se>

Fixed some bookkeeping code necessary to do a proper cleanup to be enabled
whenever --with-cleanup-on-exit is used (it's actually useful even without
either dmalloc debug or rtldebug).

Rev: src/pike_types.c:1.297
Rev: src/pike_types.h:1.107

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: pike_types.h,v 1.106 2007/04/25 21:58:33 mast Exp $ + || $Id: pike_types.h,v 1.107 2007/04/25 22:10:05 mast Exp $   */      #ifndef PIKE_TYPES_H
121:   PMOD_EXPORT extern struct pike_type *weak_type_string;      #define CONSTTYPE(X) make_pike_type(X) - #ifdef DEBUG_MALLOC +  + #ifdef DO_PIKE_CLEANUP   struct pike_type_location   {    struct pike_type *t;
139:    } \    copy_pike_type((T), type_.t); \    } while(0) - #else /* !DEBUG_MALLOC */ + #else /* !DO_PIKE_CLEANUP */   #define MAKE_CONSTANT_TYPE(T, X) do { \    static struct pike_type *type_; \    if (!type_) { \
147:    } \    copy_pike_type((T), type_); \    } while(0) - #endif /* DEBUG_MALLOC */ + #endif /* DO_PIKE_CLEANUP */      #ifdef PIKE_DEBUG   #define init_type_stack() type_stack_mark()