Changeset 856
- Timestamp:
- 2012-03-28T11:30:46+02:00 (15 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
processor/head.m4 (modified) (4 diffs)
-
processor/main.m4 (modified) (1 diff)
-
processor/processor.m4 (modified) (1 diff)
-
xcache.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/processor/head.m4
r854 r856 416 416 zend_hash_destroy(&processor.strings); 417 417 } 418 src->ifelse(`$1', `xc_entry_php_t', entry.)size = processor.size; 418 src->ifelse( 419 `$1', `xc_entry_data_php_t', `', 420 `', `', entry.)size = processor.size; 419 421 ifelse( 420 422 `$1', `xc_entry_var_t', `src->have_references = processor.have_references;', … … 467 469 /* }}} */ 468 470 ') 469 DEFINE_STORE_API(`xc_entry_ t')471 DEFINE_STORE_API(`xc_entry_var_t') 470 472 DEFINE_STORE_API(`xc_entry_php_t') 471 473 DEFINE_STORE_API(`xc_entry_data_php_t') … … 502 504 } 503 505 /* }}} */ 504 /* export: xc_entry_ t *xc_processor_restore_xc_entry_t(xc_entry_t *dst, const xc_entry_t *src TSRMLS_DC); :export {{{ */505 xc_entry_ t *xc_processor_restore_xc_entry_t(xc_entry_t *dst, const xc_entry_t *src TSRMLS_DC) {506 /* export: xc_entry_var_t *xc_processor_restore_xc_entry_var_t(xc_entry_var_t *dst, const xc_entry_var_t *src TSRMLS_DC); :export {{{ */ 507 xc_entry_var_t *xc_processor_restore_xc_entry_var_t(xc_entry_var_t *dst, const xc_entry_var_t *src TSRMLS_DC) { 506 508 xc_processor_t processor; 507 509 508 510 memset(&processor, 0, sizeof(processor)); 509 xc_restore_xc_entry_ t(&processor, dst, src TSRMLS_CC);511 xc_restore_xc_entry_var_t(&processor, dst, src TSRMLS_CC); 510 512 511 513 return dst; … … 535 537 #ifdef HAVE_XCACHE_DPRINT 536 538 void xc_dprint(xc_entry_php_t *src, int indent TSRMLS_DC) { 537 IFDPRINT(`INDENT()`'fprintf(stderr, "xc_entry_ t:src");')538 xc_dprint_xc_entry_ t(src, indent TSRMLS_CC);539 } 540 #endif 541 /* }}} */ 539 IFDPRINT(`INDENT()`'fprintf(stderr, "xc_entry_php_t:src");') 540 xc_dprint_xc_entry_php_t(src, indent TSRMLS_CC); 541 } 542 #endif 543 /* }}} */ -
trunk/processor/main.m4
r851 r856 252 252 EXPORT(`xc_classinfo_t') 253 253 EXPORT(`xc_funcinfo_t') 254 EXPORT(`xc_entry_ t')254 EXPORT(`xc_entry_var_t') 255 255 EXPORT(`xc_entry_php_t') 256 256 EXPORT(`xc_entry_data_php_t') -
trunk/processor/processor.m4
r854 r856 10 10 #endif 11 11 DECL_STRUCT_P_FUNC(`zend_function') 12 DECL_STRUCT_P_FUNC(`xc_entry_t') 12 DECL_STRUCT_P_FUNC(`xc_entry_var_t') 13 DECL_STRUCT_P_FUNC(`xc_entry_php_t') 13 14 #ifdef ZEND_ENGINE_2 14 15 DECL_STRUCT_P_FUNC(`zend_property_info') -
trunk/xcache.c
r854 r856 267 267 stored_xce = type == XC_TYPE_PHP 268 268 ? (xc_entry_t *) xc_processor_store_xc_entry_php_t(cache, (xc_entry_php_t *) xce TSRMLS_CC) 269 : xc_processor_store_xc_entry_t(cache,xce TSRMLS_CC);269 : (xc_entry_t *) xc_processor_store_xc_entry_var_t(cache, (xc_entry_var_t *) xce TSRMLS_CC); 270 270 if (stored_xce) { 271 271 xc_entry_add_dmz(cache, entryslotid, stored_xce); … … 281 281 { 282 282 return (xc_entry_php_t *) xc_entry_store_dmz(XC_TYPE_PHP, cache, entryslotid, (xc_entry_t *) xce TSRMLS_CC); 283 } 284 /* }}} */ 285 static xc_entry_var_t *xc_entry_var_store_dmz(xc_cache_t *cache, xc_hash_value_t entryslotid, xc_entry_var_t *xce TSRMLS_DC) /* {{{ */ 286 { 287 return (xc_entry_var_t *) xc_entry_store_dmz(XC_TYPE_VAR, cache, entryslotid, (xc_entry_t *) xce TSRMLS_CC); 283 288 } 284 289 /* }}} */ … … 2754 2759 } 2755 2760 xce.value = value; 2756 RETVAL_BOOL(xc_entry_ store_dmz(XC_TYPE_VAR, cache, entry_hash.entryslotid, (xc_entry_t *)&xce TSRMLS_CC) != NULL ? 1 : 0);2761 RETVAL_BOOL(xc_entry_var_store_dmz(cache, entry_hash.entryslotid, &xce TSRMLS_CC) != NULL ? 1 : 0); 2757 2762 } LEAVE_LOCK(cache); 2758 2763 } … … 2944 2949 xc_entry_remove_dmz(XC_TYPE_VAR, cache, entry_hash.cacheslotid, (xc_entry_t *) stored_xce TSRMLS_CC); 2945 2950 } 2946 xc_entry_ store_dmz(XC_TYPE_VAR, cache, entry_hash.cacheslotid, (xc_entry_t *)&xce TSRMLS_CC);2951 xc_entry_var_store_dmz(cache, entry_hash.cacheslotid, &xce TSRMLS_CC); 2947 2952 2948 2953 } LEAVE_LOCK(cache);
Note: See TracChangeset
for help on using the changeset viewer.

