#include "bcmath.h"
#include "private.h"
-#if SANDER_0
- bc_num _bc_Free_list = NULL;
-#endif
-
/* new_num allocates a number and sets fields to known values. */
bc_num
{
*num = bc_copy_num (BCG(_zero_));
}
-
/* "Private" routines to bcmath. */
-/* variables */
-#if SANDER_0
-extern bc_num _bc_Free_list;
-#endif
-
/* routines */
int _bc_do_compare (bc_num n1, bc_num n2, int use_sign, int ignore_last);
bc_num _bc_do_add (bc_num n1, bc_num n2, int scale_min);
{
bc_num temp;
-#ifdef SANDER_0
- if (_bc_Free_list != NULL) {
- temp = _bc_Free_list;
- _bc_Free_list = temp->n_next;
- } else {
-#endif
- temp = (bc_num) emalloc (sizeof(bc_struct));
-#ifdef SANDER_0
- if (temp == NULL) bc_out_of_memory ();
- }
-#endif
+ temp = (bc_num) emalloc (sizeof(bc_struct));
+
temp->n_sign = PLUS;
temp->n_len = length;
temp->n_scale = scale;