pike.git / src / pike_compiler.cmod

version» Context lines:

pike.git/src/pike_compiler.cmod:2990:    {    if (c != 'O') {    push_int(0);    return;    }       push_text("__placeholder_object");    }   }    - 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;       {    struct svalue s;    SET_SVAL(s, T_PROGRAM, 0, program, null_program);    low_add_constant("__null_program", &s);    }       /*! @decl constant __placeholder_object    *!
pike.git/src/pike_compiler.cmod:3035:    low_add_constant("__placeholder_object", &s);    }       {    struct pike_string *attr;    struct svalue s;    MAKE_CONST_STRING(attr, "utf8_string");    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;    }    if (compilation_environment) {    free_object(compilation_environment);    compilation_environment = 0;    }    if (compilation_env_program) {    free_program(compilation_env_program);