Ignore:
Timestamp:
2009-08-03T10:15:53+02:00 (5 years ago)
Author:
moo
Message:

back patch __FILE and __DIR on cache restore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/main.m4

    r569 r662  
    150150define(`COPY', `IFNOTMEMCPY(`IFCOPY(`dst->$1 = src->$1;')')DONE(`$1')') 
    151151dnl }}} 
     152dnl {{{ COPY_N_EX 
     153define(`COPY_N_EX', ` 
     154    ALLOC(`dst->$3', `$2', `src->$1') 
     155    IFCOPY(` 
     156        memcpy(dst->$3, src->$3, sizeof(dst->$3[0]) * src->$1); 
     157        ') 
     158') 
     159dnl }}} 
     160dnl {{{ COPY_N 
     161define(`COPY_N', `COPY_N_EX(`$1',`$2')DONE(`$1')') 
     162dnl }}} 
    152163dnl {{{ COPYPOINTER 
    153164define(`COPYPOINTER', `COPY(`$1')') 
    154165dnl }}} 
     166dnl {{{ COPYARRAY_EX 
     167define(`COPYARRAY_EX', `IFNOTMEMCPY(`IFCOPY(`memcpy(dst->$1, src->$1, sizeof(dst->$1));')')') 
     168dnl }}} 
    155169dnl {{{ COPYARRAY 
    156 define(`COPYARRAY', `IFNOTMEMCPY(`IFCOPY(`memcpy(dst->$1, src->$1, sizeof(dst->$1));')')DONE(`$1')') 
     170define(`COPYARRAY', `COPYARRAY_EX(`$1',`$2')DONE(`$1')') 
    157171dnl }}} 
    158172dnl {{{ SETNULL_EX 
     
    244258define(`IFNOTMEMCPY', `ifdef(`USEMEMCPY', `', `$1')') 
    245259REDEF(`KIND', `calc') include(srcdir`/processor/processor.m4') 
     260pushdef(`xc_get_class_num', ``xc_get_class_num'($@)') 
    246261REDEF(`KIND', `store') include(srcdir`/processor/processor.m4') 
     262popdef(`xc_get_class_num') 
     263pushdef(`xc_get_class', ``xc_get_class'($@)') 
    247264REDEF(`KIND', `restore') include(srcdir`/processor/processor.m4') 
     265popdef(`xc_get_class') 
    248266 
    249267REDEF(`IFNOTMEMCPY', `$1') 
Note: See TracChangeset for help on using the changeset viewer.