From df74f1dfabafb515bdf8ffee5f989761c0d6604d Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Tue, 13 Jun 2000 17:58:33 +0000 Subject: Add optional support for C0x inline semantics. These are enabled by specifying `--enable-c0x-inline' on the command line. We might add an autoconf check for this particular feature later. --- Zend/zend_operators.c | 60 +-------------------------------------------------- 1 file changed, 1 insertion(+), 59 deletions(-) (limited to 'Zend/zend_operators.c') diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index cfa40d50bc..b21496305a 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -1589,65 +1589,7 @@ ZEND_API void zend_compare_objects(zval *result, zval *o1, zval *o2) * returns FLAG_IS_BC if the number might lose accuracy when converted to a double */ -#if 1 -ZEND_API inline int is_numeric_string(char *str, int length, long *lval, double *dval) -{ - long local_lval; - double local_dval; - char *end_ptr; - - if (!length) { - return 0; - } - - errno=0; - local_lval = strtol(str, &end_ptr, 10); - if (errno!=ERANGE && end_ptr == str+length) { /* integer string */ - if (lval) { - *lval = local_lval; - } - return IS_LONG; - } - - errno=0; - local_dval = strtod(str, &end_ptr); - if (errno!=ERANGE && end_ptr == str+length) { /* floating point string */ - if (! finite(local_dval)) { - /* "inf","nan" and maybe other weird ones */ - return 0; - } - - if (dval) { - *dval = local_dval; - } -#if WITH_BCMATH - if (length>16) { - register char *ptr=str, *end=str+length; - - while(ptr