pike.git
/
src
/
program.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/program.h:233:
void optimize_program(struct program *p); void fixate_program(void); void low_start_new_program(struct program *p, struct pike_string *name, int flags); void start_new_program(void); void really_free_program(struct program *p); void dump_program_desc(struct program *p); void check_program(struct program *p); struct program *end_first_pass(int finish);
-
struct program *end_program(void);
+
struct program *
debug_
end_program(void);
SIZE_T add_storage(SIZE_T size); void set_init_callback(void (*init)(struct object *)); void set_exit_callback(void (*exit)(struct object *)); void set_gc_mark_callback(void (*m)(struct object *)); int low_reference_inherited_identifier(int e, struct pike_string *name); int reference_inherited_identifier(struct pike_string *super_name, struct pike_string *function_name); void rename_last_inherit(struct pike_string *n); void low_inherit(struct program *p,
pike.git/src/program.h:294:
int add_float_constant(char *name, double f, INT32 flags); int add_string_constant(char *name, char *str, INT32 flags); int add_program_constant(char *name, struct program *p, INT32 flags); int add_function_constant(char *name, void (*cfun)(INT32), char * type, INT16 flags);
-
int end_class(char *name, INT32 flags);
+
int
debug_
end_class(char *name, INT32 flags);
INT32 define_function(struct pike_string *name, struct pike_string *type, INT16 flags, INT8 function_flags, union idptr *func); int low_find_shared_string_identifier(struct pike_string *name, struct program *prog); struct ff_hash; int find_shared_string_identifier(struct pike_string *name, struct program *prog);
pike.git/src/program.h:336:
INT32 i); struct program *program_from_function(struct svalue *f); struct program *program_from_svalue(struct svalue *s); struct find_child_cache_s; int find_child(struct program *parent, struct program *child); void yywarning(char *fmt, ...) ATTRIBUTE((format(printf,1,2))); /* Prototypes end here */ #endif
+
+
#ifdef DEBUG_MALLOC
+
#define end_program() ((struct program *)debug_malloc_touch(debug_end_program()))
+
#define end_class(NAME, FLAGS) do { debug_malloc_touch(new_program); debug_end_class(NAME, FLAGS); }while(0)
+
#else
+
#define end_class debug_end_class
+
#define end_program debug_end_program
+
#endif