Changeset 11 for trunk/xcache.h


Ignore:
Timestamp:
2006-05-24T09:52:48+02:00 (9 years ago)
Author:
moo
Message:

make it build on windows vc compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.h

    r2 r11  
    5252#define BUCKET_KEY_TYPE(b) (UNISW(0, (b)->key.type)) 
    5353#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) 
    5757#endif 
    5858#define BUCKET_SIZE(b) (BUCKET_HEAD_SIZE(b) + BUCKET_KEY_SIZE(b)) 
     
    117117/* {{{ xc_cache_t */ 
    118118typedef struct _xc_entry_t xc_entry_t; 
    119 typedef volatile struct { 
     119typedef struct { 
    120120    int cacheid; 
    121121    xc_hash_t  *hcache; /* hash to cacheid */ 
    122122 
    123     zend_bool  compiling; 
     123    time_t     compiling; 
    124124    zend_ulong misses; 
    125125    zend_ulong hits; 
Note: See TracChangeset for help on using the changeset viewer.