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
144db9ba
Commit
144db9ba
authored
Oct 12, 2004
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fixes
parent
bbd9325d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
928 additions
and
869 deletions
+928
-869
ChangeLog
ChangeLog
+9
-0
TODO
TODO
+6
-2
configure
configure
+1
-1
configure.in
configure.in
+1
-1
libasn1fix/asn1fix_constr.c
libasn1fix/asn1fix_constr.c
+4
-2
libasn1parser/asn1p_y.c
libasn1parser/asn1p_y.c
+887
-860
libasn1parser/asn1p_y.y
libasn1parser/asn1p_y.y
+20
-3
No files found.
ChangeLog
View file @
144db9ba
0.9.7.2: 2004-Oct-12
* Empty SEQUENCE and SET clauses are now allowed.
0.9.7.1: 2004-Oct-12
* Fixed automatic tagging for extensions of compound types.
* Fixed ParametrizedReference parsing: {} are now recognized.
0.9.7: 2004-Oct-11
* Finished CANONICAL-XER implementation by adding SET and SET OF
...
...
TODO
View file @
144db9ba
...
...
@@ -12,7 +12,11 @@ which is already completed.
Support for slicing the IOCs to produce "views"
is not yet designed.
M
INOR
:
M
EDIUM
:
1. Support for DEFAULT encoding and decoding, at least in INTEGER/ENUMERATED types.
3. Support for EXTERNAL, EMBEDDED-PDV and CHARACTER STRING types.
2. Support for EXTERNAL, EMBEDDED-PDV and CHARACTER STRING types.
MINOR:
1. Parsing of CONSTRAINED BY clauses
configure
View file @
144db9ba
...
...
@@ -1881,7 +1881,7 @@ fi
# Define the identity of the package.
PACKAGE
=
asn1c
VERSION
=
0.9.7
VERSION
=
0.9.7
.2
cat
>>
confdefs.h
<<
_ACEOF
...
...
configure.in
View file @
144db9ba
...
...
@@ -3,7 +3,7 @@ AC_INIT(libasn1parser/asn1p_y.y)
AC_CANONICAL_BUILD
AC_CANONICAL_TARGET
AC_PREREQ(2.53)
AM_INIT_AUTOMAKE(asn1c, 0.9.7)
AM_INIT_AUTOMAKE(asn1c, 0.9.7
.2
)
AM_MAINTAINER_MODE
...
...
libasn1fix/asn1fix_constr.c
View file @
144db9ba
...
...
@@ -302,8 +302,10 @@ asn1f_fix_constr_autotag(arg_t *arg) {
TQ_FOR
(
v
,
&
(
expr
->
members
),
next
)
{
int
must_explicit
;
if
(
v
->
expr_type
==
A1TC_EXTENSIBLE
)
break
;
if
(
v
->
expr_type
==
A1TC_EXTENSIBLE
)
{
/* 28.5, d) */
continue
;
}
if
(
0
)
{
/* This may be not true in case COMPONENTS OF */
...
...
libasn1parser/asn1p_y.c
View file @
144db9ba
This source diff could not be displayed because it is too large. You can
view the blob
instead.
libasn1parser/asn1p_y.y
View file @
144db9ba
...
...
@@ -76,7 +76,7 @@ static asn1p_value_t *
asn1p_paramlist_t *a_plist; /* A pargs list */
struct asn1p_expr_marker_s a_marker; /* OPTIONAL/DEFAULT */
enum asn1p_constr_pres_e a_pres; /* PRESENT/ABSENT/OPTIONAL */
asn1_integer_t a_int;
asn1
c
_integer_t a_int;
char *tv_str;
struct {
char *buf;
...
...
@@ -239,6 +239,7 @@ static asn1p_value_t *
%type <a_value> Value
%type <a_value> DefinedValue
%type <a_value> SignedNumber
%type <a_expr> optComponentTypeLists
%type <a_expr> ComponentTypeLists
%type <a_expr> ComponentType
%type <a_expr> AlternativeTypeLists
...
...
@@ -618,6 +619,12 @@ ImportsElement:
$$->Identifier = $1;
$$->expr_type = A1TC_REFERENCE;
}
| TypeRefName '{' '}' { /* Completely equivalent to above */
$$ = asn1p_expr_new(yylineno);
checkmem($$);
$$->Identifier = $1;
$$->expr_type = A1TC_REFERENCE;
}
| Identifier {
$$ = asn1p_expr_new(yylineno);
checkmem($$);
...
...
@@ -659,6 +666,12 @@ ExportsElement:
$$->Identifier = $1;
$$->expr_type = A1TC_EXPORTVAR;
}
| TypeRefName '{' '}' {
$$ = asn1p_expr_new(yylineno);
checkmem($$);
$$->Identifier = $1;
$$->expr_type = A1TC_EXPORTVAR;
}
| Identifier {
$$ = asn1p_expr_new(yylineno);
checkmem($$);
...
...
@@ -841,6 +854,10 @@ ActualParameter:
/*
* A collection of constructed data type members.
*/
optComponentTypeLists:
{ $$ = asn1p_expr_new(yylineno); }
| ComponentTypeLists { $$ = $1; };
ComponentTypeLists:
ComponentType {
$$ = asn1p_expr_new(yylineno);
...
...
@@ -1065,13 +1082,13 @@ TypeDeclaration:
$$->expr_type = ASN_CONSTR_CHOICE;
$$->meta_type = AMT_TYPE;
}
| TOK_SEQUENCE '{' ComponentTypeLists '}' {
| TOK_SEQUENCE '{'
opt
ComponentTypeLists '}' {
$$ = $3;
assert($$->expr_type == A1TC_INVALID);
$$->expr_type = ASN_CONSTR_SEQUENCE;
$$->meta_type = AMT_TYPE;
}
| TOK_SET '{' ComponentTypeLists '}' {
| TOK_SET '{'
opt
ComponentTypeLists '}' {
$$ = $3;
assert($$->expr_type == A1TC_INVALID);
$$->expr_type = ASN_CONSTR_SET;
...
...
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