pike.git / src / program.h

version» Context lines:

pike.git/src/program.h:93:      union idptr   {    void (*c_fun)(INT32);    INT32 offset;   };      #define IDENTIFIER_PIKE_FUNCTION 1   #define IDENTIFIER_C_FUNCTION 2   #define IDENTIFIER_FUNCTION 3 - #define IDENTIFIER_VARARGS 4 - #define IDENTIFIER_CONSTANT 8 + #define IDENTIFIER_CONSTANT 4 + #define IDENTIFIER_VARARGS 8      #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 identifier_flags; /* IDENTIFIER_??? */
pike.git/src/program.h:124:    * char num_args    * char num_locals    * char code[]    */      #define ID_STATIC 0x01   #define ID_PRIVATE 0x02   #define ID_NOMASK 0x04   #define ID_PUBLIC 0x08   #define ID_PROTECTED 0x10 - #define ID_VARARGS 0x20 - #define ID_INLINE 0x40 - #define ID_HIDDEN 0x80 /* needed? */ - #define ID_INHERITED 0x100 + #define ID_INLINE 0x20 + #define ID_HIDDEN 0x40 /* needed? */ + #define ID_INHERITED 0x80      struct reference   {    unsigned INT16 inherit_offset;    unsigned INT16 identifier_offset;    INT16 id_flags; /* static, private etc.. */   };         struct inherit   {    INT16 inherit_level; /* really needed? */    INT16 identifier_level;    INT16 parent_identifier; -  +  INT16 parent_offset;    INT32 storage_offset;    struct object *parent;    struct program *prog;    struct pike_string *name;   };      /* program parts have been realloced into one block */   #define PROGRAM_OPTIMIZED 1      /* program has gone through pass 1 of compiler, prototypes etc. will
pike.git/src/program.h:243:   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 svalue *prog, + void low_inherit(struct program *p, +  struct object *parent, +  int parent_identifier, +  int parent_offset,    INT32 flags,    struct pike_string *name); -  + void do_inherit(struct svalue *s, +  INT32 flags, +  struct pike_string *name); + void compiler_do_inherit(node *n, +  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 low_define_variable(struct pike_string *name,    struct pike_string *type,    INT32 flags,    INT32 offset,    INT32 run_time_type);   int map_variable(char *name,