pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:7191:    struct svalue *lfun_id = low_mapping_string_lookup(lfun_ids, name);    if (lfun_id && (TYPEOF(*lfun_id) == PIKE_T_INT)) {    if (lfun_compat_strings[lfun_id->u.integer] == name) {    /* Compat lfun.    *    * Check if we actually have an lfun.    *    * NB: We're in the last pass, so all symbols should be    * present (at least for the Pike code case).    */ -  if ((lfun >= LFUN__ITERATOR_NEXT_FUN) && -  (lfun <= LFUN__ITERATOR_VALUE_FUN)) { +  if ((lfun_id->u.integer >= LFUN__ITERATOR_NEXT_FUN) && +  (lfun_id->u.integer <= LFUN__ITERATOR_VALUE_FUN)) {    /* Only fallback and warn if all three are implemented in old style.    *    * Otherwise the symbols are probably used for some    * other purpose.    *    * Cf Calendar.TimeRanges.TimeRange.    */    int iterator_lfun;    for (iterator_lfun = LFUN__ITERATOR_NEXT_FUN;    iterator_lfun <= LFUN__ITERATOR_VALUE_FUN;    iterator_lfun++) {    if (really_low_find_shared_string_identifier(    lfun_compat_strings[iterator_lfun], -  dmalloc_touch(struct program *, p), +  dmalloc_touch(struct program *, prog),    SEE_PROTECTED) < 0) {    /* One of them is missing. */    goto skip_special_cases;    }    }    }    }    }    /* Inhibit deprecation warnings during the comparison. */    c->lex.pragmas |= ID_NO_DEPRECATION_WARNINGS;