diff options
author | Egon Schmid <eschmid@php.net> | 2002-01-05 07:54:49 +0000 |
---|---|---|
committer | Egon Schmid <eschmid@php.net> | 2002-01-05 07:54:49 +0000 |
commit | 87ad1fdb3b6728c2e24bccc1d164bd74234fa927 (patch) | |
tree | 9747df1ce0ff3b67f07afb4359d573b08ea53b1c | |
parent | b9d68b8e9db10ca8776da304c33c81c26e71a511 (diff) | |
download | php-git-87ad1fdb3b6728c2e24bccc1d164bd74234fa927.tar.gz |
Fixed some protos.
-rw-r--r-- | ext/standard/basic_functions.c | 7 | ||||
-rw-r--r-- | ext/standard/math.c | 55 |
2 files changed, 29 insertions, 33 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 2b5eeb4398..5a613dc39a 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -2402,7 +2402,7 @@ PHP_FUNCTION(ignore_user_abort) #if HAVE_GETSERVBYNAME /* {{{ proto int getservbyname(string service, string protocol) - Returns port associated with service. Protocol must be "tcp" or "udp". */ + Returns port associated with service. Protocol must be "tcp" or "udp" */ PHP_FUNCTION(getservbyname) { pval **name, **proto; @@ -2427,7 +2427,7 @@ PHP_FUNCTION(getservbyname) #if HAVE_GETSERVBYPORT /* {{{ proto string getservbyport(int port, string protocol) - Returns service name associated with port. Protocol must be "tcp" or "udp". */ + Returns service name associated with port. Protocol must be "tcp" or "udp" */ PHP_FUNCTION(getservbyport) { pval **port, **proto; @@ -2759,7 +2759,8 @@ PHP_FUNCTION(parse_ini_file) } /* }}} */ -/* {{{ proto bool is_callable(mixed var [, bool syntax_only [, string callable_name]]) */ +/* {{{ proto bool is_callable(mixed var [, bool syntax_only [, string callable_name]]) + ??? */ PHP_FUNCTION(is_callable) { zval **var, **syntax_only, **callable_name; diff --git a/ext/standard/math.c b/ext/standard/math.c index 147160f662..3ef96ca9de 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -32,8 +32,8 @@ #endif /* {{{ proto int abs(int number) - Return the absolute value of the number */ + PHP_FUNCTION(abs) { zval **value; @@ -107,7 +107,7 @@ PHP_FUNCTION(floor) /* {{{ proto float round(float number [, int precision]) - Returns the number rounded to specified precision. */ + Returns the number rounded to specified precision */ PHP_FUNCTION(round) { zval **value, **precision; @@ -268,8 +268,7 @@ PHP_FUNCTION(atan2) /* }}} */ /* {{{ proto float sinh(float number) - Returns the hyperbolic sine of the number, - defined as (exp(number) - exp(-number))/2 */ + Returns the hyperbolic sine of the number, defined as (exp(number) - exp(-number))/2 */ PHP_FUNCTION(sinh) { @@ -285,8 +284,7 @@ PHP_FUNCTION(sinh) /* }}} */ /* {{{ proto float cosh(float number) - Returns the hyperbolic cosine of the number, - defined as (exp(number) + exp(-number))/2 */ + Returns the hyperbolic cosine of the number, defined as (exp(number) + exp(-number))/2 */ PHP_FUNCTION(cosh) { @@ -301,8 +299,7 @@ PHP_FUNCTION(cosh) } /* }}} */ /* {{{ proto float tanh(float number) - Returns the hyperbolic tangent of the number, - defined as sinh(number)/cosh(number) */ + Returns the hyperbolic tangent of the number, defined as sinh(number)/cosh(number) */ PHP_FUNCTION(tanh) { zval **num; @@ -319,8 +316,7 @@ PHP_FUNCTION(tanh) #ifndef PHP_WIN32 /* {{{ proto float asinh(float number) - Returns the inverse hyperbolic sine of the number, - i.e. the value whose hyperbolic sine is number */ + Returns the inverse hyperbolic sine of the number, i.e. the value whose hyperbolic sine is number */ PHP_FUNCTION(asinh) { @@ -336,8 +332,7 @@ PHP_FUNCTION(asinh) /* }}} */ /* {{{ proto float acosh(float number) - Returns the inverse hyperbolic cosine of the number, - i.e. the value whose hyperbolic cosine is number */ + Returns the inverse hyperbolic cosine of the number, i.e. the value whose hyperbolic cosine is number */ PHP_FUNCTION(acosh) { @@ -353,8 +348,7 @@ PHP_FUNCTION(acosh) /* }}} */ /* {{{ proto float atanh(float number) - Returns the inverse hyperbolic tangent of the number, - i.e. the value whose hyperbolic tangent is number */ + Returns the inverse hyperbolic tangent of the number, i.e. the value whose hyperbolic tangent is number */ PHP_FUNCTION(atanh) { @@ -384,7 +378,7 @@ PHP_FUNCTION(pi) /* {{{ proto bool finite(double val) - Returns whether double is finite. */ + Returns whether double is finite */ PHP_FUNCTION(finite) { double dval; @@ -398,7 +392,7 @@ PHP_FUNCTION(finite) /* }}} */ /* {{{ proto bool isinf(double val) - Returns whether double is infinite. */ + Returns whether double is infinite */ PHP_FUNCTION(isinf) { double dval; @@ -411,7 +405,7 @@ PHP_FUNCTION(isinf) /* }}} */ /* {{{ proto bool isnan(double val) - Returns whether double is not a number. */ + Returns whether double is not a number */ PHP_FUNCTION(isnan) { double dval; @@ -424,8 +418,7 @@ PHP_FUNCTION(isnan) /* }}} */ /* {{{ proto number pow(number base, number exponent) - Returns base raised to the power of exponent. Returns - integer result when possible. */ + Returns base raised to the power of exponent. Returns integer result when possible */ PHP_FUNCTION(pow) { zval *zbase, *zexp; @@ -483,11 +476,12 @@ PHP_FUNCTION(exp) #ifndef PHP_WIN32 /* {{{ proto float expm1(float number) - Returns exp(number) - 1, computed in a way that accurate even when - the value of number is close to zero + Returns exp(number) - 1, computed in a way that accurate even when the value of number is close to zero */ + +/* WARNING: this function is expermental: it could change its name or disappear in the next version of PHP! - */ +*/ PHP_FUNCTION(expm1) { @@ -503,11 +497,12 @@ PHP_FUNCTION(expm1) /* }}} */ /* {{{ proto float log1p(float number) - Returns log(1 + number), computed in a way that accurate even when - the value of number is close to zero + Returns log(1 + number), computed in a way that accurate even when the value of number is close to zero */ + +/* WARNING: this function is expermental: it could change its name or disappear in the next version of PHP! - */ +*/ PHP_FUNCTION(log1p) { @@ -575,10 +570,12 @@ PHP_FUNCTION(sqrt) /* {{{ proto float hypot(float num1, float num2) - Returns sqrt( num1*num1 + num2*num2) + Returns sqrt(num1*num1 + num2*num2) */ + +/* WARNING: this function is expermental: it could change its name or disappear in the next version of PHP! - */ +*/ PHP_FUNCTION(hypot) { @@ -911,9 +908,7 @@ PHP_FUNCTION(dechex) /* }}} */ /* {{{ proto string base_convert(string number, int frombase, int tobase) - - Converts a number in a string from any base <= 36 to any base <= 36. -*/ + Converts a number in a string from any base <= 36 to any base <= 36 */ PHP_FUNCTION(base_convert) { |