Skip to content

Commit ecb48ea

Browse files
committed
Consistent naming
1 parent d9b2e1e commit ecb48ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Zend/zend_smart_str.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
smart_str_appendl_ex((dest), (src), strlen(src), (what))
2626
#define smart_str_appends(dest, src) \
2727
smart_str_appendl((dest), (src), strlen(src))
28+
#define smart_str_trim_to_len(dest) \
29+
smart_str_trim_to_len_ex((dest), 0)
2830
#define smart_str_finalize(dest) \
2931
smart_str_finalize_ex((dest), 0)
3032
#define smart_str_extend(dest, len) \
@@ -78,7 +80,7 @@ static zend_always_inline size_t smart_str_alloc(smart_str *str, size_t len, boo
7880
return len;
7981
}
8082

81-
static zend_always_inline void smart_str_trim_to_len(smart_str *str, bool persistent)
83+
static zend_always_inline void smart_str_trim_to_len_ex(smart_str *str, bool persistent)
8284
{
8385
if (str->s && str->a > ZSTR_LEN(str->s)) {
8486
str->s = zend_string_realloc(str->s, ZSTR_LEN(str->s), persistent);
@@ -92,7 +94,7 @@ static zend_always_inline zend_string* smart_str_finalize_ex(smart_str *str, boo
9294
return ZSTR_EMPTY_ALLOC();
9395
}
9496

95-
smart_str_trim_to_len(str, persistent);
97+
smart_str_trim_to_len_ex(str, persistent);
9698
zend_string *retval = str->s;
9799

98100
str->s = NULL;

0 commit comments

Comments
 (0)