pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:4354:    * Add a single annotation for a symbol in the current program    * being compiled.    *    * @param id    * Identifier to annotate.    *    * @param val    * Annotation value. Should be an object implementing    * the Pike.Annotation interface.    */ - static void add_annotation(int id, struct svalue *val) + PMOD_EXPORT void add_annotation(int id, struct svalue *val)   {    while (Pike_compiler->new_program->num_annotations <= id) {    add_to_annotations(NULL);    }       if (val) {    if (Pike_compiler->new_program->annotations[id]) {    multiset_add(Pike_compiler->new_program->annotations[id], val);    } else {    push_svalue(val);
pike.git/src/program.c:4397:    * Inherit to annotate.    *    * @param val    * Annotation value. Should be an object implementing    * the Pike.Annotation interface.    *    * NOTE: This operation is ONLY valid for inherits at    * levels 0 and 1!    *    */ - static void add_program_annotation(int inh, struct svalue *val) + PMOD_EXPORT void add_program_annotation(int inh, struct svalue *val)   {    struct inherit *inherit = Pike_compiler->new_program->inherits + inh;    if (inherit->inherit_level > 1) {    Pike_fatal("Attempt to annotate inherit #%d at level %d!\n",    inh, inherit->inherit_level);    }    if (val) {    if (inherit->annotations) {    multiset_add(inherit->annotations, val);    } else {