Changeset 1135 for trunk/processor/head.m4
- Timestamp:
- 08/09/2012 11:04:02 AM (10 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
. (modified) (1 prop)
-
processor/head.m4 (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
trunk/processor/head.m4
r1132 r1135 14 14 /* export: #include "mod_cacher/xc_cache.h" :export */ 15 15 #include "mod_cacher/xc_cache.h" 16 #include "util/xc_align.h" 16 /* export: #include "xcache/xc_shm.h" :export */ 17 #include "xcache/xc_shm.h" 18 /* export: #include "xcache/xc_allocator.h" :export */ 19 #include "xcache/xc_allocator.h" 17 20 #include "xcache/xc_const_string.h" 18 21 #include "xcache/xc_utils.h" 22 #include "util/xc_align.h" 19 23 #include "xc_processor.h" 20 24 #include "xcache_globals.h" … … 95 99 const xc_entry_data_php_t *php_dst; 96 100 xc_shm_t *shm; 97 xc_ mem_t *mem;101 xc_allocator_t *allocator; 98 102 const zend_class_entry *cache_ce; 99 103 zend_uint cache_class_index; … … 395 399 dnl ================ export API 396 400 define(`DEFINE_STORE_API', ` 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) {401 /* export: $1 *xc_processor_store_$1(xc_shm_t *shm, xc_allocator_t *allocator, $1 *src TSRMLS_DC); :export {{{ */ 402 $1 *xc_processor_store_$1(xc_shm_t *shm, xc_allocator_t *allocator, $1 *src TSRMLS_DC) { 399 403 $1 *dst; 400 404 xc_processor_t processor; … … 403 407 processor.reference = 1; 404 408 processor.shm = shm; 405 processor. mem = mem;409 processor.allocator = allocator; 406 410 407 411 IFAUTOCHECK(`xc_stack_init(&processor.allocsizes);') … … 440 444 } 441 445 442 /* mem:) */443 processor.p = (char *) processor. mem->handlers->malloc(processor.mem, processor.size);446 /* allocator :) */ 447 processor.p = (char *) processor.allocator->vtable->malloc(processor.allocator, processor.size); 444 448 if (processor.p == NULL) { 445 449 dst = NULL;

