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
bc407267
Commit
bc407267
authored
Aug 23, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explicit extensibility of object sets
parent
53a28a26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
libasn1parser/asn1p_class.h
libasn1parser/asn1p_class.h
+1
-0
libasn1print/asn1print.c
libasn1print/asn1print.c
+7
-3
No files found.
libasn1parser/asn1p_class.h
View file @
bc407267
...
...
@@ -22,6 +22,7 @@ void asn1p_ioc_row_delete(asn1p_ioc_row_t *);
typedef
struct
asn1p_ioc_table_s
{
asn1p_ioc_row_t
**
row
;
size_t
rows
;
int
extensible
;
/* 0 if non-extensible (sealed). Otherwise, extensible. */
}
asn1p_ioc_table_t
;
asn1p_ioc_table_t
*
asn1p_ioc_table_new
(
void
);
...
...
libasn1print/asn1print.c
View file @
bc407267
...
...
@@ -830,8 +830,9 @@ asn1print_expr(asn1p_t *asn, asn1p_module_t *mod, asn1p_expr_t *tc, enum asn1pri
asn1p_ioc_row_t
*
row
;
row
=
tc
->
ioc_table
->
row
[
r
<
0
?
0
:
r
];
if
(
r
<
0
)
safe_printf
(
"-- %s"
,
r
>
9
?
" "
:
""
);
else
safe_printf
(
"-- [%*d]"
,
r
>
9
?
2
:
1
,
r
+
1
);
for
(
col
=
0
;
col
<
row
->
columns
;
col
++
)
{
else
safe_printf
(
"-- [%*d]"
,
(
tc
->
ioc_table
->
rows
>
9
)
+
1
,
r
+
1
);
for
(
col
=
0
;
col
<
row
->
columns
;
col
++
)
{
struct
asn1p_ioc_cell_s
*
cell
;
cell
=
&
row
->
column
[
col
];
if
(
r
<
0
)
{
...
...
@@ -848,7 +849,10 @@ asn1print_expr(asn1p_t *asn, asn1p_module_t *mod, asn1p_expr_t *tc, enum asn1pri
}
safe_printf
(
"
\n
"
);
}
}
while
(
0
);
if
(
tc
->
ioc_table
->
extensible
)
{
safe_printf
(
"-- [%*s] ...
\n
"
,
(
tc
->
ioc_table
->
rows
>
9
)
+
1
,
""
);
}
}
while
(
0
);
if
(
flags
&
APF_PRINT_CLASS_MATRIX
&&
tc
->
lhs_params
)
do
{
...
...
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