sander          Fri Nov 29 13:05:22 2002 EDT

  Modified files:              (Branch: PHP_4_3)
    /php4/ext/bcmath/libbcmath/src      init.c private.h recmul.c 
  Log:
  MFH
  
  
Index: php4/ext/bcmath/libbcmath/src/init.c
diff -u php4/ext/bcmath/libbcmath/src/init.c:1.1.16.1 
php4/ext/bcmath/libbcmath/src/init.c:1.1.16.2
--- php4/ext/bcmath/libbcmath/src/init.c:1.1.16.1       Fri Nov 22 04:27:08 2002
+++ php4/ext/bcmath/libbcmath/src/init.c        Fri Nov 29 13:05:22 2002
@@ -38,7 +38,9 @@
 #include "bcmath.h"
 #include "private.h"
 
+#ifdef SANDER_0
  bc_num _bc_Free_list = NULL;
+#endif
 
 /* new_num allocates a number and sets fields to known values. */
 
Index: php4/ext/bcmath/libbcmath/src/private.h
diff -u php4/ext/bcmath/libbcmath/src/private.h:1.1.16.1 
php4/ext/bcmath/libbcmath/src/private.h:1.1.16.2
--- php4/ext/bcmath/libbcmath/src/private.h:1.1.16.1    Fri Nov 29 06:15:43 2002
+++ php4/ext/bcmath/libbcmath/src/private.h     Fri Nov 29 13:05:22 2002
@@ -32,7 +32,9 @@
 /* "Private" routines to bcmath. */
 
 /* variables */
+#ifdef 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);
Index: php4/ext/bcmath/libbcmath/src/recmul.c
diff -u php4/ext/bcmath/libbcmath/src/recmul.c:1.2.16.1 
php4/ext/bcmath/libbcmath/src/recmul.c:1.2.16.2
--- php4/ext/bcmath/libbcmath/src/recmul.c:1.2.16.1     Fri Nov 22 04:27:08 2002
+++ php4/ext/bcmath/libbcmath/src/recmul.c      Fri Nov 29 13:05:22 2002
@@ -57,13 +57,17 @@
 {
   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->n_sign = PLUS;
   temp->n_len = length;
   temp->n_scale = scale;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to