w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit bc44d30148916d755e5cfde8272dddf9335f711b
parent f50f4880b1c62095bd121cdd29a48303f9710179
Author: ukai <ukai>
Date:   Thu, 24 Jan 2002 17:07:40 +0000

[w3m-dev 02901] DNS_ORDER_*
* fm.h (DNS_ORDER_*): added
* rc.c (dnsorders): use N_S(DNS_ORDER_*)
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>

Diffstat:
MChangeLog | 6++++++
Mfm.h | 5++++-
Mrc.c | 6+++---
3 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,4 +1,10 @@ 2002-01-25 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 02901] DNS_ORDER_* + * fm.h (DNS_ORDER_*): added + * rc.c (dnsorders): use N_S(DNS_ORDER_*) + +2002-01-25 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> * [w3m-dev 02901] ACCEPT_BAD_COOKIE_* * file.c (readHeader): accept_bad_cookie is one of ACCEPT_BAD_COOKIE_* diff --git a/fm.h b/fm.h @@ -670,7 +670,10 @@ global ParsedURL FTP_proxy_parsed; global char *NO_proxy init(NULL); global int NOproxy_netaddr init(TRUE); #ifdef INET6 -global int DNS_order init(0); +#define DNS_ORDER_UNSPEC 0 +#define DNS_ORDER_INET_INET6 1 +#define DNS_ORDER_INET6_INET 2 +global int DNS_order init(DNS_ORDER_UNSPEC); extern int ai_family_order_table[3][3]; /* XXX */ #endif /* INET6 */ global TextList *NO_proxy_domains; diff --git a/rc.c b/rc.c @@ -371,9 +371,9 @@ static char n_s[][2] = { #ifdef INET6 static struct sel_c dnsorders[] = { - {0, "0", "unspec"}, - {1, "1", "inet inet6"}, - {2, "2", "inet6 inet"}, + {N_S(DNS_ORDER_UNSPEC), "unspec"}, + {N_S(DNS_ORDER_INET_INET6), "inet inet6"}, + {N_S(DNS_ORDER_INET6_INET), "inet6 inet"}, {0, NULL, NULL} }; #endif /* INET6 */