pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:8127: Inside #if defined(PIKE_DEBUG)
  {    Pike_fatal("Invalid lfun number: %d\n", lfun);    UNREACHABLE(return -1);   }   #endif      int lfun_lookup_id(struct pike_string *lfun_name)   {    struct svalue *id = low_mapping_string_lookup(lfun_ids, lfun_name);    if (!id) return -1; -  if (TYPEOF(*id) == T_INT) return id->u.integer; +  if (TYPEOF(*id) == T_INT) { +  if (lfun_strings[id->u.integer] == lfun_name) { +  return id->u.integer; +  } +  return -1; /* Compat lfun name. */ +  }    my_yyerror("Bad entry in lfun lookup table for %S.", lfun_name);    return -1;   }      /**    * Lookup the number of a function in a program given the name in    * a shared_string    */   int low_find_shared_string_identifier(const struct pike_string *name,    const struct program *prog)