pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:9069:    for (i=0; i < NELEM(lfun_names); i++) {    lfun_strings[i] = make_shared_static_string(lfun_names[i], strlen(lfun_names[i]), eightbit);       SET_SVAL(id, T_INT, NUMBER_NUMBER, integer, i);    SET_SVAL(key, T_STRING, 0, string, lfun_strings[i]);    mapping_insert(lfun_ids, &key, &id);       SET_SVAL(val, T_TYPE, 0, type, make_pike_type(raw_lfun_types[i]));    mapping_insert(lfun_types, &key, &val);    -  if (id == LFUN__DESTRUCT) { +  if (i == LFUN__DESTRUCT) {    /* Special case for lfun::destroy(). */    SET_SVAL(key, T_STRING, 0, string, compat_lfun_destroy_string);    /* FIXME: Adjust the type to be __deprecated__? */    mapping_insert(lfun_types, &key, &val);    free_type(val.u.type);       SET_SVAL(id, T_INT, NUMBER_NUMBER, integer, i);    mapping_insert(lfun_ids, &key, &id);    } else {    free_type(val.u.type);