Changeset 886 in svn for branches/1.3/processor/string.m4


Ignore:
Timestamp:
2012-04-05T15:37:21+02:00 (3 years ago)
Author:
Xuefer
Message:

merge some changes from trunk

Location:
branches/1.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3

  • branches/1.3/processor/string.m4

    r691 r886  
    2121            STRTYPE, `zstr_char',  `ZSTR_S($1)',
    2222            `',      `',           `$1'))
    23     pushdef(`U', ifelse(
    24             PTRTYPE, `char',  `',
    25             PTRTYPE, `UChar', `u'))
     23    pushdef(`STRDUP', ifelse(
     24            PTRTYPE, `char',  `estrndup',
     25            PTRTYPE, `UChar', `eustrndup'))
    2626    if (SRCPTR == NULL) {
    2727        IFNOTMEMCPY(`IFCOPY(`
     
    6262        IFSTORE(`DSTPTR = ifelse(PTRTYPE,`char',`ZSTR_S',`ZSTR_U')(xc_store_string_n(processor, ISTYPE, ZSTR(SRCSTR), $3 C_RELAYLINE));')
    6363        IFRESTORE(`
    64             DSTPTR = e`'U`'strndup(SRCPTR, ($3) - 1);
     64            DSTPTR = STRDUP() (SRCPTR, ($3) - 1);
    6565        ')
    6666        FIXPOINTER_EX(`PTRTYPE', DSTPTR)
     
    7777        ')
    7878    }
    79     popdef(`U')
     79    popdef(`STRDUP')
    8080    popdef(`DSTPTR')
    8181    popdef(`SRCPTR')
Note: See TracChangeset for help on using the changeset viewer.