diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2001-09-21 21:59:27 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2001-09-21 21:59:27 +0000 |
commit | 03f7406711d3706af0f237e1ea03974616dd2139 (patch) | |
tree | ba3ca1e4e498ea528224fa9033ff966c3f8649a5 /ext/standard | |
parent | 8f01638bf6a63692e0ce4fdb637359e376e61e7a (diff) | |
download | php-git-03f7406711d3706af0f237e1ea03974616dd2139.tar.gz |
proto fixes "double" -> "float"
Diffstat (limited to 'ext/standard')
-rw-r--r-- | ext/standard/basic_functions.c | 2 | ||||
-rw-r--r-- | ext/standard/filestat.c | 4 | ||||
-rw-r--r-- | ext/standard/fsock.c | 4 | ||||
-rw-r--r-- | ext/standard/lcg.c | 2 | ||||
-rw-r--r-- | ext/standard/math.c | 54 | ||||
-rw-r--r-- | ext/standard/string.c | 2 |
6 files changed, 34 insertions, 34 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index b5e991c3f0..5713c61598 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1296,7 +1296,7 @@ PHP_FUNCTION(intval) } /* }}} */ -/* {{{ proto double floatval(mixed var) +/* {{{ proto float floatval(mixed var) Get the float value of a variable */ PHP_FUNCTION(floatval) { diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 6654641130..4f2921f755 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -125,7 +125,7 @@ PHP_RSHUTDOWN_FUNCTION(filestat) { return SUCCESS; } -/* {{{ proto double disk_total_space(string path) +/* {{{ proto float disk_total_space(string path) Get total disk space for filesystem that path is on */ PHP_FUNCTION(disk_total_space) { @@ -228,7 +228,7 @@ PHP_FUNCTION(disk_total_space) } /* }}} */ -/* {{{ proto double disk_free_space(string path) +/* {{{ proto float disk_free_space(string path) Get free disk space for filesystem that path is on */ PHP_FUNCTION(disk_free_space) { diff --git a/ext/standard/fsock.c b/ext/standard/fsock.c index d926200b10..b01c176343 100644 --- a/ext/standard/fsock.c +++ b/ext/standard/fsock.c @@ -284,14 +284,14 @@ static void php_fsockopen(INTERNAL_FUNCTION_PARAMETERS, int persistent) { } /* }}} */ -/* {{{ proto int fsockopen(string hostname, int port [, int errno [, string errstr [, double timeout]]]) +/* {{{ proto int fsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]]) Open Internet or Unix domain socket connection */ PHP_FUNCTION(fsockopen) { php_fsockopen(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0); } /* }}} */ -/* {{{ proto int pfsockopen(string hostname, int port [, int errno [, string errstr [, double timeout]]]) +/* {{{ proto int pfsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]]) Open persistent Internet or Unix domain socket connection */ PHP_FUNCTION(pfsockopen) { diff --git a/ext/standard/lcg.c b/ext/standard/lcg.c index c5f203ff42..33cd242442 100644 --- a/ext/standard/lcg.c +++ b/ext/standard/lcg.c @@ -108,7 +108,7 @@ PHP_RINIT_FUNCTION(lcg) return SUCCESS; } -/* {{{ proto double lcg_value() +/* {{{ proto float lcg_value() Returns a value from the combined linear congruential generator */ PHP_FUNCTION(lcg_value) { diff --git a/ext/standard/math.c b/ext/standard/math.c index 805a4e1e06..7d4dcc237a 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -61,7 +61,7 @@ PHP_FUNCTION(abs) } /* }}} */ -/* {{{ proto double ceil(double number) +/* {{{ proto float ceil(float number) Returns the next highest integer value of the number */ PHP_FUNCTION(ceil) { @@ -83,7 +83,7 @@ PHP_FUNCTION(ceil) } /* }}} */ -/* {{{ proto double floor(double number) +/* {{{ proto float floor(float number) Returns the next lowest integer value from the number */ PHP_FUNCTION(floor) @@ -108,7 +108,7 @@ PHP_FUNCTION(floor) /* }}} */ -/* {{{ proto double round(double number [, int precision]) +/* {{{ proto float round(float number [, int precision]) Returns the number rounded to specified precision. */ PHP_FUNCTION(round) { @@ -158,7 +158,7 @@ PHP_FUNCTION(round) } } /* }}} */ -/* {{{ proto double sin(double number) +/* {{{ proto float sin(float number) Returns the sine of the number in radians */ PHP_FUNCTION(sin) @@ -174,7 +174,7 @@ PHP_FUNCTION(sin) } /* }}} */ -/* {{{ proto double cos(double number) +/* {{{ proto float cos(float number) Returns the cosine of the number in radians */ PHP_FUNCTION(cos) @@ -189,7 +189,7 @@ PHP_FUNCTION(cos) Z_TYPE_P(return_value) = IS_DOUBLE; } /* }}} */ -/* {{{ proto double tan(double number) +/* {{{ proto float tan(float number) Returns the tangent of the number in radians */ PHP_FUNCTION(tan) { @@ -204,7 +204,7 @@ PHP_FUNCTION(tan) } /* }}} */ -/* {{{ proto double asin(double number) +/* {{{ proto float asin(float number) Returns the arc sine of the number in radians */ PHP_FUNCTION(asin) @@ -220,7 +220,7 @@ PHP_FUNCTION(asin) } /* }}} */ -/* {{{ proto double acos(double number) +/* {{{ proto float acos(float number) Return the arc cosine of the number in radians */ PHP_FUNCTION(acos) @@ -236,7 +236,7 @@ PHP_FUNCTION(acos) } /* }}} */ -/* {{{ proto double atan(double number) +/* {{{ proto float atan(float number) Returns the arc tangent of the number in radians */ PHP_FUNCTION(atan) @@ -252,7 +252,7 @@ PHP_FUNCTION(atan) } /* }}} */ -/* {{{ proto double atan2(double y, double x) +/* {{{ proto float atan2(float y, float x) Returns the arc tangent of y/x, with the resulting quadrant determined by the signs of y and x */ PHP_FUNCTION(atan2) @@ -269,7 +269,7 @@ PHP_FUNCTION(atan2) } /* }}} */ -/* {{{ proto double sinh(double number) +/* {{{ proto float sinh(float number) Returns the hyperbolic sine of the number, defined as (exp(number) - exp(-number))/2 */ @@ -286,7 +286,7 @@ PHP_FUNCTION(sinh) } /* }}} */ -/* {{{ proto double cosh(double number) +/* {{{ proto float cosh(float number) Returns the hyperbolic cosine of the number, defined as (exp(number) + exp(-number))/2 */ @@ -302,7 +302,7 @@ PHP_FUNCTION(cosh) Z_TYPE_P(return_value) = IS_DOUBLE; } /* }}} */ -/* {{{ proto double tanh(double number) +/* {{{ proto float tanh(float number) Returns the hyperbolic tangent of the number, defined as sinh(number)/cosh(number) */ PHP_FUNCTION(tanh) @@ -320,7 +320,7 @@ PHP_FUNCTION(tanh) /* }}} */ #ifndef PHP_WIN32 -/* {{{ proto double asinh(double number) +/* {{{ proto float asinh(float number) Returns the inverse hyperbolic sine of the number, i.e. the value whose hyperbolic sine is number */ @@ -337,7 +337,7 @@ PHP_FUNCTION(asinh) } /* }}} */ -/* {{{ proto double acosh(double number) +/* {{{ proto float acosh(float number) Returns the inverse hyperbolic cosine of the number, i.e. the value whose hyperbolic cosine is number */ @@ -354,7 +354,7 @@ PHP_FUNCTION(acosh) } /* }}} */ -/* {{{ proto double atanh(double number) +/* {{{ proto float atanh(float number) Returns the inverse hyperbolic tangent of the number, i.e. the value whose hyperbolic tangent is number */ @@ -373,7 +373,7 @@ PHP_FUNCTION(atanh) /* }}} */ #endif -/* {{{ proto double pi(void) +/* {{{ proto float pi(void) Returns an approximation of pi */ PHP_FUNCTION(pi) @@ -495,7 +495,7 @@ PHP_FUNCTION(pow) } /* }}} */ -/* {{{ proto double exp(double number) +/* {{{ proto float exp(float number) Returns e raised to the power of the number */ PHP_FUNCTION(exp) @@ -514,7 +514,7 @@ PHP_FUNCTION(exp) #ifndef PHP_WIN32 -/* {{{ proto double expm1(double number) +/* {{{ 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 WARNING: this function is expermental: it could change its name or @@ -534,7 +534,7 @@ PHP_FUNCTION(expm1) } /* }}} */ -/* {{{ proto double log1p(double number) +/* {{{ 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 WARNING: this function is expermental: it could change its name or @@ -556,7 +556,7 @@ PHP_FUNCTION(log1p) /* }}} */ #endif -/* {{{ proto double log(double number) +/* {{{ proto float log(float number) Returns the natural logarithm of the number */ PHP_FUNCTION(log) @@ -572,7 +572,7 @@ PHP_FUNCTION(log) } /* }}} */ -/* {{{ proto double log10(double number) +/* {{{ proto float log10(float number) Returns the base-10 logarithm of the number */ PHP_FUNCTION(log10) @@ -588,7 +588,7 @@ PHP_FUNCTION(log10) } /* }}} */ -/* {{{ proto double sqrt(double number) +/* {{{ proto float sqrt(float number) Returns the square root of the number */ PHP_FUNCTION(sqrt) @@ -606,7 +606,7 @@ PHP_FUNCTION(sqrt) /* }}} */ -/* {{{ proto double hypot(double num1, double num2) +/* {{{ proto float hypot(float num1, float 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! @@ -627,7 +627,7 @@ PHP_FUNCTION(hypot) /* }}} */ -/* {{{ proto double deg2rad(double number) +/* {{{ proto float deg2rad(float number) Converts the number in degrees to the radian equivalent */ PHP_FUNCTION(deg2rad) @@ -642,7 +642,7 @@ PHP_FUNCTION(deg2rad) } /* }}} */ -/* {{{ proto double rad2deg(double number) +/* {{{ proto float rad2deg(float number) Converts the radian number to the equivalent number in degrees */ PHP_FUNCTION(rad2deg) @@ -1034,7 +1034,7 @@ char *_php_math_number_format(double d, int dec, char dec_point, char thousand_s } /* }}} */ -/* {{{ proto string number_format(double number [, int num_decimal_places [, string dec_seperator, string thousands_seperator]]) +/* {{{ proto string number_format(float number [, int num_decimal_places [, string dec_seperator, string thousands_seperator]]) Formats a number with grouped thousands */ PHP_FUNCTION(number_format) diff --git a/ext/standard/string.c b/ext/standard/string.c index 1900ac3d44..a85926674e 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2108,7 +2108,7 @@ static int php_similar_char(const char *txt1, int len1, } /* }}} */ -/* {{{ proto int similar_text(string str1, string str2 [, double percent]) +/* {{{ proto int similar_text(string str1, string str2 [, float percent]) Calculates the similarity between two strings */ PHP_FUNCTION(similar_text) { |