Skip to content

Commit 348b429

Browse files
author
Sander Roobol
committed
Remove all traces of _bc_Free_list - it's not used anymore
1 parent e4be6b3 commit 348b429

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

ext/bcmath/libbcmath/src/init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
#include "bcmath.h"
3939
#include "private.h"
4040

41+
#if SANDER_0
4142
bc_num _bc_Free_list = NULL;
43+
#endif
4244

4345
/* new_num allocates a number and sets fields to known values. */
4446

ext/bcmath/libbcmath/src/private.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
/* "Private" routines to bcmath. */
3333

3434
/* variables */
35+
#if SANDER_0
3536
extern bc_num _bc_Free_list;
37+
#endif
3638

3739
/* routines */
3840
int _bc_do_compare (bc_num n1, bc_num n2, int use_sign, int ignore_last);

ext/bcmath/libbcmath/src/recmul.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,17 @@ new_sub_num (length, scale, value)
5757
{
5858
bc_num temp;
5959

60+
#ifdef SANDER_0
6061
if (_bc_Free_list != NULL) {
6162
temp = _bc_Free_list;
6263
_bc_Free_list = temp->n_next;
6364
} else {
65+
#endif
6466
temp = (bc_num) emalloc (sizeof(bc_struct));
67+
#ifdef SANDER_0
6568
if (temp == NULL) bc_out_of_memory ();
6669
}
70+
#endif
6771
temp->n_sign = PLUS;
6872
temp->n_len = length;
6973
temp->n_scale = scale;

0 commit comments

Comments
 (0)