pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:4340:    int e, id;    struct program *p;      #ifdef PIKE_DEBUG    if (name != debug_findstring(name))    Pike_fatal("reference_inherited_identifier on nonshared string.\n");   #endif       if (!state) state = Pike_compiler;    -  p = Pike_compiler->new_program; +  p = state->new_program;       /* FIXME: This loop could be optimized by advancing by the number    * of inherits in the inherit. But in that case the loop    * would have to go the other way.    */    for (e = p->num_inherits; e--;) {    if (p->inherits[e].inherit_level != 1) continue; -  if (!p->inherits[e].name) continue; -  +     if (inherit && (inherit != p->inherits[e].name)) continue;       id = low_reference_inherited_identifier(state, e, name, SEE_PROTECTED);       if (id != -1) return id;    }       return -1;   }