pike.git / src / program.h

version» Context lines:

pike.git/src/program.h:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/      /* -  * $Id: program.h,v 1.52 1999/03/11 22:59:21 grubba Exp $ +  * $Id: program.h,v 1.53 1999/03/17 21:51:59 hubbe Exp $    */   #ifndef PROGRAM_H   #define PROGRAM_H      #include <stdarg.h>   #include "global.h"   #include "pike_types.h"   #include "pike_macros.h"   #include "svalue.h"   #include "time_stuff.h"    -  + #ifdef PIKE_DEBUG + #define PROGRAM_LINE_ARGS int line, char *file + #else + #define PROGRAM_LINE_ARGS void + #endif +    #define LFUN___INIT 0   #define LFUN_CREATE 1   #define LFUN_DESTROY 2   #define LFUN_ADD 3   #define LFUN_SUBTRACT 4   #define LFUN_AND 5   #define LFUN_OR 6   #define LFUN_XOR 7   #define LFUN_LSH 8   #define LFUN_RSH 9
pike.git/src/program.h:266:   struct node_s *find_module_identifier(struct pike_string *ident);   struct program *parent_compilation(int level);   struct program *id_to_program(INT32 id);   void optimize_program(struct program *p);   int program_function_index_compare(const void *a,const void *b);   void fixate_program(void);   struct program *low_allocate_program(void);   void low_start_new_program(struct program *p,    struct pike_string *name,    int flags); - void start_new_program(void); + void debug_start_new_program(PROGRAM_LINE_ARGS);   void really_free_program(struct program *p);   void dump_program_desc(struct program *p);   int sizeof_variable(int run_time_type);   void check_program(struct program *p);   struct program *end_first_pass(int finish);   struct program *debug_end_program(void);   SIZE_T low_add_storage(SIZE_T size, SIZE_T alignment, int modulo);   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 *));
pike.git/src/program.h:415:      #endif      #ifdef DEBUG_MALLOC   #define end_program() ((struct program *)debug_malloc_pass(debug_end_program()))   #define end_class(NAME, FLAGS) do { debug_malloc_touch(new_program); debug_end_class(NAME, CONSTANT_STRLEN(NAME), FLAGS); }while(0)   #else   #define end_class(NAME,FLAGS) debug_end_class(NAME, CONSTANT_STRLEN(NAME), FLAGS)   #define end_program debug_end_program   #endif +  +  + #ifdef PIKE_DEBUG + #define start_new_program() debug_start_new_program(__LINE__,__FILE__) + #else + #define start_new_program() debug_start_new_program() + #endif