cvs: php4 /ext/standard basic_functions.c math.c
| From: | Egon Schmid | Date: | Sat, 05 Jan 2002 07:54:49 +0000 |
| Subject: | cvs: php4 /ext/standard basic_functions.c math.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8952@lists.php.net to get a copy of this message | ||
eschmid Sat Jan 5 02:54:49 2002 EDT
Modified files:
/php4/ext/standard basic_functions.c math.c
Log:
Fixed some protos.
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.435 php4/ext/standard/basic_functions.c:1.436
--- php4/ext/standard/basic_functions.c:1.435 Fri Jan 4 22:45:10 2002
+++ php4/ext/standard/basic_functions.c Sat Jan 5 02:54:48 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.435 2002/01/05 03:45:10 jimw Exp $ */
+/* $Id: basic_functions.c,v 1.436 2002/01/05 07:54:48 eschmid Exp $ */
#include "php.h"
#include "php_main.h"
@@ -2402,7 +2402,7 @@
#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 @@
#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 @@
}
/* }}} */
-/* {{{ 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;
Index: php4/ext/standard/math.c
diff -u php4/ext/standard/math.c:1.71 php4/ext/standard/math.c:1.72
--- php4/ext/standard/math.c:1.71 Fri Jan 4 22:56:38 2002
+++ php4/ext/standard/math.c Sat Jan 5 02:54:49 2002
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: math.c,v 1.71 2002/01/05 03:56:38 jimw Exp $ */
+/* $Id: math.c,v 1.72 2002/01/05 07:54:49 eschmid Exp $ */
#include "php.h"
#include "php_math.h"
@@ -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 @@
/* {{{ 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 @@
/* }}} */
/* {{{ 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 @@
/* }}} */
/* {{{ 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 @@
}
/* }}} */
/* {{{ 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 @@
#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 @@
/* }}} */
/* {{{ 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 @@
/* }}} */
/* {{{ 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 @@
/* {{{ proto bool finite(double val)
- Returns whether double is finite. */
+ Returns whether double is finite */
PHP_FUNCTION(finite)
{
double dval;
@@ -398,7 +392,7 @@
/* }}} */
/* {{{ proto bool isinf(double val)
- Returns whether double is infinite. */
+ Returns whether double is infinite */
PHP_FUNCTION(isinf)
{
double dval;
@@ -411,7 +405,7 @@
/* }}} */
/* {{{ 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 @@
/* }}} */
/* {{{ 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 @@
#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 @@
/* }}} */
/* {{{ 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 @@
/* {{{ 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 @@
/* }}} */
/* {{{ 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)
{