mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).
This commit is contained in:
parent
8cce5b2641
commit
4a2e40bb86
169 changed files with 3285 additions and 3175 deletions
|
@ -58,7 +58,7 @@ zend_string
|
|||
if (str == NULL) bc_out_of_memory();
|
||||
|
||||
/* The negative sign if needed. */
|
||||
sptr = str->val;
|
||||
sptr = ZSTR_VAL(str);
|
||||
if (signch) *sptr++ = '-';
|
||||
|
||||
/* Load the whole number. */
|
||||
|
@ -76,6 +76,6 @@ zend_string
|
|||
|
||||
/* Terminate the string and return it! */
|
||||
*sptr = '\0';
|
||||
str->len = sptr - (char *)str->val;
|
||||
ZSTR_LEN(str) = sptr - (char *)ZSTR_VAL(str);
|
||||
return str;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue