summaryrefslogtreecommitdiff
path: root/ext/bcmath
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2002-12-11 16:28:16 +0000
committerSara Golemon <pollita@php.net>2002-12-11 16:28:16 +0000
commit04d6f6ab50cb077439f15d252e1037bd849c6bce (patch)
treee0e752c131cad6d9299cea1a53b62c2b6e54d04f /ext/bcmath
parent5f9681ff802cb82aac48453fdf77d2e3907dee0d (diff)
downloadphp-git-04d6f6ab50cb077439f15d252e1037bd849c6bce.tar.gz
Renamed bc_powmod to bcpowmod to keep it inline with existing module
functions. Fixed whitespace problem.
Diffstat (limited to 'ext/bcmath')
-rw-r--r--ext/bcmath/bcmath.c8
-rw-r--r--ext/bcmath/php_bcmath.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c
index 7c78e91ed7..28940e6c5a 100644
--- a/ext/bcmath/bcmath.c
+++ b/ext/bcmath/bcmath.c
@@ -42,7 +42,7 @@ function_entry bcmath_functions[] = {
PHP_FE(bcsqrt, NULL)
PHP_FE(bcscale, NULL)
PHP_FE(bccomp, NULL)
- PHP_FE(bc_powmod, NULL)
+ PHP_FE(bcpowmod, NULL)
{NULL, NULL, NULL}
};
@@ -330,9 +330,9 @@ PHP_FUNCTION(bcmod)
}
/* }}} */
-/* {{{ proto string bc_powmod(string x, string y, string mod [, int scale])
+/* {{{ proto string bcpowmod(string x, string y, string mod [, int scale])
Returns the value of an arbitrary precision number raised to the power of another reduced by a modulous */
-PHP_FUNCTION(bc_powmod)
+PHP_FUNCTION(bcpowmod)
{
char *left, *right, *modulous;
int left_len, right_len, modulous_len;
@@ -340,7 +340,7 @@ PHP_FUNCTION(bc_powmod)
int scale=bc_precision;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|l", &left, &left_len, &right, &right_len, &modulous, &modulous_len, &scale) == FAILURE) {
- WRONG_PARAM_COUNT;
+ WRONG_PARAM_COUNT;
}
bc_init_num(&first TSRMLS_CC);
diff --git a/ext/bcmath/php_bcmath.h b/ext/bcmath/php_bcmath.h
index f7036a4bbd..108a847b47 100644
--- a/ext/bcmath/php_bcmath.h
+++ b/ext/bcmath/php_bcmath.h
@@ -60,7 +60,7 @@ PHP_FUNCTION(bcpow);
PHP_FUNCTION(bcsqrt);
PHP_FUNCTION(bccomp);
PHP_FUNCTION(bcscale);
-PHP_FUNCTION(bc_powmod);
+PHP_FUNCTION(bcpowmod);
#else