Branch: Tag:

2001-10-05

2001-10-05 01:30:14 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

much improved handling of cross-dependencies

Rev: lib/master.pike.in:1.170
Rev: src/builtin_functions.c:1.408
Rev: src/compilation.h:1.25
Rev: src/encode.c:1.130
Rev: src/global.h:1.65
Rev: src/interpret.c:1.250
Rev: src/interpret_functions.h:1.97
Rev: src/las.c:1.271
Rev: src/object.c:1.186
Rev: src/pike_types.c:1.182
Rev: src/program.c:1.381
Rev: src/program.h:1.145
Rev: src/threads.c:1.169

1:   /* -  * $Id: interpret_functions.h,v 1.96 2001/09/29 08:47:03 hubbe Exp $ +  * $Id: interpret_functions.h,v 1.97 2001/10/05 01:30:13 hubbe Exp $    *    * Opcode definitions for the interpreter.    */
2210:   OPCODE0(F_ZERO_TYPE, "zero_type", {    if(Pike_sp[-1].type != T_INT)    { +  if((Pike_sp[-1].type==T_OBJECT || Pike_sp[-1].type==T_FUNCTION) +  && !Pike_sp[-1].u.object->prog) +  {    pop_stack(); -  +  push_int(NUMBER_DESTRUCTED); +  }else{ +  pop_stack();    push_int(0); -  +  }    }else{    Pike_sp[-1].u.integer=Pike_sp[-1].subtype;    Pike_sp[-1].subtype=NUMBER_NUMBER;