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
4a4543ff
Commit
4a4543ff
authored
Oct 13, 2006
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
empty IMPORTS section is allowed
parent
07aaa34e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1104 additions
and
1072 deletions
+1104
-1072
libasn1parser/asn1p_y.c
libasn1parser/asn1p_y.c
+1072
-1071
libasn1parser/asn1p_y.y
libasn1parser/asn1p_y.y
+6
-1
tests/121-empty-imports-OK.asn1
tests/121-empty-imports-OK.asn1
+18
-0
tests/121-empty-imports-OK.asn1.-EF
tests/121-empty-imports-OK.asn1.-EF
+8
-0
No files found.
libasn1parser/asn1p_y.c
View file @
4a4543ff
This source diff could not be displayed because it is too large. You can
view the blob
instead.
libasn1parser/asn1p_y.y
View file @
4a4543ff
...
...
@@ -250,6 +250,7 @@ static asn1p_module_t *currentModule;
%type <a_module> optImports
%type <a_module> optExports
%type <a_module> ImportsDefinition
%type <a_module> optImportsBundleSet
%type <a_module> ImportsBundleSet
%type <a_xports> ImportsBundle
%type <a_xports> ImportsList
...
...
@@ -606,7 +607,7 @@ optImports:
| ImportsDefinition;
ImportsDefinition:
TOK_IMPORTS ImportsBundleSet ';' {
TOK_IMPORTS
opt
ImportsBundleSet ';' {
if(!saved_aid && 0)
return yyerror("Unterminated IMPORTS FROM, "
"expected semicolon ';'");
...
...
@@ -621,6 +622,10 @@ ImportsDefinition:
}
;
optImportsBundleSet:
{ $$ = asn1p_module_new(); }
| ImportsBundleSet;
ImportsBundleSet:
ImportsBundle {
$$ = asn1p_module_new();
...
...
tests/121-empty-imports-OK.asn1
0 → 100644
View file @
4a4543ff
-- OK: Everything is fine
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
-- .spelio.software.asn1c.test (9363.1.5.1)
-- .121
ModuleEmptyIMPORTS
{ iso org(3) dod(6) internet (1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 121 }
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
IMPORTS -- nothing --;
Type ::= INTEGER
END
tests/121-empty-imports-OK.asn1.-EF
0 → 100644
View file @
4a4543ff
ModuleEmptyIMPORTS { iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 121 }
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
Type ::= INTEGER
END
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