Fixed some spaces used instead of tabs

This commit is contained in:
Patrick Allaert 2021-06-29 10:04:10 +02:00 committed by Patrick Allaert
parent a233bfc766
commit aff365871a
157 changed files with 1011 additions and 1014 deletions

View File

@ -3156,7 +3156,8 @@ ZEND_API zend_string* ZEND_FASTCALL zend_i64_to_str(int64_t num)
}
}
ZEND_API zend_uchar ZEND_FASTCALL is_numeric_str_function(const zend_string *str, zend_long *lval, double *dval) /* {{{ */ {
ZEND_API zend_uchar ZEND_FASTCALL is_numeric_str_function(const zend_string *str, zend_long *lval, double *dval) /* {{{ */
{
return is_numeric_string(ZSTR_VAL(str), ZSTR_LEN(str), lval, dval, false);
}
/* }}} */

View File

@ -365,8 +365,7 @@ static inline bool php_converter_set_callbacks(php_converter_object *objval, UCo
/* {{{ php_converter_set_encoding */
static bool php_converter_set_encoding(php_converter_object *objval,
UConverter **pcnv,
const char *enc, size_t enc_len
) {
const char *enc, size_t enc_len) {
UErrorCode error = U_ZERO_ERROR;
UConverter *cnv = ucnv_open(enc, &error);

View File

@ -317,8 +317,7 @@ int32_t grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset)
/* }}} */
/* {{{ grapheme_strrpos_ascii: borrowed from the php ext/standard/string.c */
zend_long
grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset)
zend_long grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset)
{
char *p, *e;

View File

@ -659,8 +659,7 @@ PHP_FUNCTION( locale_get_keywords )
/* Get the keywords */
e = uloc_openKeywords( loc_name, &status );
if( e != NULL )
{
if( e != NULL ) {
/*
ICU expects the buffer to be allocated before calling the function
and so the buffer size has been explicitly specified

View File

@ -752,7 +752,7 @@ int php_oci_lob_import (php_oci_descriptor *descriptor, char *filename)
return 0;
}
/* }}} */
/* }}} */
/* {{{ php_oci_lob_append()
Append data to the end of the LOB */

View File

@ -1944,7 +1944,6 @@ int check_persistent_script_access(zend_persistent_script *persistent_script)
}
}
/* zend_compile() replacement */
zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)
{

View File

@ -5815,7 +5815,7 @@ PHP_PGSQL_API void php_pgsql_result2array(PGresult *pg_result, zval *ret_array,
/* }}} */
/* {{{ php_pgsql_select */
PHP_PGSQL_API zend_result php_pgsql_select(PGconn *pg_link, const zend_string *table, zval *ids_array, zval *ret_array, zend_ulong opt, long result_type, zend_string **sql)
PHP_PGSQL_API zend_result php_pgsql_select(PGconn *pg_link, const zend_string *table, zval *ids_array, zval *ret_array, zend_ulong opt, long result_type, zend_string **sql)
{
zval ids_converted;
smart_str querystr = {0};

View File

@ -2585,7 +2585,7 @@ PHP_FUNCTION(socket_addrinfo_explain)
#ifdef PHP_WIN32
/* {{{ Exports the network socket information suitable to be used in another process and returns the info id. */
/* {{{ Exports the network socket information suitable to be used in another process and returns the info id. */
PHP_FUNCTION(socket_wsaprotocol_info_export)
{
WSAPROTOCOL_INFO wi;

View File

@ -1155,7 +1155,7 @@ PHP_METHOD(ArrayObject, __construct)
spl_array_set_array(object, intern, array, ar_flags, ZEND_NUM_ARGS() == 1);
}
/* }}} */
/* }}} */
/* {{{ Constructs a new array iterator from an array or object. */
PHP_METHOD(ArrayIterator, __construct)
@ -1179,7 +1179,7 @@ PHP_METHOD(ArrayIterator, __construct)
spl_array_set_array(object, intern, array, ar_flags, ZEND_NUM_ARGS() == 1);
}
/* }}} */
/* }}} */
/* {{{ Set the class used in getIterator. */
PHP_METHOD(ArrayObject, setIteratorClass)

View File

@ -352,7 +352,7 @@ static inline unsigned int get_next_char(
/* {{{ php_next_utf8_char
* Public interface for get_next_char used with UTF-8 */
PHPAPI unsigned int php_next_utf8_char(
PHPAPI unsigned int php_next_utf8_char(
const unsigned char *str,
size_t str_len,
size_t *cursor,