Branch: Tag:

2015-02-17

2015-02-17 15:03:59 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Bignums: get_auto_bignum_program{,_or_zero}() now actually work...

program_from_function() wants an svalue that contains a function,
but the auto_bignum_program svalue typically contains a program...

21:      PMOD_EXPORT struct program *get_auto_bignum_program(void)   { -  return program_from_function(&auto_bignum_program); +  return program_from_svalue(&auto_bignum_program);   }      PMOD_EXPORT struct program *get_auto_bignum_program_or_zero(void)   {    if (auto_bignum_program.type == PIKE_T_FREE)    return 0; -  return program_from_function(&auto_bignum_program); +  return program_from_svalue(&auto_bignum_program);   }      void exit_auto_bignum(void)