Branch: Tag:

2001-06-23

2001-06-23 21:52:10 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

allow programs with pragma_save_parent to be cloned without parent since they unless they really NEED a parent pointer

Rev: src/docode.c:1.122
Rev: src/las.c:1.254
Rev: src/object.c:1.171
Rev: src/program.c:1.333
Rev: src/program.h:1.130

5:   \*/   /**/   #include "global.h" - RCSID("$Id: docode.c,v 1.121 2001/06/23 10:33:11 hubbe Exp $"); + RCSID("$Id: docode.c,v 1.122 2001/06/23 21:52:09 hubbe Exp $");   #include "las.h"   #include "program.h"   #include "pike_types.h"
1754:    x++;   #endif    emit2(F_EXTERNAL, n->u.sval.subtype, x); -  Pike_compiler->new_program->flags |= PROGRAM_USES_PARENT; +  Pike_compiler->new_program->flags |= +  PROGRAM_USES_PARENT | PROGRAM_NEEDS_PARENT;    return 1;    }    }