commit 6d16f1d169a88734733de6d8f267acb70fc01e80
parent 2907701cc426e1146aba4e3e25444bab5fc3bdfe
Author: ukai <ukai>
Date: Fri, 25 Jan 2002 14:55:20 +0000
[w3m-dev 02904]
* rc.c (N_STR): use cpp stringification
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat:
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-25 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * [w3m-dev 02904]
+ * rc.c (N_STR): use cpp stringification
+
2002-01-25 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 02902] mouse inactive after calling some command with ALARM.
diff --git a/rc.c b/rc.c
@@ -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