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
f6da1797
Commit
f6da1797
authored
Sep 04, 2012
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get rid of xer_is_whitespace()
parent
44bb01e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
skeletons/INTEGER.c
skeletons/INTEGER.c
+6
-6
No files found.
skeletons/INTEGER.c
View file @
f6da1797
...
...
@@ -337,6 +337,7 @@ INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun
ST_DIGITS_TRAILSPACE
,
ST_HEXDIGIT1
,
ST_HEXDIGIT2
,
ST_HEXDIGITS_TRAILSPACE
,
ST_HEXCOLON
,
ST_END_ENUM
,
ST_UNEXPECTED
...
...
@@ -362,18 +363,16 @@ INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun
switch
(
state
)
{
case
ST_LEADSPACE
:
case
ST_DIGITS_TRAILSPACE
:
case
ST_HEXDIGITS_TRAILSPACE
:
case
ST_SKIPSPHEX
:
continue
;
case
ST_HEXCOLON
:
if
(
xer_is_whitespace
(
lp
,
lstop
-
lp
))
{
lp
=
lstop
-
1
;
continue
;
}
break
;
case
ST_DIGITS
:
dec_value_end
=
lp
;
state
=
ST_DIGITS_TRAILSPACE
;
continue
;
case
ST_HEXCOLON
:
state
=
ST_HEXDIGITS_TRAILSPACE
;
continue
;
default:
break
;
}
...
...
@@ -512,6 +511,7 @@ INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun
}
break
;
case
ST_HEXCOLON
:
case
ST_HEXDIGITS_TRAILSPACE
:
st
->
buf
[
st
->
size
]
=
0
;
/* Just in case termination */
return
XPBD_BODY_CONSUMED
;
case
ST_HEXDIGIT1
:
...
...
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