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
8ca8e0ef
Commit
8ca8e0ef
authored
Jan 21, 2024
by
v0-e
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default class syntax add check
parent
c54d9467
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
libasn1fix/asn1fix_cws.c
libasn1fix/asn1fix_cws.c
+5
-3
No files found.
libasn1fix/asn1fix_cws.c
View file @
8ca8e0ef
...
@@ -298,8 +298,6 @@ asn1f_parse_class_object(arg_t *arg) {
...
@@ -298,8 +298,6 @@ asn1f_parse_class_object(arg_t *arg) {
#define SKIPSPACES \
#define SKIPSPACES \
for(; buf < bend && isspace(*buf); buf++)
for(; buf < bend && isspace(*buf); buf++)
#define SKIPSPACES_AND_COMMA \
for(; buf < bend && (isspace(*buf) || *buf==','); buf++)
static
int
static
int
_asn1f_parse_class_object_data_default_syntx
(
arg_t
*
arg
,
asn1p_expr_t
*
eclass
,
_asn1f_parse_class_object_data_default_syntx
(
arg_t
*
arg
,
asn1p_expr_t
*
eclass
,
...
@@ -317,6 +315,10 @@ _asn1f_parse_class_object_data_default_syntx(arg_t *arg, asn1p_expr_t *eclass,
...
@@ -317,6 +315,10 @@ _asn1f_parse_class_object_data_default_syntx(arg_t *arg, asn1p_expr_t *eclass,
asn1p_expr_t
*
cm
;
asn1p_expr_t
*
cm
;
SKIPSPACES
;
SKIPSPACES
;
for
(;
buf
<
bend
;
++
buf
)
{
for
(;
buf
<
bend
;
++
buf
)
{
/* find possible literal PrimitiveFieldName */
if
(
*
buf
!=
'&'
)
{
continue
;
}
TQ_FOR
(
cm
,
&
(
eclass
->
members
),
next
)
{
TQ_FOR
(
cm
,
&
(
eclass
->
members
),
next
)
{
/* PrimitiveFieldName */
/* PrimitiveFieldName */
int
id_len
=
strlen
(
cm
->
Identifier
);
int
id_len
=
strlen
(
cm
->
Identifier
);
...
@@ -344,7 +346,7 @@ _asn1f_parse_class_object_data_default_syntx(arg_t *arg, asn1p_expr_t *eclass,
...
@@ -344,7 +346,7 @@ _asn1f_parse_class_object_data_default_syntx(arg_t *arg, asn1p_expr_t *eclass,
ret
=
_asn1f_assign_cell_value
(
arg
,
cell
,
buf
,
p
,
counter
);
ret
=
_asn1f_assign_cell_value
(
arg
,
cell
,
buf
,
p
,
counter
);
if
(
ret
)
return
ret
;
if
(
ret
)
return
ret
;
buf
=
p
;
buf
=
p
;
SKIPSPACES
_AND_COMMA
;
SKIPSPACES
;
if
(
newpos
)
*
newpos
=
buf
;
if
(
newpos
)
*
newpos
=
buf
;
break
;
break
;
...
...
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