* mbchar.c (JIS_state_table, JIS_action_table): Const-ify.

From-SVN: r50544
This commit is contained in:
Kaveh R. Ghazi 2002-03-10 20:59:57 +00:00 committed by Kaveh Ghazi
parent 2b03d2017c
commit f90c544c3c
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
* attribs.c (decl_attributes): Fix signed/unsigned warning.
2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>

View File

@ -51,7 +51,7 @@ typedef enum {COPYA, COPYJ, COPYJ2, MAKE_A, MAKE_J, NOOP,
Thus, maximum returned length is:
2 (switch to JIS) + 2 (JIS characters) + 2 (switch back to ASCII) = 6. */
static JIS_STATE JIS_state_table[JIS_S_NUM][JIS_C_NUM] = {
static const JIS_STATE JIS_state_table[JIS_S_NUM][JIS_C_NUM] = {
/* ESCAPE DOLLAR BRACKET AT B J NUL JIS_CHAR OTH*/
/*ASCII*/ { A_ESC, ASCII, ASCII, ASCII, ASCII, ASCII, ASCII,ASCII,ASCII},
/*A_ESC*/ { ASCII, A_ESC_DL,ASCII, ASCII, ASCII, ASCII, ASCII,ASCII,ASCII},
@ -65,7 +65,7 @@ static JIS_STATE JIS_state_table[JIS_S_NUM][JIS_C_NUM] = {
/*J2_ESC_BR*/{INV, INV, INV, INV, ASCII, ASCII, INV, INV, INV },
};
static JIS_ACTION JIS_action_table[JIS_S_NUM][JIS_C_NUM] = {
static const JIS_ACTION JIS_action_table[JIS_S_NUM][JIS_C_NUM] = {
/* ESCAPE DOLLAR BRACKET AT B J NUL JIS_CHAR OTH */
/*ASCII */ {NOOP, COPYA, COPYA, COPYA, COPYA, COPYA, EMPTY, COPYA, COPYA},
/*A_ESC */ {COPYA, NOOP, COPYA, COPYA, COPYA, COPYA, COPYA, COPYA, COPYA},