pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:4653:    } 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 */    decode_value2(data); -  if (TYPEOF(Pike_sp[-1]) != T_PROGRAM) { +  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);    } -  prog = Pike_sp[-1].u.program; +     if (prog == placeholder_program) {    ref_push_program (p);    decode_error (data, Pike_sp - 1,    "Trying to inherit placeholder program "    "(resolver or codec problem).\n");    }    if(!(prog->flags & (PROGRAM_FINISHED | PROGRAM_PASS_1_DONE))) {    ref_push_program (p);    decode_error (data, Pike_sp - 1,    "Cannot inherit a program which is not "