cvs: php4 /ext/standard basic_functions.c basic_functions.h
| From: | Hartmut Holzgraefe | Date: | Fri, 21 Sep 2001 21:29:14 +0000 |
| Subject: | cvs: php4 /ext/standard basic_functions.c basic_functions.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7503@lists.php.net to get a copy of this message | ||
hholzgra Fri Sep 21 17:29:14 2001 EDT
Modified files:
/php4/ext/standard basic_functions.c basic_functions.h
Log:
renamed doubleval to floatval and made doubleval an alias to floatval
made is_float the function entry and is_double the alias
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.397 php4/ext/standard/basic_functions.c:1.398
--- php4/ext/standard/basic_functions.c:1.397 Fri Sep 21 09:38:44 2001
+++ php4/ext/standard/basic_functions.c Fri Sep 21 17:29:14 2001
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.397 2001/09/21 13:38:44 sas Exp $ */
+/* $Id: basic_functions.c,v 1.398 2001/09/21 21:29:14 hholzgra Exp $ */
#include "php.h"
#include "php_main.h"
@@ -249,7 +249,8 @@
function_entry basic_functions[] = {
PHP_FE(constant, NULL)
PHP_FE(intval, NULL)
- PHP_FE(doubleval, NULL)
+ PHP_FE(floatval, NULL)
+ PHP_FALIAS(doubleval, floatval, NULL)
PHP_FE(strval, NULL)
PHP_FE(bin2hex, NULL)
PHP_FE(sleep, NULL)
@@ -510,11 +511,11 @@
PHP_FE(is_resource, NULL)
PHP_FE(is_bool, NULL)
PHP_FE(is_long, NULL)
- PHP_FE(is_double, NULL)
+ PHP_FE(is_float, NULL)
PHP_FALIAS(is_int, is_long, NULL)
PHP_FALIAS(is_integer, is_long, NULL)
- PHP_FALIAS(is_float, is_double, NULL)
- PHP_FALIAS(is_real, is_double, NULL)
+ PHP_FALIAS(is_double, is_float, NULL)
+ PHP_FALIAS(is_real, is_float, NULL)
PHP_FE(is_numeric, NULL)
PHP_FE(is_string, NULL)
PHP_FE(is_array, NULL)
@@ -1295,9 +1296,9 @@
}
/* }}} */
-/* {{{ proto double doubleval(mixed var)
- Get the double-precision value of a variable */
-PHP_FUNCTION(doubleval)
+/* {{{ proto double floatval(mixed var)
+ Get the float value of a variable */
+PHP_FUNCTION(floatval)
{
pval **num;
@@ -1577,9 +1578,9 @@
}
/* }}} */
-/* {{{ proto bool is_double(mixed var)
- Returns true if variable is a double */
-PHP_FUNCTION(is_double)
+/* {{{ proto bool is_float(mixed var)
+ Returns true if variable is float point*/
+PHP_FUNCTION(is_float)
{
php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_DOUBLE);
}
Index: php4/ext/standard/basic_functions.h
diff -u php4/ext/standard/basic_functions.h:1.94 php4/ext/standard/basic_functions.h:1.95
--- php4/ext/standard/basic_functions.h:1.94 Sun Sep 16 16:49:57 2001
+++ php4/ext/standard/basic_functions.h Fri Sep 21 17:29:14 2001
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.h,v 1.94 2001/09/16 20:49:57 sterling Exp $ */
+/* $Id: basic_functions.h,v 1.95 2001/09/21 21:29:14 hholzgra Exp $ */
#ifndef BASIC_FUNCTIONS_H
#define BASIC_FUNCTIONS_H
@@ -40,7 +40,7 @@
PHP_FUNCTION(constant);
PHP_FUNCTION(intval);
-PHP_FUNCTION(doubleval);
+PHP_FUNCTION(floatval);
PHP_FUNCTION(strval);
PHP_FUNCTION(toggle_short_open_tag);
PHP_FUNCTION(sleep);
@@ -68,7 +68,7 @@
PHP_FUNCTION(is_resource);
PHP_FUNCTION(is_bool);
PHP_FUNCTION(is_long);
-PHP_FUNCTION(is_double);
+PHP_FUNCTION(is_float);
PHP_FUNCTION(is_numeric);
PHP_FUNCTION(is_string);
PHP_FUNCTION(is_array);