Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).

This commit is contained in:
Dmitry Stogov 2015-06-30 04:05:24 +03:00
parent 8cce5b2641
commit 4a2e40bb86
169 changed files with 3285 additions and 3175 deletions

View file

@ -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;
}