diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-10 20:59:57 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-10 20:59:57 +0000 |
commit | ed156d8be1c7553d7e6904104235ca847bcdc9f1 (patch) | |
tree | 3800b1e64034226c4c6c3c15731cfaeb1be352a3 /gcc/mbchar.c | |
parent | 40265b779e4f6dbb508f3554b15aa2eedd4edaa5 (diff) | |
download | gcc-ed156d8be1c7553d7e6904104235ca847bcdc9f1.tar.gz |
* mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50544 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mbchar.c')
-rw-r--r-- | gcc/mbchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/mbchar.c b/gcc/mbchar.c index 5c86dbf8698..42517369d70 100644 --- a/gcc/mbchar.c +++ b/gcc/mbchar.c @@ -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}, |