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


Ignore:
Timestamp:
2013-09-22T16:45:46+02:00 (21 months ago)
Author:
Xuefer
Message:

make use of SRC/DST widely

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/struct.m4

    r1320 r1380  
    166166    if (SRC(`$2')) {
    167167        IFDPRINT(`INDENT()`'fprintf(stderr, "$1:$2 ");')
    168         STRUCT_P_EX(`$1', `dst->$2', `SRC(`$2')', `$2', `$3')
     168        STRUCT_P_EX(`$1', `DST(`$2')', `SRC(`$2')', `$2', `$3')
    169169    }
    170170    else {
    171171        IFDPRINT(`INDENT()`'fprintf(stderr, "$1:$2:\tNULL\n");')
    172         COPYNULL_EX(`dst->$2', `$2')
     172        COPYNULL_EX(`DST(`$2')', `$2')
    173173    }
    174174    DONE(`$2')
     
    180180    assert(sizeof($1) == sizeof(SRC(`$2')));
    181181    IFDPRINT(`INDENT()`'fprintf(stderr, "$1:$2 ");')
    182     STRUCT_P_EX(`$1', `dst->$2', `SRC(`$2')', `$2', `$3', `&')
     182    STRUCT_P_EX(`$1', `DST(`$2')', `SRC(`$2')', `$2', `$3', `&')
    183183    DONE(`$2')
    184184')
     
    219219            ',
    220220            `', `', `pushdef(`ARRAY_ELEMENT_COUNT', `SRC(`$2')')')
    221             ALLOC(`dst->$4', `$3', `ARRAY_ELEMENT_COUNT')
     221            ALLOC(`DST(`$4')', `$3', `ARRAY_ELEMENT_COUNT')
    222222            popdef(`ARRAY_ELEMENT_COUNT')
    223223
Note: See TracChangeset for help on using the changeset viewer.