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
6e8da2ba
Commit
6e8da2ba
authored
Sep 10, 2004
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
different marker semantics
parent
8a99bf71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
libasn1parser/asn1p_expr.h
libasn1parser/asn1p_expr.h
+8
-7
libasn1print/asn1print.c
libasn1print/asn1print.c
+4
-5
No files found.
libasn1parser/asn1p_expr.h
View file @
6e8da2ba
...
...
@@ -173,18 +173,19 @@ typedef struct asn1p_expr_s {
asn1_integer_t
tag_value
;
}
tag
;
/*
* Whether automatic tagging is applicable for subtypes.
*/
int
auto_tags_OK
;
enum
asn1p_expr_marker_e
{
EM_NOMARK
,
EM_OPTIONAL
,
EM_DEFAULT
,
/* FIXME: store the value somewhere. */
EM_INDIRECT
=
0x01
,
/* 0001: Represent as pointer */
EM_OPTIONAL
=
0x03
,
/* 0011: Optional member */
EM_DEFAULT
=
0x07
,
/* 0111: FIXME: store the value */
}
marker
;
int
unique
;
/* UNIQUE */
/*
* Whether automatic tagging is applicable for subtypes.
*/
int
auto_tags_OK
;
/*
* Members of the constructed type.
*/
...
...
libasn1print/asn1print.c
View file @
6e8da2ba
...
...
@@ -533,11 +533,10 @@ asn1print_expr(asn1p_t *asn, asn1p_module_t *mod, asn1p_expr_t *tc, enum asn1pri
* Print the expression as it were a stand-alone type.
*/
asn1print_expr
(
asn
,
mod
,
se
,
flags
,
level
+
4
);
switch
(
se
->
marker
)
{
case
EM_NOMARK
:
break
;
case
EM_OPTIONAL
:
printf
(
" OPTIONAL"
);
break
;
case
EM_DEFAULT
:
printf
(
" DEFAULT <?>"
);
break
;
}
if
(
se
->
marker
&
EM_DEFAULT
)
printf
(
" DEFAULT <?>"
);
else
if
(
se
->
marker
&
EM_OPTIONAL
)
printf
(
" OPTIONAL"
);
if
(
TQ_NEXT
(
se
,
next
))
{
printf
(
","
);
INDENT
(
"
\n
"
);
...
...
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