pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:6729:       /* Found a function to call! */    apply_current(fun_num, args);    return;    }    Pike_error("Invalid arguments to %S()!\n", name);   }      PMOD_EXPORT int low_find_lfun(struct program *p, ptrdiff_t lfun)   { -  struct pike_string *lfun_name = lfun_strings[lfun]; +  struct pike_string *lfun_name;    unsigned int flags = 0; -  +  int i;   #if 0    struct identifier *id;   #endif -  int i = -  really_low_find_shared_string_identifier(lfun_name, +  if ((size_t)lfun >= NELEM(lfun_strings)) { +  return -1; +  } +  +  lfun_name = lfun_strings[lfun]; +  +  i = really_low_find_shared_string_identifier(lfun_name,    dmalloc_touch(struct program *,    p),    SEE_PROTECTED);   #if 0    if (i < 0 || !(p->flags & PROGRAM_FIXED)) return i;    id = ID_FROM_INT(p, i);    if (IDENTIFIER_IS_PIKE_FUNCTION(id->identifier_flags) &&    (id->func.offset == -1)) {    /* Function prototype. */    return -1;