Changeset 1051 in svn for trunk/mod_cacher/xc_cacher.c


Ignore:
Timestamp:
2012-07-26T05:47:52+02:00 (3 years ago)
Author:
Xuefer
Message:

refactor: move more cache stuffs to mod_cacher

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_cacher/xc_cacher.c

    r1047 r1051  
    99/* {{{ macros */
    1010#include "xc_cacher.h"
     11#include "xc_cache.h"
    1112#include "xcache.h"
    1213#include "xc_processor.h"
     
    2930#include "SAPI.h"
    3031
     32#define ECALLOC_N(x, n) ((x) = ecalloc(n, sizeof((x)[0])))
     33#define ECALLOC_ONE(x) ECALLOC_N(x, 1)
    3134#define VAR_ENTRY_EXPIRED(pentry) ((pentry)->ttl && XG(request_time) > (pentry)->ctime + (time_t) (pentry)->ttl)
    3235#define CHECK(x, e) do { if ((x) == NULL) { zend_error(E_ERROR, "XCache: " e); goto err; } } while (0)
     
    5457    } \
    5558} while(0)
     59/* }}} */
     60
     61/* {{{ types */
     62struct _xc_hash_t {
     63    size_t bits;
     64    size_t size;
     65    xc_hash_value_t mask;
     66};
    5667/* }}} */
    5768
Note: See TracChangeset for help on using the changeset viewer.