pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:2511:    */    low_init_threads_disable();       c->compilation_depth++;       if (!Pike_compiler->compiler_frame) {    new_node_s_context();    }       tmp.type=T_PROGRAM; +  tmp.subtype=0;    if(!p)    {    p=low_allocate_program();    if(name)    {    tmp.u.program=p;    id=add_constant(name, &tmp, flags & ~ID_EXTERN);   #if 0    fprintf(stderr,"Compiling class %s, depth=%d\n",    name->str, c->compilation_depth);
pike.git/src/program.c:10006:       lfun_ids = allocate_mapping(NUM_LFUNS);    lfun_types = allocate_mapping(NUM_LFUNS);    for (i=0; i < NELEM(lfun_names); i++) {    lfun_strings[i] = make_shared_string(lfun_names[i]);       id.type = T_INT;    id.subtype = NUMBER_NUMBER;    id.u.integer = i;    key.type = T_STRING; +  key.subtype = 0;    key.u.string = lfun_strings[i];    mapping_insert(lfun_ids, &key, &id);       val.type = T_TYPE; -  +  val.subtype = 0;    val.u.type = make_pike_type(raw_lfun_types[i]);    mapping_insert(lfun_types, &key, &val);    free_type(val.u.type);    }       lfun_getter_type_string = make_pike_type(tFuncV(tNone, tVoid, tMix));    lfun_setter_type_string = make_pike_type(tFuncV(tZero, tVoid, tVoid));       compile_compiler();   
pike.git/src/program.c:10052:    *! by the compiler.    *!    *! @seealso    *! @[__placeholder_object]    */    {    struct svalue s;    debug_start_new_program(0, "__null_program");    null_program=end_program();    s.type=T_PROGRAM; +  s.subtype = 0;    s.u.program=null_program;    low_add_constant("__null_program",&s);    debug_malloc_touch(null_program);    }       /*! @decl constant __placeholder_object    *!    *! Object used internally by the compiler.    *!    *! @seealso