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
3645c1c1
Commit
3645c1c1
authored
Oct 31, 2004
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed order dependency in DEFAULT references
parent
78269183
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
1 deletion
+44
-1
ChangeLog
ChangeLog
+3
-1
libasn1fix/asn1fix.c
libasn1fix/asn1fix.c
+6
-0
libasn1fix/asn1fix_derefv.c
libasn1fix/asn1fix_derefv.c
+12
-0
libasn1fix/asn1fix_derefv.h
libasn1fix/asn1fix_derefv.h
+2
-0
tests/68-enum-default-OK.asn1
tests/68-enum-default-OK.asn1
+21
-0
No files found.
ChangeLog
View file @
3645c1c1
0.9.8: 2004-Oct-
26
0.9.8: 2004-Oct-
30
* [NEW PLATFORM] Compiled and tested on Linux @ alpha64 (LP64).
* [NEW PLATFORM] Compiled and tested on Linux @ alpha64 (LP64).
Some code needed to be fixed regarding int-long conversions
Some code needed to be fixed regarding int-long conversions
...
@@ -13,6 +13,8 @@
...
@@ -13,6 +13,8 @@
* Empty SEQUENCE and SET clauses are now allowed.
* Empty SEQUENCE and SET clauses are now allowed.
* Removed confusion between &xNN; and &#xNN; in enber and unber.
* Removed confusion between &xNN; and &#xNN; in enber and unber.
* ber_dec_rval_t renamed into asn_dec_rval_t: more generality.
* ber_dec_rval_t renamed into asn_dec_rval_t: more generality.
* Removed order dependency in DEFAULT references to ENUMERATED
identifiers (./tests/68-*-OK.asn1).
0.9.7.1: 2004-Oct-12
0.9.7.1: 2004-Oct-12
...
...
libasn1fix/asn1fix.c
View file @
3645c1c1
...
@@ -261,6 +261,12 @@ asn1f_fix_module__phase_2(arg_t *arg) {
...
@@ -261,6 +261,12 @@ asn1f_fix_module__phase_2(arg_t *arg) {
/* Do not process the parametrized types here */
/* Do not process the parametrized types here */
continue
;
continue
;
/*
* Dereference DEFAULT values.
*/
ret
=
asn1f_recurse_expr
(
arg
,
asn1f_fix_dereference_defaults
);
RET2RVAL
(
ret
,
rvalue
);
/*
/*
* Check semantic validity of constraints.
* Check semantic validity of constraints.
*/
*/
...
...
libasn1fix/asn1fix_derefv.c
View file @
3645c1c1
...
@@ -15,6 +15,18 @@ asn1f_fix_dereference_values(arg_t *arg) {
...
@@ -15,6 +15,18 @@ asn1f_fix_dereference_values(arg_t *arg) {
}
}
}
}
return
r_value
;
}
/*
* Dereference DEFAULT values
*/
int
asn1f_fix_dereference_defaults
(
arg_t
*
arg
)
{
asn1p_expr_t
*
expr
=
arg
->
expr
;
int
r_value
=
0
;
if
(
expr
->
marker
.
default_value
)
{
if
(
expr
->
marker
.
default_value
)
{
arg_t
tmparg
=
*
arg
;
arg_t
tmparg
=
*
arg
;
asn1p_expr_t
tmpexpr
=
*
expr
;
asn1p_expr_t
tmpexpr
=
*
expr
;
...
...
libasn1fix/asn1fix_derefv.h
View file @
3645c1c1
...
@@ -3,4 +3,6 @@
...
@@ -3,4 +3,6 @@
int
asn1f_fix_dereference_values
(
arg_t
*
);
int
asn1f_fix_dereference_values
(
arg_t
*
);
int
asn1f_fix_dereference_defaults
(
arg_t
*
);
#endif
/* _ASN1FIX_DEREFV_H_ */
#endif
/* _ASN1FIX_DEREFV_H_ */
tests/68-enum-default-OK.asn1
0 → 100644
View file @
3645c1c1
-- OK: Everything is Fine
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
-- .spelio.software.asn1c.test (9363.1.5.1)
-- .68
ModuleTestEnumeratedDefault
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 68 }
DEFINITIONS ::=
BEGIN
Type ::= SEQUENCE {
reportAmount ReportAmount DEFAULT ra-default,
reportInterval INTEGER
}
ReportAmount ::= ENUMERATED { a, b, c, ra-default }
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