pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:7212:    p),    SEE_PROTECTED);       if ((i < 0) && (lfun == LFUN__DESTRUCT)) {    /* Try the Pike 8.0 compatibility name. */    i = really_low_find_shared_string_identifier(compat_lfun_destroy_string,    dmalloc_touch(struct program *,    p),    SEE_PROTECTED);    if ((i >= 0) && !(p->flags & PROGRAM_FINISHED) && !TEST_COMPAT(8,0)) { +  struct compilation *c = MAYBE_THIS_COMPILATION; +  if (c && !(c->lex.pragmas & ID_NO_DEPRECATION_WARNINGS)) {    yywarning("Compat: Substituting destroy() for _destruct().");    }    } -  +  }       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;    }