/*
- * $Id: store_repl_lru.cc,v 1.2 2000/10/06 05:12:35 wessels Exp $
+ * $Id: store_repl_lru.cc,v 1.3 2000/10/06 05:13:04 wessels Exp $
*
* DEBUG: section ? LRU Removal policy
* AUTHOR: Henrik Nordstrom
dlink_list list;
int count;
int nwalkers;
- enum heap_entry_type
- { TYPE_UNKNOWN = 0, TYPE_STORE_ENTRY, TYPE_STORE_MEM }
- type;
+ enum heap_entry_type {
+ TYPE_UNKNOWN = 0, TYPE_STORE_ENTRY, TYPE_STORE_MEM
+ } type;
};
/* Hack to avoid having to remember the RemovalPolicyNode location.
}
typedef struct _LruNode LruNode;
-struct _LruNode
-{
+struct _LruNode {
/* Note: the dlink_node MUST be the first member of the LruNode
* structure. This member is later pointer typecasted to LruNode *.
*/
/** RemovalPolicyWalker **/
typedef struct _LruWalkData LruWalkData;
-struct _LruWalkData
-{
+struct _LruWalkData {
LruNode *current;
};
/** RemovalPurgeWalker **/
typedef struct _LruPurgeData LruPurgeData;
-struct _LruPurgeData
-{
+struct _LruPurgeData {
LruNode *current;
LruNode *start;
};
}
RemovalPolicy *
-createRemovalPolicy_lru(wordlist *args)
+createRemovalPolicy_lru(wordlist * args)
{
RemovalPolicy *policy;
LruPolicyData *lru_data;
nr_lru_policies += 0;
return policy;
}
-