Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Havar
asn1c
Commits
f6da1797
Commit
f6da1797
authored
Sep 04, 2012
by
Lev Walkin
Browse files
get rid of xer_is_whitespace()
parent
44bb01e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
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