From fbb3e57fab17414fa2fef95754b31c3d130cd61f Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Thu, 24 Jan 2002 16:59:16 +0000 Subject: [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 --- rc.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'rc.c') 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 */ -- cgit v1.2.3