1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00

Added folder mark and codes style

This commit is contained in:
Xinchen Hui
2014-05-24 21:19:34 +08:00
parent 9eb89dddb1
commit 60e01e5d64
2 changed files with 20 additions and 20 deletions
+4 -4
View File
@@ -1078,7 +1078,7 @@ ZEND_API int mul_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) /* {{{ *
}
/* }}} */
ZEND_API int pow_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
ZEND_API int pow_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) /* {{{ */
{
zval op1_copy, op2_copy;
int converted = 0;
@@ -1160,6 +1160,7 @@ ZEND_API int pow_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
}
}
}
/* }}} */
ZEND_API int div_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) /* {{{ */
{
@@ -2507,12 +2508,11 @@ ZEND_API zend_string *zend_long_to_str(long num) /* {{{ */
{
char buf[MAX_LENGTH_OF_LONG + 1];
char *res;
_zend_print_signed_to_buf(buf + sizeof(buf)-1, num, unsigned long, res);
return STR_INIT(res, buf + sizeof(buf)-1 - res, 0);
_zend_print_signed_to_buf(buf + sizeof(buf) - 1, num, unsigned long, res);
return STR_INIT(res, buf + sizeof(buf) - 1 - res, 0);
}
/* }}} */
/*
* Local variables:
* tab-width: 4
+16 -16
View File
@@ -965,25 +965,25 @@ static zend_always_inline void fast_is_not_identical_function(zval *result, zval
}
/* input: buf points to the END of the buffer */
#define _zend_print_unsigned_to_buf(buf, num, vartype, result) do { \
char *__p = (buf); \
vartype __num = (num); \
*__p = '\0'; \
do { \
*--__p = (char) (__num % 10) + '0'; \
__num /= 10; \
} while (__num > 0); \
result = __p; \
#define _zend_print_unsigned_to_buf(buf, num, vartype, result) do { \
char *__p = (buf); \
vartype __num = (num); \
*__p = '\0'; \
do { \
*--__p = (char) (__num % 10) + '0'; \
__num /= 10; \
} while (__num > 0); \
result = __p; \
} while (0)
/* buf points to the END of the buffer */
#define _zend_print_signed_to_buf(buf, num, vartype, result) do { \
if (num < 0) { \
_zend_print_unsigned_to_buf((buf), -(vartype)(num), vartype, (result)); \
*--(result) = '-'; \
} else { \
_zend_print_unsigned_to_buf((buf), (num), vartype, (result)); \
} \
#define _zend_print_signed_to_buf(buf, num, vartype, result) do { \
if (num < 0) { \
_zend_print_unsigned_to_buf((buf), -(vartype)(num), vartype, (result)); \
*--(result) = '-'; \
} else { \
_zend_print_unsigned_to_buf((buf), (num), vartype, (result)); \
} \
} while (0)
ZEND_API zend_string *zend_long_to_str(long num);