Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
ca15fc65
Commit
ca15fc65
authored
Jul 30, 2014
by
Wim Lewis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid an unnecessary table lookup and its accompanying table (final_chunk_type[]).
parent
18c2ec9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
skeletons/xer_support.c
skeletons/xer_support.c
+4
-10
No files found.
skeletons/xer_support.c
View file @
ca15fc65
...
@@ -22,15 +22,6 @@ typedef enum {
...
@@ -22,15 +22,6 @@ typedef enum {
ST_COMMENT_CLO_RT
/* "-->"[1] */
ST_COMMENT_CLO_RT
/* "-->"[1] */
}
pstate_e
;
}
pstate_e
;
static
pxml_chunk_type_e
final_chunk_type
[]
=
{
PXML_TEXT
,
PXML_TAG_END
,
PXML_COMMENT_END
,
PXML_TAG_END
,
PXML_COMMENT_END
,
};
static
const
int
static
const
int
_charclass
[
256
]
=
{
_charclass
[
256
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
0
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
0
,
1
,
1
,
0
,
0
,
...
@@ -79,8 +70,11 @@ _charclass[256] = {
...
@@ -79,8 +70,11 @@ _charclass[256] = {
#define TOKEN_CB(_type, _ns, _current_too) \
#define TOKEN_CB(_type, _ns, _current_too) \
TOKEN_CB_CALL(_type, _ns, _current_too, 0)
TOKEN_CB_CALL(_type, _ns, _current_too, 0)
#define PXML_TAG_FINAL_CHUNK_TYPE PXML_TAG_END
#define PXML_COMMENT_FINAL_CHUNK_TYPE PXML_COMMENT_END
#define TOKEN_CB_FINAL(_type, _ns, _current_too) \
#define TOKEN_CB_FINAL(_type, _ns, _current_too) \
TOKEN_CB_CALL(
final_chunk_type[_type]
, _ns, _current_too, 1)
TOKEN_CB_CALL(
_type ## _FINAL_CHUNK_TYPE
, _ns, _current_too, 1)
/*
/*
* Parser itself
* Parser itself
...
...
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