diff options
author | Andi Gutmans <andi@php.net> | 2000-06-05 19:47:54 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-06-05 19:47:54 +0000 |
commit | 3701bc420774c1b689f8a43f0ed891c99fea3cd2 (patch) | |
tree | 9bbc5d33a0a90e290889dbca3d8fa9bb1dfe38a9 /ext/bcmath/bcmath.c | |
parent | 1cefd77f1c6ec98c23ba04998ca3a07c8c4e7b68 (diff) | |
download | php-git-3701bc420774c1b689f8a43f0ed891c99fea3cd2.tar.gz |
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
Diffstat (limited to 'ext/bcmath/bcmath.c')
-rw-r--r-- | ext/bcmath/bcmath.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c index d66fce78e3..15402d0f01 100644 --- a/ext/bcmath/bcmath.c +++ b/ext/bcmath/bcmath.c @@ -71,7 +71,7 @@ PHP_FUNCTION(bcadd) bc_num first, second, result; int scale=bc_precision; - switch (ARG_COUNT(ht)) { + switch (ZEND_NUM_ARGS()) { case 2: if (zend_get_parameters_ex(2, &left,&right) == FAILURE) { WRONG_PARAM_COUNT; @@ -114,7 +114,7 @@ PHP_FUNCTION(bcsub) bc_num first, second, result; int scale=bc_precision; - switch (ARG_COUNT(ht)) { + switch (ZEND_NUM_ARGS()) { case 2: if (zend_get_parameters_ex(2, &left,&right) == FAILURE) { WRONG_PARAM_COUNT; @@ -157,7 +157,7 @@ PHP_FUNCTION(bcmul) bc_num first, second, result; int scale=bc_precision; - switch (ARG_COUNT(ht)) { + switch (ZEND_NUM_ARGS()) { case 2: if (zend_get_parameters_ex(2, &left,&right) == FAILURE) { WRONG_PARAM_COUNT; @@ -200,7 +200,7 @@ PHP_FUNCTION(bcdiv) bc_num first, second, result; int scale=bc_precision; - switch (ARG_COUNT(ht)) { + switch (ZEND_NUM_ARGS()) { case 2: if (zend_get_parameters_ex(2, &left,&right) == FAILURE) { WRONG_PARAM_COUNT; @@ -248,7 +248,7 @@ PHP_FUNCTION(bcmod) pval **left, **right; bc_num first, second, result; - switch (ARG_COUNT(ht)) { + switch (ZEND_NUM_ARGS()) { case 2: if (zend_get_parameters_ex(2, &left,&right) == FAILURE) { WRONG_PARAM_COUNT; @@ -290,7 +290,7 @@ PHP_FUNCTION(bcpow) bc_num first, second, result; int scale=bc_precision; - switch (ARG_COUNT(ht)) { + switch (ZEND_NUM_ARGS()) { case 2: if (zend_get_parameters_ex(2, &left,&right) == FAILURE) { WRONG_PARAM_COUNT; @@ -333,7 +333,7 @@ PHP_FUNCTION(bcsqrt) bc_num result; int scale=bc_precision; - switch (ARG_COUNT(ht)) { + switch (ZEND_NUM_ARGS()) { case 1: if (zend_get_parameters_ex(1, &left)== FAILURE) { WRONG_PARAM_COUNT; @@ -373,7 +373,7 @@ PHP_FUNCTION(bccomp) bc_num first, second; int scale=bc_precision; - switch (ARG_COUNT(ht)) { + switch (ZEND_NUM_ARGS()) { case 2: if (zend_get_parameters_ex(2, &left,&right) == FAILURE) { WRONG_PARAM_COUNT; @@ -413,7 +413,7 @@ PHP_FUNCTION(bcscale) { pval **new_scale; - if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1,&new_scale)==FAILURE) { + if (ZEND_NUM_ARGS()!=1 || zend_get_parameters_ex(1,&new_scale)==FAILURE) { WRONG_PARAM_COUNT; } |