Branch: Tag:

2018-11-07

2018-11-07 13:38:59 by Henrik Grubbström (Grubba) <grubba@grubba.org>

PikeCompiler: Move high-level classes to _static_modules.Builtin.

Top-level CMOD symbols in pike_compiler.cmod were previously lost
to the void unless explicitly handled. They now instead show up
in _static_modules.Builtin (as with similar symbols elsewhere).

2997:    }   }    - void init_pike_compiler(void) + void low_init_pike_compiler(void)   {   #ifdef PIKE_THREADS    co_init(&Pike_compiler_cond);   #endif       compile_compiler(); -  + }    -  enter_compiler(NULL, 0); +       /*    * Now that the compiler has been compiled,    * we can use the usual cmod stuff.    */    -  + void init_pike_compiler(void) + {    INIT;       {
3042:    SET_SVAL(s, T_TYPE, 0, type, utf8_type_string);    low_add_efun(attr, &s);    } -  -  exit_compiler(); +    }      void cleanup_pike_compiler(void)   {    EXIT; -  + }    -  + void low_cleanup_pike_compiler(void) + {    if (compilation_program) {    free_program(compilation_program);    compilation_program = 0;