Branch: Tag:

2001-04-08

2001-04-08 10:11:40 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

pike now avoides saving o->parent when it doesn't have to

Rev: src/bignum.c:1.21
Rev: src/builtin.cmod:1.25
Rev: src/builtin_functions.c:1.358
Rev: src/las.c:1.250
Rev: src/object.c:1.168
Rev: src/program.c:1.310
Rev: src/program.h:1.124
Rev: src/testsuite.in:1.401

24:    push_text("Gmp.bignum");    SAFE_APPLY_MASTER("resolv", 1);    -  if(sp[-1].type != T_FUNCTION) +  if(sp[-1].type != T_FUNCTION && sp[-1].type != T_PROGRAM)    Pike_error("Failed to resolv Gmp.mpz!\n");       auto_bignum_program=sp[-1];
87:    return 0; /* not possible */       resolve_auto_bignum_program(); -  return o->prog == program_from_function(&auto_bignum_program); +  return o->prog == program_from_svalue(&auto_bignum_program);   }      PMOD_EXPORT int is_bignum_object_in_svalue(struct svalue *sv)