Changeset 854 for trunk/xcache.h
- Timestamp:
- 2012-03-28T10:48:20+02:00 (14 months ago)
- File:
-
- 1 edited
-
trunk/xcache.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.h
r851 r854 355 355 /* }}} */ 356 356 #endif 357 typedef enum { XC_TYPE_PHP, XC_TYPE_VAR } xc_entry_type_t;358 357 typedef struct { 359 358 char digest[16]; … … 369 368 /* {{{ xc_entry_data_php_t */ 370 369 struct _xc_entry_data_php_t { 370 xc_entry_data_php_t *next; 371 371 xc_hash_value_t hvalue; 372 xc_entry_data_php_t *next;373 xc_cache_t *cache;374 372 375 373 xc_md5sum_t md5; /* md5sum of the source */ … … 410 408 }; 411 409 /* }}} */ 412 /* {{{ xc_entry_data_var_t */413 typedef struct {414 zval *value;415 416 zend_bool have_references;417 } xc_entry_data_var_t;418 /* }}} */419 410 typedef zvalue_value xc_entry_name_t; 420 411 /* {{{ xc_entry_t */ 421 412 struct _xc_entry_t { 422 xc_hash_value_t hvalue; 423 xc_entry_t *next; 424 xc_cache_t *cache; 425 426 xc_entry_type_t type; 427 size_t size; 428 413 xc_entry_t *next; 414 415 size_t size; 429 416 time_t ctime; /* creation ctime of this entry */ 430 417 time_t atime; /* access atime of this entry */ … … 437 424 #endif 438 425 xc_entry_name_t name; 439 440 union {441 xc_entry_data_php_t *php;442 xc_entry_data_var_t var;443 } data;444 426 }; 445 427 446 428 typedef struct { 447 429 xc_entry_t entry; 430 xc_entry_data_php_t *php; 448 431 449 432 zend_ulong refcount; /* count of php instances holding this entry */ … … 466 449 } xc_entry_php_t; 467 450 /* }}} */ 451 typedef struct { 452 xc_entry_t entry; 453 zval *value; 454 zend_bool have_references; 455 } xc_entry_var_t; 456 /* }}} */ 457 typedef struct xc_entry_hash_t { /* {{{ */ 458 xc_hash_value_t cacheslotid; 459 xc_hash_value_t entryslotid; 460 } xc_entry_hash_t; 461 /* }}} */ 468 462 469 463 extern zend_module_entry xcache_module_entry;
Note: See TracChangeset
for help on using the changeset viewer.

