Changeset 11 for trunk/xcache.h
- Timestamp:
- 05/24/2006 07:52:48 AM (3 years ago)
- Files:
-
- 1 modified
-
trunk/xcache.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.h
r2 r11 52 52 #define BUCKET_KEY_TYPE(b) (UNISW(0, (b)->key.type)) 53 53 #ifdef IS_UNICODE 54 # define BUCKET_HEAD_SIZE(b) XtOffsetOf( typeof(b[0]), key)55 #else 56 # define BUCKET_HEAD_SIZE(b) XtOffsetOf( typeof(b[0]), arKey)54 # define BUCKET_HEAD_SIZE(b) XtOffsetOf(Bucket, key) 55 #else 56 # define BUCKET_HEAD_SIZE(b) XtOffsetOf(Bucket, arKey) 57 57 #endif 58 58 #define BUCKET_SIZE(b) (BUCKET_HEAD_SIZE(b) + BUCKET_KEY_SIZE(b)) … … 117 117 /* {{{ xc_cache_t */ 118 118 typedef struct _xc_entry_t xc_entry_t; 119 typedef volatilestruct {119 typedef struct { 120 120 int cacheid; 121 121 xc_hash_t *hcache; /* hash to cacheid */ 122 122 123 zend_boolcompiling;123 time_t compiling; 124 124 zend_ulong misses; 125 125 zend_ulong hits;

