Changeset 1446 in svn for trunk/processor/struct.m4


Ignore:
Timestamp:
2013-11-07T08:44:15Z (22 months ago)
Author:
Xuefer
Message:

update relocate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/struct.m4

    r1444 r1446  
    1515        IFSTORE(  `xc_processor_t *processor, $1 *dst, const $1 * const src')
    1616        IFRESTORE(`xc_processor_t *processor, $1 *dst, const $1 * const src')
    17         IFRELOCATE(`const xc_relocate_t *relocate, $1 *const src')
     17        IFRELOCATE(`$1 *const src, ptrdiff_t ptrdiff, ptrdiff_t relocatediff')
    1818        IFDASM(`xc_dasm_t *dasm, zval *dst, const $1 * const src')
    1919        TSRMLS_DC
     
    149149        IFRESTORE(`processor, $6 $2, $6 $3')
    150150        IFRELOCATE(`
    151             relocate
    152             , ifelse(`$6', `', `SRCPTR_EX(`$1', `$3')', `$6 $3')
     151            ifelse(`$6', `', `SRCPTR_EX(`$1', `$3')', `$6 $3')
     152            , ptrdiff
     153            , relocatediff
    153154        ')
    154155        IFDASM(`dasm, ifdef(`DASM_STRUCT_DIRECT', `dst', `zv'), $6 $3')
Note: See TracChangeset for help on using the changeset viewer.