X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f2753d64be0a74a22018e03ec9c04cc9ca45d3ab..4a56a28ac:/uip/mhcachesbr.c?ds=sidebyside diff --git a/uip/mhcachesbr.c b/uip/mhcachesbr.c index 2c9a33de..f343bf39 100644 --- a/uip/mhcachesbr.c +++ b/uip/mhcachesbr.c @@ -14,6 +14,7 @@ #include #include #include +#include "../sbr/lock_file.h" #include "../sbr/m_mktemp.h" #ifdef HAVE_SYS_TIME_H @@ -21,6 +22,11 @@ #endif #include +#define X(sw, minchars, id) { sw, minchars, id }, +DEFINE_SWITCH_ARRAY(CACHE, caches); +#undef X +struct swit *cache_policy = caches; + extern int debugsw; /* cache policies */ @@ -41,12 +47,6 @@ int type_ok (CT, int); void content_error (char *, CT, char *, ...); void flush_errors (void); -/* - * prototypes - */ -void cache_all_messages (CT *); -int find_cache (CT, int, int *, char *, char *, int); - /* * static prototypes */