Changeset 120 in svn for trunk/xcache.c


Ignore:
Timestamp:
2006-09-02T02:08:41Z (9 years ago)
Author:
Xuefer
Message:

renamed function name to make it more readable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r119 r120  
    257257#define XC_CACHE_APPLY_FUNC(name) void name(xc_cache_t *cache TSRMLS_DC)
    258258/* call graph:
    259  * xc_php_gc_expires -> xc_gc_expires_var_one -> xc_entry_apply_dmz -> xc_gc_php_entry_expires_dmz
    260  * xc_var_gc_expires -> xc_gc_expires_one -> xc_entry_apply_dmz -> xc_gc_var_entry_expires_dmz
     259 * xc_gc_expires_php -> xc_gc_expires_one -> xc_entry_apply_dmz -> xc_gc_expires_php_entry_dmz
     260 * xc_gc_expires_var -> xc_gc_expires_one -> xc_entry_apply_dmz -> xc_gc_expires_var_entry_dmz
    261261 */
    262 static XC_ENTRY_APPLY_FUNC(xc_gc_php_entry_expires_dmz) /* {{{ */
     262static XC_ENTRY_APPLY_FUNC(xc_gc_expires_php_entry_dmz) /* {{{ */
    263263{
    264264#ifdef DEBUG
     
    271271}
    272272/* }}} */
    273 static XC_ENTRY_APPLY_FUNC(xc_gc_var_entry_expires_dmz) /* {{{ */
     273static XC_ENTRY_APPLY_FUNC(xc_gc_expires_var_entry_dmz) /* {{{ */
    274274{
    275275    if (VAR_ENTRY_EXPIRED(entry)) {
     
    294294}
    295295/* }}} */
    296 static void xc_php_gc_expires(TSRMLS_D) /* {{{ */
     296static void xc_gc_expires_php(TSRMLS_D) /* {{{ */
    297297{
    298298    int i, c;
     
    303303
    304304    for (i = 0, c = xc_php_hcache.size; i < c; i ++) {
    305         xc_gc_expires_one(xc_php_caches[i], xc_php_gc_interval, xc_gc_php_entry_expires_dmz TSRMLS_CC);
    306     }
    307 }
    308 /* }}} */
    309 static void xc_var_gc_expires(TSRMLS_D) /* {{{ */
     305        xc_gc_expires_one(xc_php_caches[i], xc_php_gc_interval, xc_gc_expires_php_entry_dmz TSRMLS_CC);
     306    }
     307}
     308/* }}} */
     309static void xc_gc_expires_var(TSRMLS_D) /* {{{ */
    310310{
    311311    int i, c;
     
    316316
    317317    for (i = 0, c = xc_var_hcache.size; i < c; i ++) {
    318         xc_gc_expires_one(xc_var_caches[i], xc_var_gc_interval, xc_gc_var_entry_expires_dmz TSRMLS_CC);
     318        xc_gc_expires_one(xc_var_caches[i], xc_var_gc_interval, xc_gc_expires_var_entry_dmz TSRMLS_CC);
    319319    }
    320320}
     
    12621262{
    12631263    xc_entry_unholds(TSRMLS_C);
    1264     xc_php_gc_expires(TSRMLS_C);
    1265     xc_var_gc_expires(TSRMLS_C);
     1264    xc_gc_expires_php(TSRMLS_C);
     1265    xc_gc_expires_var(TSRMLS_C);
    12661266    xc_gc_deletes(TSRMLS_C);
    12671267#ifdef HAVE_XCACHE_COVERAGER
Note: See TracChangeset for help on using the changeset viewer.