Changeset 886 for branches/1.3/processor/string.m4
- Timestamp:
- 2012-04-05T15:37:21+02:00 (15 months ago)
- Location:
- branches/1.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
processor/string.m4 (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/processor/string.m4
r691 r886 21 21 STRTYPE, `zstr_char', `ZSTR_S($1)', 22 22 `', `', `$1')) 23 pushdef(` U', ifelse(24 PTRTYPE, `char', ` ',25 PTRTYPE, `UChar', ` u'))23 pushdef(`STRDUP', ifelse( 24 PTRTYPE, `char', `estrndup', 25 PTRTYPE, `UChar', `eustrndup')) 26 26 if (SRCPTR == NULL) { 27 27 IFNOTMEMCPY(`IFCOPY(` … … 62 62 IFSTORE(`DSTPTR = ifelse(PTRTYPE,`char',`ZSTR_S',`ZSTR_U')(xc_store_string_n(processor, ISTYPE, ZSTR(SRCSTR), $3 C_RELAYLINE));') 63 63 IFRESTORE(` 64 DSTPTR = e`'U`'strndup(SRCPTR, ($3) - 1);64 DSTPTR = STRDUP() (SRCPTR, ($3) - 1); 65 65 ') 66 66 FIXPOINTER_EX(`PTRTYPE', DSTPTR) … … 77 77 ') 78 78 } 79 popdef(` U')79 popdef(`STRDUP') 80 80 popdef(`DSTPTR') 81 81 popdef(`SRCPTR')
Note: See TracChangeset
for help on using the changeset viewer.

