Branch: Tag:

2001-04-01

2001-04-01 15:40:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Renamed copy_type() to copy_pike_type() to avoid conflict with <mach/mach.p>.

Rev: src/builtin_functions.c:1.357
Rev: src/language.yacc:1.242
Rev: src/las.c:1.249
Rev: src/operators.c:1.134
Rev: src/pike_types.c:1.177
Rev: src/pike_types.h:1.71
Rev: src/program.c:1.308

5:   \*/      /* -  * $Id: pike_types.h,v 1.70 2001/03/31 01:12:48 grubba Exp $ +  * $Id: pike_types.h,v 1.71 2001/04/01 15:40:22 grubba Exp $    */   #ifndef PIKE_TYPES_H   #define PIKE_TYPES_H
40:      void debug_free_type(struct pike_type *t);   #ifdef DEBUG_MALLOC - #define copy_type(D, S) add_ref((struct pike_type *)debug_malloc_pass(D = (S))) + #define copy_pike_type(D, S) add_ref((struct pike_type *)debug_malloc_pass(D = (S)))   #else /* !DEBUG_MALLOC */ - #define copy_type(D, S) add_ref(D = (S)) + #define copy_pike_type(D, S) add_ref(D = (S))   #endif /* DEBUG_MALLOC */   #define CONSTTYPE(X) make_pike_type(X)   
68:    * to avoid circularities with svalue.h and this file.    */   #define free_type(T) free_string(T) - #define copy_type(D, S) copy_shared_string(D, S) + #define copy_pike_type(D, S) copy_shared_string(D, S)   #define check_type_string debug_check_type_string      #define CONSTTYPE(X) make_shared_binary_string(X,CONSTANT_STRLEN(X))
177:    type_.next = all_pike_type_locations; \    all_pike_type_locations = &type_; \    } \ -  copy_type((T), type_.t); \ +  copy_pike_type((T), type_.t); \    } while(0)   #else /* !DEBUG_MALLOC */   #define MAKE_CONSTANT_TYPE(T, X) do { \
185:    if (!type_) { \    type_ = CONSTTYPE(X); \    } \ -  copy_type((T), type_); \ +  copy_pike_type((T), type_); \    } while(0)   #endif /* DEBUG_MALLOC */   #else /* !USE_PIKE_TYPE */