Branch: Tag:

2019-02-09

2019-02-09 11:46:46 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Make add_{,program_}annotation() PMOD_EXPORT.

This makes it possible to add annotations to programs implemented in C.

4361:    * 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);
4404:    * 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) {