Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
f90c544c
Commit
f90c544c
authored
Mar 10, 2002
by
Kaveh R. Ghazi
Committed by
Kaveh Ghazi
Mar 10, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
From-SVN: r50544
parent
2b03d201
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
gcc/ChangeLog
+2
-0
gcc/mbchar.c
+2
-2
No files found.
gcc/ChangeLog
View file @
f90c544c
2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
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.
* attribs.c (decl_attributes): Fix signed/unsigned warning.
2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
...
...
gcc/mbchar.c
View file @
f90c544c
...
@@ -51,7 +51,7 @@ typedef enum {COPYA, COPYJ, COPYJ2, MAKE_A, MAKE_J, NOOP,
...
@@ -51,7 +51,7 @@ typedef enum {COPYA, COPYJ, COPYJ2, MAKE_A, MAKE_J, NOOP,
Thus, maximum returned length is:
Thus, maximum returned length is:
2 (switch to JIS) + 2 (JIS characters) + 2 (switch back to ASCII) = 6. */
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*/
/* ESCAPE DOLLAR BRACKET AT B J NUL JIS_CHAR OTH*/
/*ASCII*/
{
A_ESC
,
ASCII
,
ASCII
,
ASCII
,
ASCII
,
ASCII
,
ASCII
,
ASCII
,
ASCII
},
/*ASCII*/
{
A_ESC
,
ASCII
,
ASCII
,
ASCII
,
ASCII
,
ASCII
,
ASCII
,
ASCII
,
ASCII
},
/*A_ESC*/
{
ASCII
,
A_ESC_DL
,
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] = {
...
@@ -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
},
/*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 */
/* ESCAPE DOLLAR BRACKET AT B J NUL JIS_CHAR OTH */
/*ASCII */
{
NOOP
,
COPYA
,
COPYA
,
COPYA
,
COPYA
,
COPYA
,
EMPTY
,
COPYA
,
COPYA
},
/*ASCII */
{
NOOP
,
COPYA
,
COPYA
,
COPYA
,
COPYA
,
COPYA
,
EMPTY
,
COPYA
,
COPYA
},
/*A_ESC */
{
COPYA
,
NOOP
,
COPYA
,
COPYA
,
COPYA
,
COPYA
,
COPYA
,
COPYA
,
COPYA
},
/*A_ESC */
{
COPYA
,
NOOP
,
COPYA
,
COPYA
,
COPYA
,
COPYA
,
COPYA
,
COPYA
,
COPYA
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment