From b4d1f345bdbc1cb27fb5f466a6b87a06ae539ae1 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 25 Jan 2002 14:55:20 +0000 Subject: [w3m-dev 02904] * rc.c (N_STR): use cpp stringification From: Fumitoshi UKAI --- rc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'rc.c') diff --git a/rc.c b/rc.c index 7c9db51..29a0051 100644 --- a/rc.c +++ b/rc.c @@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.35 2002/01/24 17:29:45 ukai Exp $ */ +/* $Id: rc.c,v 1.36 2002/01/25 14:55:20 ukai Exp $ */ /* * Initialization file etc. */ @@ -364,12 +364,18 @@ static struct sel_c colorstr[] = { }; #endif /* USE_COLOR */ +#if 1 /* ANSI-C ? */ +#define N_STR(x) #x +#define N_S(x) (x), N_STR(x) +#else /* for traditional cpp? */ static char n_s[][2] = { {'0', 0}, {'1', 0}, {'2', 0}, }; #define N_S(x) (x), n_s[(x)] +#endif + static struct sel_c defaulturls[] = { #if LANG == JA -- cgit v1.2.3