pike.git / src / program.h

version» Context lines:

pike.git/src/program.h:495:    /* The parent object for the program in this inherit, or NULL if    * there isn't any. */    struct object *parent;       /* The program for this inherit. */    struct program *prog;       /* The name of the inherit, if there is any. For nested inherits,    * this can be a string on the form "A::B::C". */    struct pike_string *name; +  +  /* The set of annotations for this inherit (if any). +  * +  * For inherit #0 these are set directly via annotations +  * on the class. +  * +  * For inherits at level 1 these are set from the annotations +  * on the corresponding inherit declaration, together with +  * the original annotations. +  * +  * For inherits at higher levels they are copied verbatim from their +  * previous program. +  */ +  struct array *annotations;   };      /**    * Special inherit references.    *    * These are used by find_inherited_identifier().    */   #define INHERIT_SELF 0 /* Self. */   #define INHERIT_LOCAL -1 /* Self and not overrideable (force local). */   #define INHERIT_GLOBAL -2 /* Self and overrideable. */
pike.git/src/program.h:813:    struct pike_string *name,    int flags,    int *idp);   PMOD_EXPORT void debug_start_new_program(INT_TYPE line, const char *file);   void dump_program_desc(struct program *p);   int sizeof_variable(int run_time_type);   void check_program(struct program *p);   int low_is_variant_dispatcher(struct identifier *id);   int is_variant_dispatcher(struct program *prog, int fun);   void compiler_add_annotations(int id, node *annotations); + void compiler_add_program_annotations(int id, node *annotations);   struct program *end_first_pass(int finish);   PMOD_EXPORT struct program *debug_end_program(void);   PMOD_EXPORT size_t low_add_storage(size_t size, size_t alignment,    ptrdiff_t modulo_orig);   PMOD_EXPORT void set_init_callback(void (*init_callback)(struct object *));   PMOD_EXPORT void set_exit_callback(void (*exit_callback)(struct object *));   PMOD_EXPORT void set_gc_recurse_callback(void (*m)(struct object *));   PMOD_EXPORT void set_gc_check_callback(void (*m)(struct object *));   PMOD_EXPORT void pike_set_prog_event_callback(void (*cb)(int));   PMOD_EXPORT void pike_set_prog_optimize_callback(node *(*opt)(node *));