summaryrefslogtreecommitdiff
path: root/ext/bcmath/bcmath.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-05-21 10:06:25 +0000
committerSascha Schumann <sas@php.net>1999-05-21 10:06:25 +0000
commitb57dc275950b228f2399990471c4f22b7d154c6c (patch)
treea89fe99e356b218591b0b0b392862e0b9ddd4e7e /ext/bcmath/bcmath.c
parent4fe8fe715e4347a4063a57e1a9fd6dc013ca9ee0 (diff)
downloadphp-git-b57dc275950b228f2399990471c4f22b7d154c6c.tar.gz
- run ext sources through conv_proto
- add necessary phpext_*_ptr
Diffstat (limited to 'ext/bcmath/bcmath.c')
-rw-r--r--ext/bcmath/bcmath.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c
index 58073bb679..16dc415f61 100644
--- a/ext/bcmath/bcmath.c
+++ b/ext/bcmath/bcmath.c
@@ -76,7 +76,7 @@ int php3_rend_bcmath(SHUTDOWN_FUNC_ARGS)
/* {{{ proto string bcadd(string left_operand, string right_operand [, int scale])
Returns the sum of two arbitrary precision numbers */
-void php3_bcmath_add(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(bcmath_add)
{
pval *left, *right,*scale_param;
bc_num first, second, result;
@@ -119,7 +119,7 @@ void php3_bcmath_add(INTERNAL_FUNCTION_PARAMETERS)
/* {{{ proto string bcsub(string left_operand, string right_operand [, int scale])
Returns the difference between two arbitrary precision numbers (subtration) */
-void php3_bcmath_sub(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(bcmath_sub)
{
pval *left, *right,*scale_param;
bc_num first, second, result;
@@ -162,7 +162,7 @@ void php3_bcmath_sub(INTERNAL_FUNCTION_PARAMETERS)
/* {{{ proto string bcmul(string left_operand, string right_operand [, int scale])
Returns the multiplication of two arbitrary precision numbers */
-void php3_bcmath_mul(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(bcmath_mul)
{
pval *left, *right,*scale_param;
bc_num first, second, result;
@@ -205,7 +205,7 @@ void php3_bcmath_mul(INTERNAL_FUNCTION_PARAMETERS)
/* {{{ proto string bcdiv(string left_operand, string right_operand [, int scale])
Returns the quotient of two arbitrary precision numbers (division) */
-void php3_bcmath_div(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(bcmath_div)
{
pval *left, *right,*scale_param;
bc_num first, second, result;
@@ -254,7 +254,7 @@ void php3_bcmath_div(INTERNAL_FUNCTION_PARAMETERS)
/* {{{ proto string bcmod(string left_operand, string right_operand)
Returns the modulus of the two arbitrary precision operands */
-void php3_bcmath_mod(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(bcmath_mod)
{
pval *left, *right;
bc_num first, second, result;
@@ -295,7 +295,7 @@ void php3_bcmath_mod(INTERNAL_FUNCTION_PARAMETERS)
/* {{{ proto string bcpow(string x, string y [, int scale])
Returns the value of an arbitrary precision number raised to the power of another */
-void php3_bcmath_pow(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(bcmath_pow)
{
pval *left, *right,*scale_param;
bc_num first, second, result;
@@ -338,7 +338,7 @@ void php3_bcmath_pow(INTERNAL_FUNCTION_PARAMETERS)
/* {{{ proto string bcsqrt(string operand [, int scale])
Returns the square root of an arbitray precision number */
-void php3_bcmath_sqrt(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(bcmath_sqrt)
{
pval *left,*scale_param;
bc_num result;
@@ -378,7 +378,7 @@ void php3_bcmath_sqrt(INTERNAL_FUNCTION_PARAMETERS)
/* {{{ proto string bccomp(string left_operand, string right_operand [, int scale])
Compares two arbitrary precision numbers */
-void php3_bcmath_comp(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(bcmath_comp)
{
pval *left, *right, *scale_param;
bc_num first, second;
@@ -420,7 +420,7 @@ void php3_bcmath_comp(INTERNAL_FUNCTION_PARAMETERS)
/* {{{ proto string bcscale(int scale)
Sets default scale parameter for all bc math functions */
-void php3_bcmath_set_scale(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(bcmath_set_scale)
{
pval *new_scale;