Changeset 1132 in svn for trunk/processor/head.m4


Ignore:
Timestamp:
2012-08-09T03:43:48Z (3 years ago)
Author:
Xuefer
Message:

cacher: hide more detail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/head.m4

    r1051 r1132  
    9494    const xc_entry_data_php_t *php_src;
    9595    const xc_entry_data_php_t *php_dst;
    96     const xc_cache_t          *cache;
     96    xc_shm_t                  *shm;
     97    xc_mem_t                  *mem;
    9798    const zend_class_entry *cache_ce;
    9899    zend_uint cache_class_index;
     
    394395dnl ================ export API
    395396define(`DEFINE_STORE_API', `
    396 /* export: $1 *xc_processor_store_$1(xc_cache_t *cache, $1 *src TSRMLS_DC); :export {{{ */
    397 $1 *xc_processor_store_$1(xc_cache_t *cache, $1 *src TSRMLS_DC) {
     397/* export: $1 *xc_processor_store_$1(xc_shm_t *shm, xc_mem_t *mem, $1 *src TSRMLS_DC); :export {{{ */
     398$1 *xc_processor_store_$1(xc_shm_t *shm, xc_mem_t *mem, $1 *src TSRMLS_DC) {
    398399    $1 *dst;
    399400    xc_processor_t processor;
     
    401402    memset(&processor, 0, sizeof(processor));
    402403    processor.reference = 1;
    403     processor.cache = cache;
     404    processor.shm = shm;
     405    processor.mem = mem;
    404406
    405407    IFAUTOCHECK(`xc_stack_init(&processor.allocsizes);')
     
    439441
    440442        /* mem :) */
    441         processor.p = (char *) processor.cache->mem->handlers->malloc(processor.cache->mem, processor.size);
     443        processor.p = (char *) processor.mem->handlers->malloc(processor.mem, processor.size);
    442444        if (processor.p == NULL) {
    443445            dst = NULL;
Note: See TracChangeset for help on using the changeset viewer.