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

make it build on windows vc compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/string.m4

    r1 r11  
    3636        ') 
    3737        IFCALC(`xc_calc_string_n(processor, ISTYPE, (void *) $2, `$3' IFASSERT(`, __LINE__'));') 
    38         IFSTORE(`$1 = (typeof($1)) xc_store_string_n(processor, ISTYPE, (char *) $2, `$3' IFASSERT(`, __LINE__'));') 
     38        IFSTORE(`$1 = (STRTYPE *) xc_store_string_n(processor, ISTYPE, (char *) $2, `$3' IFASSERT(`, __LINE__'));') 
    3939        IFRESTORE(` 
    40             ALLOC(`$1', `typeof($1[0])', `sizeof(STRTYPE) * ($3)') 
     40            ALLOC(`$1', `STRTYPE', `sizeof(STRTYPE) * ($3)') 
    4141            memcpy($1, $2, sizeof(STRTYPE) * ($3)); 
    4242        ') 
    43         FIXPOINTER_EX(`typeof($1[0])', `$1') 
     43        FIXPOINTER_EX(`STRTYPE', `$1') 
    4444        IFDASM(` 
    4545                ifelse(STRTYPE,UChar, ` 
Note: See TracChangeset for help on using the changeset viewer.