pike.git / src / program.h

version» Context lines:

pike.git/src/program.h:89:   #define IDENTIFIER_IS_FUNCTION(X) ((X) & IDENTIFIER_FUNCTION)   #define IDENTIFIER_IS_CONSTANT(X) ((X) & IDENTIFIER_CONSTANT)   #define IDENTIFIER_IS_VARIABLE(X) (!((X) & (IDENTIFIER_FUNCTION | IDENTIFIER_CONSTANT)))      struct identifier   {    struct pike_string *name;    struct pike_string *type;    unsigned INT16 flags; /* IDENTIFIER_??? */    unsigned INT16 run_time_type; + #ifdef PROFILING +  unsigned INT32 num_calls; + #endif /* PROFILING */    union idptr func;   };      /*    * in the bytecode, a function starts with:    * char num_args    * char num_locals    * char code[]    */   
pike.git/src/program.h:146:    struct identifier *identifiers;    unsigned INT16 *identifier_index;    struct svalue *constants;    char *linenumbers;    void (*init)(struct object *);    void (*exit)(struct object *);    void (*gc_marked)(struct object *);   #ifdef DEBUG    unsigned INT32 checksum;   #endif + #ifdef PROFILING +  unsigned INT32 num_clones; + #endif /* PROFILING */       SIZE_T total_size;    SIZE_T num_linenumbers;    SIZE_T program_size;    unsigned INT16 num_constants;    unsigned INT16 num_strings;    unsigned INT16 num_identifiers;    unsigned INT16 num_identifier_references;    unsigned INT16 num_identifier_indexes;    unsigned INT16 num_inherits;
pike.git/src/program.h:175:      #define free_program(p) do{ struct program *_=(p); if(!--_->refs) really_free_program(_); }while(0)      extern struct object fake_object;   extern struct program fake_program;      /* Prototypes begin here */   void use_module(struct svalue *s);   int find_module_identifier(struct pike_string *ident);   struct program *id_to_program(INT32 id); - void setup_fake_program(); - void start_new_program(); + void setup_fake_program(void); + void start_new_program(void);   void really_free_program(struct program *p);   void dump_program_desc(struct program *p); - void toss_current_program(); + void toss_current_program(void);   void check_program(struct program *p); - struct program *end_program(); + struct program *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 do_inherit(struct program *p,INT32 flags, struct pike_string *name);   void simple_do_inherit(struct pike_string *s, INT32 flags,struct pike_string *name);
pike.git/src/program.h:241:   struct ff_hash;   int find_shared_string_identifier(struct pike_string *name,    struct program *prog);   int find_identifier(char *name,struct program *prog);   int store_prog_string(struct pike_string *str);   int store_constant(struct svalue *foo, int equal);   void start_line_numbering(void);   void store_linenumber(INT32 current_line, struct pike_string *current_file);   char *get_line(unsigned char *pc,struct program *prog,INT32 *linep);   void my_yyerror(char *fmt,...); - void compile(); + void compile(void);   struct program *compile_file(struct pike_string *file_name);   struct program *compile_string(struct pike_string *prog,    struct pike_string *name);   void add_function(char *name,void (*cfun)(INT32),char *type,INT16 flags); - void check_all_programs(); - void cleanup_program(); + void check_all_programs(void); + void cleanup_program(void);   void gc_mark_program_as_referenced(struct program *p); - void gc_check_all_programs(); - void gc_mark_all_programs(); - void gc_free_all_unreferenced_programs(); + void gc_check_all_programs(void); + void gc_mark_all_programs(void); + void gc_free_all_unreferenced_programs(void);   void count_memory_in_programs(INT32 *num_, INT32 *size_); - void push_locals(); - void pop_locals(); + void push_locals(void); + void pop_locals(void);   char *get_storage(struct object *o, struct program *p);   /* Prototypes end here */         void my_yyerror(char *fmt,...) ATTRIBUTE((format (printf, 1, 2)));      #endif