aboutsummaryrefslogtreecommitdiffstats
path: root/rc.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-24 16:59:16 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-24 16:59:16 +0000
commitfbb3e57fab17414fa2fef95754b31c3d130cd61f (patch)
tree346060a70cb6b2fc8015aacef10b32542ea42669 /rc.c
parent[w3m-dev 02896] fid attr value should be in sequence (diff)
downloadw3m-fbb3e57fab17414fa2fef95754b31c3d130cd61f.tar.gz
w3m-fbb3e57fab17414fa2fef95754b31c3d130cd61f.zip
[w3m-dev 02901] ACCEPT_BAD_COOKIE_*
* file.c (readHeader): accept_bad_cookie is one of ACCEPT_BAD_COOKIE_* * fm.h (PERHAPS): deleted * fm.h (ACCEPT_BAD_COOKIE_*): added * rc.c (n_s): added * rc.c (N_S): added * rc.c (badcookiestr): use N_S(ACCEPT_BAD_COOKIE_*) From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'rc.c')
-rw-r--r--rc.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/rc.c b/rc.c
index d5db499..9693df8 100644
--- a/rc.c
+++ b/rc.c
@@ -1,4 +1,4 @@
-/* $Id: rc.c,v 1.32 2002/01/21 15:56:13 ukai Exp $ */
+/* $Id: rc.c,v 1.33 2002/01/24 16:59:16 ukai Exp $ */
/*
* Initialization file etc.
*/
@@ -362,6 +362,13 @@ static struct sel_c colorstr[] = {
};
#endif /* USE_COLOR */
+static char n_s[][2] = {
+ {'0', 0},
+ {'1', 0},
+ {'2', 0},
+};
+#define N_S(x) (x), n_s[(x)]
+
#ifdef INET6
static struct sel_c dnsorders[] = {
{0, "0", "unspec"},
@@ -373,11 +380,11 @@ static struct sel_c dnsorders[] = {
#ifdef USE_COOKIE
static struct sel_c badcookiestr[] = {
- {0, "0", "discard"},
+ {N_S(ACCEPT_BAD_COOKIE_DISCARD), "discard"},
#if 0
- {1, "1", "accept"},
+ {N_S(ACCEPT_BAD_COOKIE_ACCEPT), "accept"},
#endif
- {2, "2", "ask"},
+ {N_S(ACCEPT_BAD_COOKIE_ASK), "ask"},
{0, NULL, NULL}
};
#endif /* USE_COOKIE */