Changeset 860 for trunk/processor/string.m4
- Timestamp:
- 03/29/2012 04:54:33 AM (14 months ago)
- Files:
-
- 1 modified
-
trunk/processor/string.m4 (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/processor/string.m4
r844 r860 60 60 ') 61 61 IFCALC(`xc_calc_string_n(processor, ISTYPE, SRCSTR, $3 C_RELAYLINE);') 62 IFSTORE(`DSTPTR = if else(PTRTYPE,`char',`ZSTR_S',`ZSTR_U')(xc_store_string_n(processor, ISTYPE, SRCSTR, $3 C_RELAYLINE));')62 IFSTORE(`DSTPTR = ifdef(`REALPTRTYPE', `(REALPTRTYPE() *)') ifelse(PTRTYPE,`char',`ZSTR_S',`ZSTR_U')(xc_store_string_n(processor, ISTYPE, SRCSTR, $3 C_RELAYLINE));') 63 63 IFRESTORE(` 64 DSTPTR = STRDUP() (SRCPTR, ($3) - 1);64 DSTPTR = ifdef(`REALPTRTYPE', `(REALPTRTYPE() *)') STRDUP() (SRCPTR, ($3) - 1); 65 65 ') 66 FIXPOINTER_EX( `PTRTYPE', DSTPTR)66 FIXPOINTER_EX(ifdef(`REALPTRTYPE', `REALPTRTYPE()', `PTRTYPE'), DSTPTR) 67 67 IFDASM(` 68 68 ifelse(STRTYPE,zstr_uchar, ` … … 70 70 ', ` dnl else 71 71 ifelse(STRTYPE,zstr_char, ` 72 add_assoc_stringl_ex(dst, ZEND_STRS("$4"), ZSTR_S($2), $3-1, 1);72 add_assoc_stringl_ex(dst, ZEND_STRS("$4"), (char *) ZSTR_S($2), $3-1, 1); 73 73 ', ` 74 add_assoc_stringl_ex(dst, ZEND_STRS("$4"), $2, $3-1, 1);74 add_assoc_stringl_ex(dst, ZEND_STRS("$4"), (char *) $2, $3-1, 1); 75 75 ') 76 76 ')

