Branch: Tag:

2014-02-25

2014-02-25 14:37:35 by Per Hedbor <ph@opera.com>

Restored FIND_LFUN to work with all lfuns.

Also make the debug code conditional on PIKE_DEBUG.

It is now possible to use F_LOOKUP_LFUN again for all lfuns, not only
'real' ones.

2463:    return 2;    }else{    tmp1 = do_docode(CAR(n), DO_NOT_COPY); -  /* fake lfuns start at NUM_LFUN and are not accessible via F_LOOKUP_LFUN */ -  if ((tmp2 = lfun_lookup_id(CDR(n)->u.sval.u.string)) != -1 && tmp2 < NUM_LFUNS) { +  if ((tmp2 = lfun_lookup_id(CDR(n)->u.sval.u.string)) != -1 ) {    emit1(F_LOOKUP_LFUN, tmp2);    } else {    emit1(F_ARROW, store_prog_string(CDR(n)->u.sval.u.string));