[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>
This commit is contained in:
Fumitoshi UKAI
2002-01-24 16:59:16 +00:00
parent 0e3d9e6a6f
commit fbb3e57fab
4 changed files with 31 additions and 14 deletions

15
rc.c
View File

@@ -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 */