pike.git / src / pike_types.h

version» Context lines:

pike.git/src/pike_types.h:361:    type_stack_mark(); \   } while(0)      /* Prototypes begin here */   PMOD_EXPORT void really_free_pike_type(struct pike_type * t);   PMOD_EXPORT ATTRIBUTE((malloc)) struct pike_type * alloc_pike_type(void);   PMOD_EXPORT void count_memory_in_pike_types(size_t *n, size_t *s);   void init_types(void);   ptrdiff_t peek_stack_mark(void);   ptrdiff_t pop_stack_mark(void); - void debug_pop_type_stack(unsigned int expected); + int debug_pop_type_stack(unsigned int expected);   void type_stack_pop_to_mark(void);   void type_stack_reverse(void);   struct pike_type *debug_peek_type_stack(void);   void debug_push_int_type(INT_TYPE min, INT_TYPE max);   void debug_push_unlimited_array_type(enum PIKE_TYPE t);   void debug_push_object_type(int flag, INT32 id);   void debug_push_object_type_backwards(int flag, INT32 id);   void debug_push_type_attribute(struct pike_string *attr);   void debug_push_type_name(struct pike_string *name);   void debug_push_type_operator(enum PIKE_TYPE op, struct pike_type *arg);
pike.git/src/pike_types.h:507:    (visit_thing_fn *) &visit_type, (EXTRA))      #ifdef DEBUG_MALLOC   #define pop_type() ((struct pike_type *)debug_malloc_pass(debug_pop_type()))   #define compiler_pop_type() ((struct pike_type *)debug_malloc_pass(debug_compiler_pop_type()))   #define pop_unfinished_type() \    ((struct pike_type *)debug_malloc_pass(debug_pop_unfinished_type()))   #define make_pike_type(X) \    ((struct pike_type *)debug_malloc_pass(debug_make_pike_type(X)))   #define peek_type_stack() ((struct pike_type *)debug_malloc_pass(debug_peek_type_stack())) - #define pop_type_stack(E) do { debug_malloc_pass(debug_peek_type_stack()); debug_pop_type_stack(E); } while(0) + #define pop_type_stack(E) (debug_malloc_pass(debug_peek_type_stack()), debug_pop_type_stack(E))   #define push_int_type(MIN,MAX) do { debug_push_int_type(MIN,MAX);debug_malloc_pass(debug_peek_type_stack()); } while(0)   #define push_unlimited_array_type(ARRAY_OR_STRING) do { debug_push_unlimited_array_type(ARRAY_OR_STRING);debug_malloc_pass(debug_peek_type_stack()); } while(0)   #define push_object_type(FLAG,ID) do { debug_push_object_type(FLAG,ID);debug_malloc_pass(debug_peek_type_stack()); } while(0)   #define push_object_type_backwards(FLAG,ID) do { debug_push_object_type_backwards(FLAG,ID);debug_malloc_pass(debug_peek_type_stack()); } while(0)   #define push_scope_type(LEVEL) do { debug_push_scope_type(LEVEL);debug_malloc_pass(debug_peek_type_stack()); } while(0)   #define push_type_attribute(ATTR) do { debug_push_type_attribute((struct pike_string *)debug_malloc_pass(ATTR));debug_malloc_pass(debug_peek_type_stack()); } while(0)   #define push_type_name(NAME) do { debug_push_type_name((struct pike_string *)debug_malloc_pass(NAME));debug_malloc_pass(debug_peek_type_stack()); } while(0)   #define push_type_operator(OP, ARG) do { debug_push_type_operator(OP, (struct pike_type *)debug_malloc_pass(ARG));debug_malloc_pass(debug_peek_type_stack()); } while(0)   #define push_unfinished_type(S) ERROR   #define push_assign_type(MARKER) do { debug_push_assign_type(MARKER);debug_malloc_pass(debug_peek_type_stack()); } while(0)