[w3m-dev 02904]

* rc.c (N_STR): use cpp stringification
From: Fumitoshi UKAI  <ukai@debian.or.jp>
This commit is contained in:
Fumitoshi UKAI
2002-01-25 14:55:20 +00:00
parent ef6e97be1f
commit b4d1f345bd
2 changed files with 13 additions and 2 deletions

View File

@@ -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> 2002-01-25 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 02902] mouse inactive after calling some command with ALARM. * [w3m-dev 02902] mouse inactive after calling some command with ALARM.
@@ -2281,4 +2286,4 @@
* release-0-2-1 * release-0-2-1
* import w3m-0.2.1 * import w3m-0.2.1
$Id: ChangeLog,v 1.259 2002/01/24 17:46:50 ukai Exp $ $Id: ChangeLog,v 1.260 2002/01/25 14:55:20 ukai Exp $

8
rc.c
View File

@@ -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. * Initialization file etc.
*/ */
@@ -364,12 +364,18 @@ static struct sel_c colorstr[] = {
}; };
#endif /* USE_COLOR */ #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] = { static char n_s[][2] = {
{'0', 0}, {'0', 0},
{'1', 0}, {'1', 0},
{'2', 0}, {'2', 0},
}; };
#define N_S(x) (x), n_s[(x)] #define N_S(x) (x), n_s[(x)]
#endif
static struct sel_c defaulturls[] = { static struct sel_c defaulturls[] = {
#if LANG == JA #if LANG == JA