Branch: Tag:

2014-12-04

2014-12-04 19:24:33 by Henrik Grubbström (Grubba) <grubba@grubba.org>

decode_value: Fixed inherit of programs needing parent.

Fixes dumping of eg 7.4::Stdio.File.

4660:       /* 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,