pike.git / src / bignum.c

version» Context lines:

pike.git/src/bignum.c:17:   PMOD_EXPORT void convert_stack_top_to_bignum(void)   {    push_object(clone_object(bignum_program, 1));   }      PMOD_EXPORT void convert_stack_top_with_base_to_bignum(void)   {    push_object(clone_object(bignum_program, 2));   }    - int is_bignum_object(struct object *o) - { -  return o->prog == bignum_program; - } -  +    PMOD_EXPORT int is_bignum_object_in_svalue(struct svalue *sv)   {    /* FIXME: object subtype? */    return TYPEOF(*sv) == T_OBJECT && is_bignum_object(sv->u.object);   }      PMOD_EXPORT struct object *make_bignum_object(void)   {    return clone_object(bignum_program, 1);   }