Branch: Tag:

2013-10-05

2013-10-05 11:55:58 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Objects: Exit event handlers may need the parent.

Make sure that parent_storage() also works from exit event
handlers. Fixes fatal "Shouldn't get an exception in destruct()."

Also propagates the PROGRAM_HAS_C_METHODS flag on inherit.

4642:    return;    }    +  if (p->flags & PROGRAM_HAS_C_METHODS) { +  Pike_compiler->new_program->flags |= PROGRAM_HAS_C_METHODS; +  } +     /* parent offset was increased by 42 for above test.. */    if(parent_offset)    parent_offset-=42;