Skip to content

Commit d6960a6

Browse files
committed
Convert macros to inline function in Zend Operators
1 parent dd41f9d commit d6960a6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Zend/zend_operators.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,12 @@ ZEND_API char* ZEND_FASTCALL zend_str_toupper_dup_ex(const char *source,
450450
ZEND_API zend_string* ZEND_FASTCALL zend_string_tolower_ex(zend_string *str, bool persistent);
451451
ZEND_API zend_string* ZEND_FASTCALL zend_string_toupper_ex(zend_string *str, bool persistent);
452452

453-
#define zend_string_tolower(str) zend_string_tolower_ex(str, 0)
454-
#define zend_string_toupper(str) zend_string_toupper_ex(str, 0)
453+
static inline zend_string* zend_string_tolower(zend_string *str) {
454+
return zend_string_tolower_ex(str, false);
455+
}
456+
static inline zend_string* zend_string_toupper(zend_string *str) {
457+
return zend_string_toupper_ex(str, false);
458+
}
455459

456460
ZEND_API int ZEND_FASTCALL zend_binary_zval_strcmp(zval *s1, zval *s2);
457461
ZEND_API int ZEND_FASTCALL zend_binary_zval_strncmp(zval *s1, zval *s2, zval *s3);

0 commit comments

Comments
 (0)