pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:2204:    int inherit_depth, int inh,    struct pike_string *ident)   {    int id;    struct program *p = inherit_state->new_program;      #if 0    fprintf(stderr, "find_inherited_identifier(%p, %d, %d, \"%s\")\n",    inherit_state, inherit_depth, inh, ident->str);   #endif /* 0 */ +  if (!p) { +  return NULL; +  }    if (inh == INHERIT_ALL) {    /* Unspecified inherit, but not inherit #0. */    struct node_s *res = NULL;    for (inh = 1; inh < p->num_inherits; inh++) {    struct node_s *n;    if (p->inherits[inh].inherit_level != 1) continue;    /* NB: We can't recurse here, as that would resolve the magic    * identifiers multiple times on multiple inherit.    */    id = low_reference_inherited_identifier(inherit_state, inh, ident,