pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:4550:    }    break;    case ID_ENTRY_INHERIT:    {    struct program *prog;    struct object *parent = NULL;    int parent_identifier;    int parent_offset;    struct pike_string *name = NULL;    int no; +  int save_compiler_flags;       decode_number(no, data);    EDB(1, {    DECODE_WERR_COMMENT("ref_no",    ".number %ld", no);    });    if (no !=    Pike_compiler->new_program->num_identifier_references) {    ref_push_program (p);    decode_error(data, Pike_sp - 1,
pike.git/src/encode.c:4576:    name = Pike_sp[-1].u.string;    } else if ((TYPEOF(Pike_sp[-1]) != T_INT) ||    Pike_sp[-1].u.integer) {    ref_push_program (p);    decode_error(data, Pike_sp - 1,    "Bad inherit name (not a string): %O\n",    Pike_sp - 2);    }       /* prog */ +  SET_FORCE_RESOLVE(save_compiler_flags);    decode_value2(data); -  +  UNSET_FORCE_RESOLVE(save_compiler_flags);    if (!(prog = program_from_svalue(Pike_sp-1))) {    ref_push_program (p);    decode_error(data, Pike_sp - 1,    "Bad inherit: Expected program, got: %O\n",    Pike_sp - 2);    }    if (prog == placeholder_program) {    ref_push_program (p);    decode_error (data, Pike_sp - 1,    "Trying to inherit placeholder program "