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


Ignore:
Timestamp:
2006-05-24T09:52:48+02:00 (9 years ago)
Author:
Xuefer
Message:

make it build on windows vc compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/struct.m4

    r4 r11  
    3939            IFRESTORE(`assert(xc_is_shm(src));')
    4040            IFCALCSTORE(`assert(!xc_is_shm(src));')
     41            do {
    4142        ')
    4243
    4344        ifdef(`USEMEMCPY', `IFCOPY(`
    4445            memcpy(dst, src, sizeof($1));
     46            do {
    4547        ')')
    4648
     
    8486                /* }}} */
    8587        ')')
     88        ifdef(`USEMEMCPY', `IFCOPY(`
     89            } while (0);
     90        ')')
    8691        IFASSERT(`
     92            } while (0);
    8793            undefine(`ELEMENTS_DONE')
    8894        ')
     
    144150')
    145151dnl }}}
     152dnl {{{ STRUCT_ARRAY_I(1:count, 2:type, 3:elm, 4:name=type)
     153define(`STRUCT_ARRAY_I', `
     154pushdef(`i', `ii')
     155STRUCT_ARRAY(`$1', `$2', `$3', `$4')
     156popdef(`i')
     157')
     158dnl }}}
    146159dnl {{{ STRUCT_ARRAY(1:count, 2:type, 3:elm, 4:name=type)
    147160define(`STRUCT_ARRAY', `
Note: See TracChangeset for help on using the changeset viewer.