pike.git / src / program.h

version» Context lines:

pike.git/src/program.h:41:      #define NUM_LFUNS 28      extern char *lfun_names[];      #ifndef STRUCT_SVALUE_DECLARED   #define STRUCT_SVALUE_DECLARED   struct svalue;   #endif    - #ifndef STRUCT_MODULE_DECLARED - #define STRUCT_MODULE_DECLARED - struct module; - #endif -  +    #ifndef STRUCT_OBJECT_DECLARED   #define STRUCT_OBJECT_DECLARED   struct object;   #endif      /* I need:    * a) one type that can point to a callable function.    * (C function, or object->fun)    * This can for instance be an svalue.    *
pike.git/src/program.h:146:    struct program *next;    struct program *prev;    unsigned char *program;    struct pike_string **strings;    struct inherit *inherits;    struct reference *identifier_references;    struct identifier *identifiers;    unsigned INT16 *identifier_index;    struct svalue *constants;    char *linenumbers; -  struct module *from_module; +     void (*init)(struct object *);    void (*exit)(struct object *);   #ifdef DEBUG    unsigned INT32 checksum;   #endif       SIZE_T total_size;    SIZE_T num_linenumbers;    SIZE_T program_size;    unsigned INT16 num_constants;
pike.git/src/program.h:204:   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);   int isidentifier(struct pike_string *s);   int define_variable(struct pike_string *name,    struct pike_string *type,    INT32 flags);   int add_constant(struct pike_string *name,    struct svalue *c,    INT32 flags); + int simple_add_constant(char *name, +  struct svalue *c, +  INT32 flags);   int add_integer_constant(char *name,    INT32 i,    INT32 flags); -  + 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);   INT32 define_function(struct pike_string *name,    struct pike_string *type,    INT16 flags,    INT8 function_flags,    union idptr *func);   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();   struct program *compile_file(struct pike_string *file_name);   struct program *compile_string(struct pike_string *prog,    struct pike_string *name); - struct program *end_c_program(char *name); +    void add_function(char *name,void (*cfun)(INT32),char *type,INT16 flags);   void check_all_programs();   void cleanup_program();   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 count_memory_in_programs(INT32 *num_, INT32 *size_);   /* Prototypes end here */         void my_yyerror(char *fmt,...) ATTRIBUTE((format (printf, 1, 2)));      #endif