cvs: php4 /ext/standard basic_functions.c math.c

From: Date: Wed, 01 Aug 2001 16:55:25 +0000
Subject: cvs: php4 /ext/standard basic_functions.c math.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6459@lists.php.net to get a copy of this message
fmk Wed Aug 1 12:55:25 2001 EDT Modified files: /php4/ext/standard basic_functions.c math.c Log: These new math functions are not supported on Win32 Index: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_functions.c:1.372 php4/ext/standard/basic_functions.c:1.373 --- php4/ext/standard/basic_functions.c:1.372 Wed Aug 1 09:48:13 2001 +++ php4/ext/standard/basic_functions.c Wed Aug 1 12:55:23 2001 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: basic_functions.c,v 1.372 2001/08/01 13:48:13 andrei Exp $ */ +/* $Id: basic_functions.c,v 1.373 2001/08/01 16:55:23 fmk Exp $ */ #include "php.h" #include "php_main.h" @@ -289,9 +289,11 @@ PHP_FE(sinh, NULL) PHP_FE(cosh, NULL) PHP_FE(tanh, NULL) +#ifndef PHP_WIN32 PHP_FE(asinh, NULL) PHP_FE(acosh, NULL) PHP_FE(atanh, NULL) +#endif PHP_FE(pi, NULL) PHP_FE(pow, NULL) PHP_FE(exp, NULL) @@ -301,10 +303,14 @@ PHP_FE(exp2, NULL) PHP_FE(exp10, NULL) PHP_FE(log2, NULL) +#ifndef PHP_WIN32 PHP_FE(cbrt, NULL) +#endif PHP_FE(hypot, NULL) +#ifndef PHP_WIN32 PHP_FE(expm1, NULL) PHP_FE(log1p, NULL) +#endif PHP_FE(deg2rad, NULL) PHP_FE(rad2deg, NULL) PHP_FE(bindec, NULL) Index: php4/ext/standard/math.c diff -u php4/ext/standard/math.c:1.42 php4/ext/standard/math.c:1.43 --- php4/ext/standard/math.c:1.42 Wed Aug 1 09:48:14 2001 +++ php4/ext/standard/math.c Wed Aug 1 12:55:24 2001 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: math.c,v 1.42 2001/08/01 13:48:14 andrei Exp $ */ +/* $Id: math.c,v 1.43 2001/08/01 16:55:24 fmk Exp $ */ #include "php.h" #include "php_math.h" @@ -312,6 +312,8 @@ } /* }}} */ + +#ifndef PHP_WIN32 /* {{{ proto double asinh(double number) Returns the inverse hyperbolic sine of the number, i.e. the value whose hyperbolic sine is number */ @@ -363,6 +365,7 @@ } /* }}} */ +#endif /* {{{ proto double pi(void) Returns an approximation of pi */ @@ -442,6 +445,8 @@ } /* }}} */ + +#ifndef PHP_WIN32 /* {{{ proto double expm1(double number) Returns exp(number) - 1, computed in a way that accurate even when the value of number is close to zero */ @@ -476,6 +481,8 @@ } /* }}} */ + +#endif /* {{{ proto double log(double number) Returns the natural logarithm of the number */ @@ -542,6 +549,8 @@ } /* }}} */ + +#ifndef PHP_WIN32 /* {{{ proto double cbrt(double number) Returns the cubic root of the number */ @@ -558,6 +567,8 @@ } /* }}} */ +#endif + /* {{{ proto double hypot(double num1, double num2) Returns sqrt( num1*num1 + num2*num2) */

« previous php.cvs (#6459) next »