Changeset 1132 in svn for trunk/processor


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

cacher: hide more detail

Location:
trunk/processor
Files:
2 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;
  • trunk/processor/main.m4

    r877 r1132  
    126126define(`FIXPOINTER', `FIXPOINTER_EX(`$1', `dst->$2')')
    127127define(`FIXPOINTER_EX', `IFSTORE(`
    128     $2 = ($1 *) processor->cache->shm->handlers->to_readonly(processor->cache->shm, (char *)$2);
     128    $2 = ($1 *) processor->shm->handlers->to_readonly(processor->shm, (char *)$2);
    129129')')
    130130define(`UNFIXPOINTER', `UNFIXPOINTER_EX(`$1', `dst->$2')')
    131131define(`UNFIXPOINTER_EX', `IFSTORE(`
    132     $2 = ($1 *) processor->cache->shm->handlers->to_readwrite(processor->cache->shm, (char *)$2);
     132    $2 = ($1 *) processor->shm->handlers->to_readwrite(processor->shm, (char *)$2);
    133133')')
    134134dnl }}}
Note: See TracChangeset for help on using the changeset viewer.