diff options
| author | Andi Gutmans <andi@php.net> | 2002-11-20 19:48:12 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2002-11-20 19:48:12 +0000 |
| commit | e6b7ab9db86710ca0c90d320bd43dcd4c2c06ed4 (patch) | |
| tree | 93d192743b05e18f3402a8e131b0b4009b180f9d /ext/bcmath/bcmath.c | |
| parent | 33d0e4e1fbacd3acce5fab6bd3cc4c120223c46f (diff) | |
| download | php-git-e6b7ab9db86710ca0c90d320bd43dcd4c2c06ed4.tar.gz | |
- Intermediate commit which works on making bcmath thread-safe.
Diffstat (limited to 'ext/bcmath/bcmath.c')
| -rw-r--r-- | ext/bcmath/bcmath.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c index 2d0e67c4ac..894cde7444 100644 --- a/ext/bcmath/bcmath.c +++ b/ext/bcmath/bcmath.c @@ -65,9 +65,9 @@ static long bc_precision; #endif /* Storage used for special numbers. */ -extern bc_num _zero_; -extern bc_num _one_; -extern bc_num _two_; +extern bc_num BCG(_zero_); +extern bc_num BCG(_one_); +extern bc_num BCG(_two_); /* Make a copy of a number! Just increments the reference count! */ @@ -81,15 +81,15 @@ bc_num copy_num (bc_num num) /* Initialize a number NUM by making it a copy of zero. */ void init_num (bc_num *num) { - *num = copy_num (_zero_); + *num = copy_num (BCG(_zero_)); } PHP_RSHUTDOWN_FUNCTION(bcmath) { - bc_free_num(&_zero_); - bc_free_num(&_one_); - bc_free_num(&_two_); + bc_free_num(&BCG(_zero_)); + bc_free_num(&BCG(_one_)); + bc_free_num(&BCG(_two_)); return SUCCESS; } |
