Changeset 851 for trunk/processor/head.m4
- Timestamp:
- 2012-03-27T18:07:50+02:00 (14 months ago)
- File:
-
- 1 edited
-
trunk/processor/head.m4 (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/processor/head.m4
r846 r851 82 82 zend_bool reference; /* enable if to deal with reference */ 83 83 zend_bool have_references; 84 const xc_entry_ t *entry_src;85 const xc_entry_ t *entry_dst;84 const xc_entry_php_t *entry_php_src; 85 const xc_entry_php_t *entry_php_dst; 86 86 const xc_entry_data_php_t *php_src; 87 87 const xc_entry_data_php_t *php_dst; … … 396 396 memset(&processor, 0, sizeof(processor)); 397 397 processor.reference = 1; 398 processor.cache = src-> cache;398 processor.cache = src->ifelse(`$1', `xc_entry_php_t', entry.)cache; 399 399 400 400 IFASSERT(`xc_stack_init(&processor.allocsizes);') … … 416 416 zend_hash_destroy(&processor.strings); 417 417 } 418 src->size = processor.size; 419 ifelse(`$1', `xc_entry_t', ` 420 src->data.var->have_references = processor.have_references; 421 ', ` 422 src->have_references = processor.have_references; 423 ') 418 src->ifelse(`$1', `xc_entry_php_t', entry.)size = processor.size; 419 ifelse( 420 `$1', `xc_entry_t', `src->data.var.have_references = processor.have_references;', 421 `$1', `xc_entry_data_php_t', `src->have_references = processor.have_references;' 422 ) 424 423 425 424 IFASSERT(`xc_stack_reverse(&processor.allocsizes);') … … 469 468 ') 470 469 DEFINE_STORE_API(`xc_entry_t') 470 DEFINE_STORE_API(`xc_entry_php_t') 471 471 DEFINE_STORE_API(`xc_entry_data_php_t') 472 /* export: xc_entry_ t *xc_processor_restore_xc_entry_t(xc_entry_t *dst, const xc_entry_t *src TSRMLS_DC); :export {{{ */473 xc_entry_ t *xc_processor_restore_xc_entry_t(xc_entry_t *dst, const xc_entry_t *src TSRMLS_DC) {472 /* export: xc_entry_php_t *xc_processor_restore_xc_entry_php_t(xc_entry_php_t *dst, const xc_entry_php_t *src TSRMLS_DC); :export {{{ */ 473 xc_entry_php_t *xc_processor_restore_xc_entry_php_t(xc_entry_php_t *dst, const xc_entry_php_t *src TSRMLS_DC) { 474 474 xc_processor_t processor; 475 475 476 476 memset(&processor, 0, sizeof(processor)); 477 xc_restore_xc_entry_ t(&processor, dst, src TSRMLS_CC);477 xc_restore_xc_entry_php_t(&processor, dst, src TSRMLS_CC); 478 478 479 479 return dst; 480 480 } 481 481 /* }}} */ 482 /* export: xc_entry_data_php_t *xc_processor_restore_xc_entry_data_php_t(const xc_entry_ t *xce, xc_entry_data_php_t *dst, const xc_entry_data_php_t *src, zend_bool readonly_protection TSRMLS_DC); :export {{{ */483 xc_entry_data_php_t *xc_processor_restore_xc_entry_data_php_t(const xc_entry_ t *xce, xc_entry_data_php_t *dst, const xc_entry_data_php_t *src, zend_bool readonly_protection TSRMLS_DC) {482 /* export: xc_entry_data_php_t *xc_processor_restore_xc_entry_data_php_t(const xc_entry_php_t *xce, xc_entry_data_php_t *dst, const xc_entry_data_php_t *src, zend_bool readonly_protection TSRMLS_DC); :export {{{ */ 483 xc_entry_data_php_t *xc_processor_restore_xc_entry_data_php_t(const xc_entry_php_t *xce, xc_entry_data_php_t *dst, const xc_entry_data_php_t *src, zend_bool readonly_protection TSRMLS_DC) { 484 484 xc_processor_t processor; 485 485 … … 490 490 processor.reference = 1; 491 491 } 492 processor.entry_ src = xce;492 processor.entry_php_src = xce; 493 493 494 494 if (processor.reference) { … … 499 499 zend_hash_destroy(&processor.zvalptrs); 500 500 } 501 return dst; 502 } 503 /* }}} */ 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 xc_processor_t processor; 507 508 memset(&processor, 0, sizeof(processor)); 509 xc_restore_xc_entry_t(&processor, dst, src TSRMLS_CC); 510 501 511 return dst; 502 512 } … … 522 532 } 523 533 /* }}} */ 524 /* export: void xc_dprint(xc_entry_ t *src, int indent TSRMLS_DC); :export {{{ */534 /* export: void xc_dprint(xc_entry_php_t *src, int indent TSRMLS_DC); :export {{{ */ 525 535 #ifdef HAVE_XCACHE_DPRINT 526 void xc_dprint(xc_entry_ t *src, int indent TSRMLS_DC) {536 void xc_dprint(xc_entry_php_t *src, int indent TSRMLS_DC) { 527 537 IFDPRINT(`INDENT()`'fprintf(stderr, "xc_entry_t:src");') 528 538 xc_dprint_xc_entry_t(src, indent TSRMLS_CC);
Note: See TracChangeset
for help on using the changeset viewer.

