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
fb857fdd
Commit
fb857fdd
authored
Jan 17, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added CHOICE tag
parent
b7bfd1a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
tests/59-choice-extended-OK.asn1
tests/59-choice-extended-OK.asn1
+1
-1
tests/59-choice-extended-OK.asn1.-P
tests/59-choice-extended-OK.asn1.-P
+13
-8
No files found.
tests/59-choice-extended-OK.asn1
View file @
fb857fdd
...
...
@@ -11,7 +11,7 @@ ModuleTestExtensibleChoice
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
Choice ::= CHOICE {
Choice ::=
[123]
CHOICE {
a INTEGER,
...,
b INTEGER,
...
...
tests/59-choice-extended-OK.asn1.-P
View file @
fb857fdd
...
...
@@ -44,24 +44,27 @@ static asn_TYPE_member_t asn_MBR_Choice[] = {
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "a"
},
{ ATF_NOFLAGS, 0, offsetof(struct Choice, choice.b),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "b"
},
{ ATF_POINTER, 0, offsetof(struct Choice, choice.c),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode =
+1, /* EX
PLICIT tag at current level */
.tag_mode =
-1, /* IM
PLICIT tag at current level */
.type = (void *)&asn_DEF_Choice,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "c"
},
};
static ber_tlv_tag_t asn_DEF_Choice_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (123 << 2))
};
static asn_TYPE_tag2member_t asn_DEF_Choice_tag2el[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a at 15 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* b at 17 */
...
...
@@ -87,10 +90,12 @@ asn_TYPE_descriptor_t asn_DEF_Choice = {
CHOICE_decode_xer,
CHOICE_encode_xer,
CHOICE_outmost_tag,
0, /* No effective tags (pointer) */
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (count) */
asn_DEF_Choice_tags,
sizeof(asn_DEF_Choice_tags)
/sizeof(asn_DEF_Choice_tags[0]), /* 1 */
asn_DEF_Choice_tags, /* Same as above */
sizeof(asn_DEF_Choice_tags)
/sizeof(asn_DEF_Choice_tags[0]), /* 1 */
asn_MBR_Choice,
3, /* Elements count */
&asn_DEF_Choice_specs /* Additional specs */
...
...
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