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


Ignore:
Timestamp:
2013-11-06T17:57:52+01:00 (21 months ago)
Author:
Xuefer
Message:

rename ptrmove to relocate, reduce export to only necessary onces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/struct.m4

    r1440 r1442  
    55define(`DECL_STRUCT_P_FUNC', `translit(
    66    pushdefFUNC_NAME(`$1', `$2')
    7     define(`DEFINED_'ifelse(`$2', `', `$1', `$2'), `')
    8     ifdef(`EXPORT_'ifelse(`$2', `', `$1', `$2'), `void', `static void inline')
     7    pushdef(`type', `ifelse(`$2', `', `$1', `$2')')
     8    define(`DEFINED_'type, `')
     9    ifelse(ifdef(`EXPORT_'PROCESSOR_TYPE`_'type,1)ifdef(`EXPORT_'PROCESSOR_TYPE`_',1)ifdef(`EXPORT__'type,1), `', `static void inline',
     10        `', `', `void')
     11    popdef(`type')
    912    FUNC_NAME`'(
    1013        IFDPRINT( `const $1 * const src, int indent')
     
    1215        IFSTORE(  `xc_processor_t *processor, $1 *dst, const $1 * const src')
    1316        IFRESTORE(`xc_processor_t *processor, $1 *dst, const $1 * const src')
    14         IFPTRMOVE(`const xc_ptrmove_t *ptrmove, $1 * const dst, const $1 * const src')
     17        IFPTRMOVE(`const xc_relocate_t *relocate, $1 * const dst, const $1 * const src')
    1518        IFDASM(   `xc_dasm_t *dasm, zval *dst, const $1 * const src')
    1619        TSRMLS_DC
     
    2427    pushdefFUNC_NAME(`$1', `$2')
    2528/* {`{'{ FUNC_NAME */
    26     ifdef(`EXPORT_'ifelse(`$2', `', `$1', `$2'), `
    27         /* export: DECL_STRUCT_P_FUNC(`$1', `$2') :export */
    28     ')
    29 DECL_STRUCT_P_FUNC(`$1', `$2', 1)
     29    pushdef(`type', `ifelse(`$2', `', `$1', `$2')')
     30    define(`DEFINED_'type, `')
     31    ifelse(ifdef(`EXPORT_'PROCESSOR_TYPE`_'type,1)ifdef(`EXPORT_'PROCESSOR_TYPE`_',1)ifdef(`EXPORT__'type,1), `', `',
     32        `', `', `/* export: DECL_STRUCT_P_FUNC(`$1', `$2') :export */')
     33    popdef(`type')
     34DECL_STRUCT_P_FUNC(`$1', `$2', ` ')
    3035    {
    3136        pushdef(`ELEMENTS_DONE')
     
    144149        IFRESTORE(`processor, $6 $2, $6 $3')
    145150        IFPTRMOVE(`
    146             ptrmove
     151            relocate
    147152            , ifelse(`$6', `', `DSTPTR_EX(`$1', `$2')', `$6 $2')
    148153            , ifelse(`$6', `', `SRCPTR_EX(`$1', `$3')', `$6 $3')
Note: See TracChangeset for help on using the changeset viewer.