Remove all traces of _bc_Free_list - it's not used anymore

This commit is contained in:
Sander Roobol 2002-11-29 17:59:30 +00:00
parent e4be6b3ac2
commit 348b429b5b
3 changed files with 8 additions and 0 deletions

View file

@ -38,7 +38,9 @@
#include "bcmath.h" #include "bcmath.h"
#include "private.h" #include "private.h"
#if SANDER_0
bc_num _bc_Free_list = NULL; bc_num _bc_Free_list = NULL;
#endif
/* new_num allocates a number and sets fields to known values. */ /* new_num allocates a number and sets fields to known values. */

View file

@ -32,7 +32,9 @@
/* "Private" routines to bcmath. */ /* "Private" routines to bcmath. */
/* variables */ /* variables */
#if SANDER_0
extern bc_num _bc_Free_list; extern bc_num _bc_Free_list;
#endif
/* routines */ /* routines */
int _bc_do_compare (bc_num n1, bc_num n2, int use_sign, int ignore_last); int _bc_do_compare (bc_num n1, bc_num n2, int use_sign, int ignore_last);

View file

@ -57,13 +57,17 @@ new_sub_num (length, scale, value)
{ {
bc_num temp; bc_num temp;
#ifdef SANDER_0
if (_bc_Free_list != NULL) { if (_bc_Free_list != NULL) {
temp = _bc_Free_list; temp = _bc_Free_list;
_bc_Free_list = temp->n_next; _bc_Free_list = temp->n_next;
} else { } else {
#endif
temp = (bc_num) emalloc (sizeof(bc_struct)); temp = (bc_num) emalloc (sizeof(bc_struct));
#ifdef SANDER_0
if (temp == NULL) bc_out_of_memory (); if (temp == NULL) bc_out_of_memory ();
} }
#endif
temp->n_sign = PLUS; temp->n_sign = PLUS;
temp->n_len = length; temp->n_len = length;
temp->n_scale = scale; temp->n_scale = scale;