Ignore:
Timestamp:
2012-03-28T10:48:20+02:00 (2 years ago)
Author:
moo
Message:

remove type/cache/hvalue from cached copy to reduce memory usage a little bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/head.m4

    r851 r854  
    389389dnl ================ export API 
    390390define(`DEFINE_STORE_API', ` 
    391 /* export: $1 *xc_processor_store_$1($1 *src TSRMLS_DC); :export {{{ */ 
    392 $1 *xc_processor_store_$1($1 *src TSRMLS_DC) { 
     391/* export: $1 *xc_processor_store_$1(xc_cache_t *cache, $1 *src TSRMLS_DC); :export {{{ */ 
     392$1 *xc_processor_store_$1(xc_cache_t *cache, $1 *src TSRMLS_DC) { 
    393393    $1 *dst; 
    394394    xc_processor_t processor; 
     
    396396    memset(&processor, 0, sizeof(processor)); 
    397397    processor.reference = 1; 
    398     processor.cache = src->ifelse(`$1', `xc_entry_php_t', entry.)cache; 
     398    processor.cache = cache; 
    399399 
    400400    IFASSERT(`xc_stack_init(&processor.allocsizes);') 
     
    418418    src->ifelse(`$1', `xc_entry_php_t', entry.)size = processor.size; 
    419419    ifelse( 
    420         `$1', `xc_entry_t', `src->data.var.have_references = processor.have_references;', 
     420        `$1', `xc_entry_var_t', `src->have_references = processor.have_references;', 
    421421        `$1', `xc_entry_data_php_t', `src->have_references = processor.have_references;' 
    422422    ) 
Note: See TracChangeset for help on using the changeset viewer.