]> diplodocus.org Git - nmh/blob - h/mhcachesbr.h
sbr/vector.c: Rewrite BVEC_BYTES(n) macro to remove branch.
[nmh] / h / mhcachesbr.h
1 /* mhcachesbr.h -- definitions for manipulating MIME content cache
2 */
3
4 /*
5 * various cache policies
6 */
7
8 #define CACHE_SWITCHES \
9 X("never", 0, CACHE_NEVER) \
10 X("private", 0, CACHE_PRIVATE) \
11 X("public", 0, CACHE_PUBLIC) \
12 X("ask", 0, CACHE_ASK) \
13
14 #define X(sw, minchars, id) id,
15 DEFINE_SWITCH_ENUM(CACHE);
16 #undef X
17
18 #define X(sw, minchars, id) { sw, minchars, id },
19 DEFINE_SWITCH_ARRAY(CACHE, caches);
20 #undef X