pike.git / src / bignum.c

version» Context lines:

pike.git/src/bignum.c:34:   struct program *get_auto_bignum_program(void)   {    resolve_auto_bignum_program();    return program_from_function(&auto_bignum_program);   }      struct program *get_auto_bignum_program_or_zero(void)   {    if(!gmp_library_loaded ||    gmp_library_resolving || -  !get_master()) return 0; +  !master_object) return 0;    resolve_auto_bignum_program();    return program_from_function(&auto_bignum_program);   }      void exit_auto_bignum(void)   {    free_svalue(&auto_bignum_program);    auto_bignum_program.type=T_INT;   }   
pike.git/src/bignum.c:73:   int is_bignum_object(struct object *o)   {    /* Note:    * This function should *NOT* try to resolv Gmp.mpz unless    * it is already loaded into memory.    * /Hubbe    */       if(!gmp_library_loaded ||    gmp_library_resolving || -  !get_master()) +  !master_object)    return 0; /* not possible */       resolve_auto_bignum_program();    return o->prog == program_from_function(&auto_bignum_program);   }      int is_bignum_object_in_svalue(struct svalue *sv)   {    return sv->type == T_OBJECT && is_bignum_object(sv->u.object);   }