Skip to content

Commit 95f397c

Browse files
committed
Convert macros to inline function in Zend Operators
1 parent 61e1eda commit 95f397c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Zend/zend_operators.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,9 @@ ZEND_API char* ZEND_FASTCALL zend_str_tolower_dup(const char *source, siz
420420
ZEND_API char* ZEND_FASTCALL zend_str_tolower_dup_ex(const char *source, size_t length);
421421
ZEND_API zend_string* ZEND_FASTCALL zend_string_tolower_ex(zend_string *str, bool persistent);
422422

423-
#define zend_string_tolower(str) zend_string_tolower_ex(str, 0)
423+
static inline zend_string* zend_string_tolower(zend_string *str) {
424+
return zend_string_tolower_ex(str, 0);
425+
}
424426

425427
ZEND_API int ZEND_FASTCALL zend_binary_zval_strcmp(zval *s1, zval *s2);
426428
ZEND_API int ZEND_FASTCALL zend_binary_zval_strncmp(zval *s1, zval *s2, zval *s3);

0 commit comments

Comments
 (0)