Branch: Tag:

2014-10-29

2014-10-29 18:01:19 by Martin Nilsson <nilsson@opera.com>

Remove get_auto_bignum_program

14:      #include "bignum.h"    - #define sp Pike_sp -  - PMOD_EXPORT struct program *get_auto_bignum_program(void) - { -  return bignum_program; - } -  +    PMOD_EXPORT void convert_stack_top_to_bignum(void)   {    push_object(clone_object(bignum_program, 1));
58:    push_int(base);    safe_apply(o, "digits", 1);    -  if(TYPEOF(sp[-1]) != T_STRING) +  if(TYPEOF(Pike_sp[-1]) != T_STRING)    Pike_error("Gmp.mpz string conversion failed.\n");    -  dmalloc_touch_svalue(sp-1); -  return (--sp)->u.string; +  dmalloc_touch_svalue(Pike_sp-1); +  return (--Pike_sp)->u.string;   }      PMOD_EXPORT void convert_svalue_to_bignum(struct svalue *s)
70:    push_svalue(s);    convert_stack_top_to_bignum();    free_svalue(s); -  *s=sp[-1]; -  sp--; -  dmalloc_touch_svalue(sp); +  *s=Pike_sp[-1]; +  Pike_sp--; +  dmalloc_touch_svalue(Pike_sp);   }