Changeset 1051 for trunk/mod_cacher/xc_cacher.c
- Timestamp:
- 07/26/2012 05:47:52 AM (10 months ago)
- Files:
-
- 1 modified
-
trunk/mod_cacher/xc_cacher.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/mod_cacher/xc_cacher.c
r1047 r1051 9 9 /* {{{ macros */ 10 10 #include "xc_cacher.h" 11 #include "xc_cache.h" 11 12 #include "xcache.h" 12 13 #include "xc_processor.h" … … 29 30 #include "SAPI.h" 30 31 32 #define ECALLOC_N(x, n) ((x) = ecalloc(n, sizeof((x)[0]))) 33 #define ECALLOC_ONE(x) ECALLOC_N(x, 1) 31 34 #define VAR_ENTRY_EXPIRED(pentry) ((pentry)->ttl && XG(request_time) > (pentry)->ctime + (time_t) (pentry)->ttl) 32 35 #define CHECK(x, e) do { if ((x) == NULL) { zend_error(E_ERROR, "XCache: " e); goto err; } } while (0) … … 54 57 } \ 55 58 } while(0) 59 /* }}} */ 60 61 /* {{{ types */ 62 struct _xc_hash_t { 63 size_t bits; 64 size_t size; 65 xc_hash_value_t mask; 66 }; 56 67 /* }}} */ 57 68

