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
ae7bf3fb
Commit
ae7bf3fb
authored
Aug 29, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
YuanMeng was very helpful in finding these
parent
0f5c5cfc
Changes
26
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
249 additions
and
249 deletions
+249
-249
libasn1compiler/asn1c_C.c
libasn1compiler/asn1c_C.c
+1
-1
tests/19-param-OK.asn1.-P
tests/19-param-OK.asn1.-P
+8
-8
tests/30-set-OK.asn1.-P
tests/30-set-OK.asn1.-P
+3
-3
tests/31-set-of-OK.asn1.-P
tests/31-set-of-OK.asn1.-P
+11
-11
tests/32-sequence-of-OK.asn1.-P
tests/32-sequence-of-OK.asn1.-P
+2
-2
tests/39-sequence-of-OK.asn1.-P
tests/39-sequence-of-OK.asn1.-P
+5
-5
tests/42-real-life-OK.asn1.-PR
tests/42-real-life-OK.asn1.-PR
+16
-16
tests/43-recursion-OK.asn1.-P
tests/43-recursion-OK.asn1.-P
+13
-13
tests/44-choice-in-sequence-OK.asn1.-P
tests/44-choice-in-sequence-OK.asn1.-P
+10
-10
tests/46-redefine-OK.asn1.-PR
tests/46-redefine-OK.asn1.-PR
+1
-1
tests/47-set-ext-OK.asn1.-P
tests/47-set-ext-OK.asn1.-P
+4
-4
tests/59-choice-extended-OK.asn1.-P
tests/59-choice-extended-OK.asn1.-P
+3
-3
tests/60-any-OK.asn1.-P
tests/60-any-OK.asn1.-P
+6
-6
tests/65-multi-tag-OK.asn1.-P
tests/65-multi-tag-OK.asn1.-P
+3
-3
tests/65-multi-tag-OK.asn1.-Pfnative-types
tests/65-multi-tag-OK.asn1.-Pfnative-types
+3
-3
tests/66-ref-simple-OK.asn1.-P
tests/66-ref-simple-OK.asn1.-P
+1
-1
tests/69-reserved-words-OK.asn1.-P
tests/69-reserved-words-OK.asn1.-P
+4
-4
tests/70-xer-test-OK.asn1.-P
tests/70-xer-test-OK.asn1.-P
+28
-28
tests/72-same-names-OK.asn1.-P
tests/72-same-names-OK.asn1.-P
+15
-15
tests/73-circular-OK.asn1.-P
tests/73-circular-OK.asn1.-P
+12
-12
tests/84-param-tags-OK.asn1.-P
tests/84-param-tags-OK.asn1.-P
+8
-8
tests/89-bit-string-enum-OK.asn1.-P
tests/89-bit-string-enum-OK.asn1.-P
+1
-1
tests/89-bit-string-enum-OK.asn1.-Pfcompound-names
tests/89-bit-string-enum-OK.asn1.-Pfcompound-names
+1
-1
tests/92-circular-loops-OK.asn1.-P
tests/92-circular-loops-OK.asn1.-P
+41
-41
tests/92-circular-loops-OK.asn1.-Pfindirect-choice
tests/92-circular-loops-OK.asn1.-Pfindirect-choice
+41
-41
tests/93-asn1c-controls-OK.asn1.-P
tests/93-asn1c-controls-OK.asn1.-P
+8
-8
No files found.
libasn1compiler/asn1c_C.c
View file @
ae7bf3fb
...
@@ -1686,7 +1686,7 @@ emit_member_table(arg_t *arg, asn1p_expr_t *expr) {
...
@@ -1686,7 +1686,7 @@ emit_member_table(arg_t *arg, asn1p_expr_t *expr) {
&&
expr
->
expr_type
==
ASN_BASIC_INTEGER
&&
expr
->
expr_type
==
ASN_BASIC_INTEGER
&&
expr_elements_count
(
arg
,
expr
));
&&
expr_elements_count
(
arg
,
expr
));
if
(
C99_MODE
)
OUT
(
".type = "
);
if
(
C99_MODE
)
OUT
(
".type = "
);
OUT
(
"
(void *)
&asn_DEF_"
);
OUT
(
"&asn_DEF_"
);
if
(
complex_contents
)
{
if
(
complex_contents
)
{
OUT
(
"%s"
,
MKID
(
expr
->
Identifier
));
OUT
(
"%s"
,
MKID
(
expr
->
Identifier
));
if
(
!
(
arg
->
flags
&
A1C_ALL_DEFS_GLOBAL
))
if
(
!
(
arg
->
flags
&
A1C_ALL_DEFS_GLOBAL
))
...
...
tests/19-param-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -69,21 +69,21 @@ static asn_TYPE_member_t asn_MBR_toBeSigned_2[] = {
...
@@ -69,21 +69,21 @@ static asn_TYPE_member_t asn_MBR_toBeSigned_2[] = {
{ ATF_NOFLAGS, 0, offsetof(struct toBeSigned, version),
{ ATF_NOFLAGS, 0, offsetof(struct toBeSigned, version),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "version"
.name = "version"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct toBeSigned, signature),
{ ATF_NOFLAGS, 0, offsetof(struct toBeSigned, signature),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_OBJECT_IDENTIFIER,
.type = &asn_DEF_OBJECT_IDENTIFIER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "signature"
.name = "signature"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct toBeSigned, issuer),
{ ATF_NOFLAGS, 0, offsetof(struct toBeSigned, issuer),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Name,
.type = &asn_DEF_Name,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "issuer"
.name = "issuer"
},
},
...
@@ -131,21 +131,21 @@ static asn_TYPE_member_t asn_MBR_Certificate_1[] = {
...
@@ -131,21 +131,21 @@ static asn_TYPE_member_t asn_MBR_Certificate_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Certificate, toBeSigned),
{ ATF_NOFLAGS, 0, offsetof(struct Certificate, toBeSigned),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_toBeSigned_2,
.type = &asn_DEF_toBeSigned_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "toBeSigned"
.name = "toBeSigned"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Certificate, algorithm),
{ ATF_NOFLAGS, 0, offsetof(struct Certificate, algorithm),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_OBJECT_IDENTIFIER,
.type = &asn_DEF_OBJECT_IDENTIFIER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "algorithm"
.name = "algorithm"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Certificate, signature),
{ ATF_NOFLAGS, 0, offsetof(struct Certificate, signature),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_BIT_STRING,
.type = &asn_DEF_BIT_STRING,
.memb_constraints = memb_signature_1_constraint,
.memb_constraints = memb_signature_1_constraint,
.name = "signature"
.name = "signature"
},
},
...
@@ -221,7 +221,7 @@ static asn_TYPE_member_t asn_MBR_Name_1[] = {
...
@@ -221,7 +221,7 @@ static asn_TYPE_member_t asn_MBR_Name_1[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_RelativeDistinguishedName,
.type = &asn_DEF_RelativeDistinguishedName,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -337,7 +337,7 @@ static asn_TYPE_member_t asn_MBR_RelativeDistinguishedName_1[] = {
...
@@ -337,7 +337,7 @@ static asn_TYPE_member_t asn_MBR_RelativeDistinguishedName_1[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_IA5String,
.type = &asn_DEF_IA5String,
.memb_constraints = memb_IA5String_1_constraint,
.memb_constraints = memb_IA5String_1_constraint,
.name = ""
.name = ""
},
},
...
...
tests/30-set-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -47,21 +47,21 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
...
@@ -47,21 +47,21 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T, i),
{ ATF_NOFLAGS, 0, offsetof(struct T, i),
.tag = (ASN_TAG_CLASS_APPLICATION | (3 << 2)),
.tag = (ASN_TAG_CLASS_APPLICATION | (3 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "i"
.name = "i"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct T, s),
{ ATF_NOFLAGS, 0, offsetof(struct T, s),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_IA5String,
.type = &asn_DEF_IA5String,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "s"
.name = "s"
},
},
{ ATF_POINTER, 1, offsetof(struct T, b),
{ ATF_POINTER, 1, offsetof(struct T, b),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_BOOLEAN,
.type = &asn_DEF_BOOLEAN,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "b"
.name = "b"
},
},
...
...
tests/31-set-of-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -31,7 +31,7 @@ static asn_TYPE_member_t asn_MBR_Forest_1[] = {
...
@@ -31,7 +31,7 @@ static asn_TYPE_member_t asn_MBR_Forest_1[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Tree,
.type = &asn_DEF_Tree,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -92,14 +92,14 @@ static asn_TYPE_member_t asn_MBR_Tree_1[] = {
...
@@ -92,14 +92,14 @@ static asn_TYPE_member_t asn_MBR_Tree_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Tree, height),
{ ATF_NOFLAGS, 0, offsetof(struct Tree, height),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "height"
.name = "height"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Tree, width),
{ ATF_NOFLAGS, 0, offsetof(struct Tree, width),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "width"
.name = "width"
},
},
...
@@ -234,7 +234,7 @@ static asn_TYPE_member_t asn_MBR_trees_2[] = {
...
@@ -234,7 +234,7 @@ static asn_TYPE_member_t asn_MBR_trees_2[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Forest,
.type = &asn_DEF_Forest,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -275,7 +275,7 @@ static asn_TYPE_member_t asn_MBR_Member_5[] = {
...
@@ -275,7 +275,7 @@ static asn_TYPE_member_t asn_MBR_Member_5[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Member, cup_of_coffee),
{ ATF_NOFLAGS, 0, offsetof(struct Member, cup_of_coffee),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_BIT_STRING,
.type = &asn_DEF_BIT_STRING,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "cup-of-coffee"
.name = "cup-of-coffee"
},
},
...
@@ -321,7 +321,7 @@ static asn_TYPE_member_t asn_MBR_anything_4[] = {
...
@@ -321,7 +321,7 @@ static asn_TYPE_member_t asn_MBR_anything_4[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Member_5,
.type = &asn_DEF_Member_5,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -362,14 +362,14 @@ static asn_TYPE_member_t asn_MBR_other_9[] = {
...
@@ -362,14 +362,14 @@ static asn_TYPE_member_t asn_MBR_other_9[] = {
{ ATF_NOFLAGS, 0, offsetof(struct other, choice.a),
{ ATF_NOFLAGS, 0, offsetof(struct other, choice.a),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "a"
.name = "a"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct other, choice.b),
{ ATF_NOFLAGS, 0, offsetof(struct other, choice.b),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "b"
.name = "b"
},
},
...
@@ -412,21 +412,21 @@ static asn_TYPE_member_t asn_MBR_Stuff_1[] = {
...
@@ -412,21 +412,21 @@ static asn_TYPE_member_t asn_MBR_Stuff_1[] = {
{ ATF_POINTER, 3, offsetof(struct Stuff, trees),
{ ATF_POINTER, 3, offsetof(struct Stuff, trees),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_trees_2,
.type = &asn_DEF_trees_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "trees"
.name = "trees"
},
},
{ ATF_POINTER, 2, offsetof(struct Stuff, anything),
{ ATF_POINTER, 2, offsetof(struct Stuff, anything),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_anything_4,
.type = &asn_DEF_anything_4,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "anything"
.name = "anything"
},
},
{ ATF_POINTER, 1, offsetof(struct Stuff, other),
{ ATF_POINTER, 1, offsetof(struct Stuff, other),
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_other_9,
.type = &asn_DEF_other_9,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "other"
.name = "other"
},
},
...
...
tests/32-sequence-of-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -31,7 +31,7 @@ static asn_TYPE_member_t asn_MBR_Programming_1[] = {
...
@@ -31,7 +31,7 @@ static asn_TYPE_member_t asn_MBR_Programming_1[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_Fault,
.type = &asn_DEF_Fault,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -99,7 +99,7 @@ static asn_TYPE_member_t asn_MBR_Fault_1[] = {
...
@@ -99,7 +99,7 @@ static asn_TYPE_member_t asn_MBR_Fault_1[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Error,
.type = &asn_DEF_Error,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
...
tests/39-sequence-of-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -39,7 +39,7 @@ static asn_TYPE_member_t asn_MBR_collection_3[] = {
...
@@ -39,7 +39,7 @@ static asn_TYPE_member_t asn_MBR_collection_3[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_T2,
.type = &asn_DEF_T2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -79,14 +79,14 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
...
@@ -79,14 +79,14 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T, Int),
{ ATF_NOFLAGS, 0, offsetof(struct T, Int),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "int"
.name = "int"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct T, collection),
{ ATF_NOFLAGS, 0, offsetof(struct T, collection),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_collection_3,
.type = &asn_DEF_collection_3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "collection"
.name = "collection"
},
},
...
@@ -155,14 +155,14 @@ static asn_TYPE_member_t asn_MBR_T2_1[] = {
...
@@ -155,14 +155,14 @@ static asn_TYPE_member_t asn_MBR_T2_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T2, flag),
{ ATF_NOFLAGS, 0, offsetof(struct T2, flag),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_BOOLEAN,
.type = &asn_DEF_BOOLEAN,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "flag"
.name = "flag"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct T2, str),
{ ATF_NOFLAGS, 0, offsetof(struct T2, str),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_UTF8String,
.type = &asn_DEF_UTF8String,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "str"
.name = "str"
},
},
...
...
tests/42-real-life-OK.asn1.-PR
View file @
ae7bf3fb
...
@@ -72,7 +72,7 @@ static asn_TYPE_member_t asn_MBR_varsets_3[] = {
...
@@ -72,7 +72,7 @@ static asn_TYPE_member_t asn_MBR_varsets_3[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_VariablePartSet,
.type = &asn_DEF_VariablePartSet,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -112,14 +112,14 @@ static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
...
@@ -112,14 +112,14 @@ static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct LogLine, line_digest),
{ ATF_NOFLAGS, 0, offsetof(struct LogLine, line_digest),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_IA5String,
.type = &asn_DEF_IA5String,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "line-digest"
.name = "line-digest"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets),
{ ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_varsets_3,
.type = &asn_DEF_varsets_3,
.memb_constraints = memb_varsets_1_constraint,
.memb_constraints = memb_varsets_1_constraint,
.name = "varsets"
.name = "varsets"
},
},
...
@@ -228,7 +228,7 @@ static asn_TYPE_member_t asn_MBR_vparts_2[] = {
...
@@ -228,7 +228,7 @@ static asn_TYPE_member_t asn_MBR_vparts_2[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_VariablePart,
.type = &asn_DEF_VariablePart,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -268,14 +268,14 @@ static asn_TYPE_member_t asn_MBR_VariablePartSet_1[] = {
...
@@ -268,14 +268,14 @@ static asn_TYPE_member_t asn_MBR_VariablePartSet_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, vparts),
{ ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, vparts),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_vparts_2,
.type = &asn_DEF_vparts_2,
.memb_constraints = memb_vparts_1_constraint,
.memb_constraints = memb_vparts_1_constraint,
.name = "vparts"
.name = "vparts"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, resolution),
{ ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, resolution),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_ActionItem,
.type = &asn_DEF_ActionItem,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "resolution"
.name = "resolution"
},
},
...
@@ -406,7 +406,7 @@ static asn_TYPE_member_t asn_MBR_vset_2[] = {
...
@@ -406,7 +406,7 @@ static asn_TYPE_member_t asn_MBR_vset_2[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_VisibleString,
.type = &asn_DEF_VisibleString,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -446,14 +446,14 @@ static asn_TYPE_member_t asn_MBR_vrange_4[] = {
...
@@ -446,14 +446,14 @@ static asn_TYPE_member_t asn_MBR_vrange_4[] = {
{ ATF_NOFLAGS, 0, offsetof(struct vrange, from),
{ ATF_NOFLAGS, 0, offsetof(struct vrange, from),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_VisibleString,
.type = &asn_DEF_VisibleString,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "from"
.name = "from"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct vrange, to),
{ ATF_NOFLAGS, 0, offsetof(struct vrange, to),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_VisibleString,
.type = &asn_DEF_VisibleString,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "to"
.name = "to"
},
},
...
@@ -500,14 +500,14 @@ static asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
...
@@ -500,14 +500,14 @@ static asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vset),
{ ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vset),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_vset_2,
.type = &asn_DEF_vset_2,
.memb_constraints = memb_vset_1_constraint,
.memb_constraints = memb_vset_1_constraint,
.name = "vset"
.name = "vset"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange),
{ ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_vrange_4,
.type = &asn_DEF_vrange_4,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "vrange"
.name = "vrange"
},
},
...
@@ -722,7 +722,7 @@ static asn_TYPE_member_t asn_MBR_email_9[] = {
...
@@ -722,7 +722,7 @@ static asn_TYPE_member_t asn_MBR_email_9[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_VisibleString,
.type = &asn_DEF_VisibleString,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -762,14 +762,14 @@ static asn_TYPE_member_t asn_MBR_notify_7[] = {
...
@@ -762,14 +762,14 @@ static asn_TYPE_member_t asn_MBR_notify_7[] = {
{ ATF_NOFLAGS, 0, offsetof(struct notify, critical),
{ ATF_NOFLAGS, 0, offsetof(struct notify, critical),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_BOOLEAN,
.type = &asn_DEF_BOOLEAN,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "critical"
.name = "critical"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct notify, email),
{ ATF_NOFLAGS, 0, offsetof(struct notify, email),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_email_9,
.type = &asn_DEF_email_9,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "email"
.name = "email"
},
},
...
@@ -816,14 +816,14 @@ static asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
...
@@ -816,14 +816,14 @@ static asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct ActionItem, accept_as),
{ ATF_NOFLAGS, 0, offsetof(struct ActionItem, accept_as),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_accept_as_2,
.type = &asn_DEF_accept_as_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "accept-as"
.name = "accept-as"
},
},
{ ATF_POINTER, 1, offsetof(struct ActionItem, notify),
{ ATF_POINTER, 1, offsetof(struct ActionItem, notify),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_notify_7,
.type = &asn_DEF_notify_7,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "notify"
.name = "notify"
},
},
...
...
tests/43-recursion-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -48,7 +48,7 @@ static asn_TYPE_member_t asn_MBR_t_member1_2[] = {
...
@@ -48,7 +48,7 @@ static asn_TYPE_member_t asn_MBR_t_member1_2[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Test_structure_1,
.type = &asn_DEF_Test_structure_1,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -88,7 +88,7 @@ static asn_TYPE_member_t asn_MBR_t_member2_4[] = {
...
@@ -88,7 +88,7 @@ static asn_TYPE_member_t asn_MBR_t_member2_4[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Test_structure_1,
.type = &asn_DEF_Test_structure_1,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -128,28 +128,28 @@ static asn_TYPE_member_t asn_MBR_Test_structure_1_1[] = {
...
@@ -128,28 +128,28 @@ static asn_TYPE_member_t asn_MBR_Test_structure_1_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member1),
{ ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member1),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_t_member1_2,
.type = &asn_DEF_t_member1_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "t-member1"
.name = "t-member1"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member2),
{ ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member2),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_t_member2_4,
.type = &asn_DEF_t_member2_4,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "t-member2"
.name = "t-member2"
},
},
{ ATF_POINTER, 1, offsetof(struct Test_structure_1, t_member3),
{ ATF_POINTER, 1, offsetof(struct Test_structure_1, t_member3),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Test_structure_1,
.type = &asn_DEF_Test_structure_1,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "t-member3"
.name = "t-member3"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member4),
{ ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member4),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "t-member4"
.name = "t-member4"
},
},
...
@@ -249,7 +249,7 @@ static asn_TYPE_member_t asn_MBR_or_3[] = {
...
@@ -249,7 +249,7 @@ static asn_TYPE_member_t asn_MBR_or_3[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Choice_1,
.type = &asn_DEF_Choice_1,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -290,28 +290,28 @@ static asn_TYPE_member_t asn_MBR_Choice_1_1[] = {
...
@@ -290,28 +290,28 @@ static asn_TYPE_member_t asn_MBR_Choice_1_1[] = {
{ ATF_POINTER, 0, offsetof(struct Choice_1, choice.and),
{ ATF_POINTER, 0, offsetof(struct Choice_1, choice.and),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type =
(void *)
&asn_DEF_Choice_1,
.type = &asn_DEF_Choice_1,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "and"
.name = "and"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.or),
{ ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.or),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_or_3,
.type = &asn_DEF_or_3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "or"
.name = "or"
},
},
{ ATF_POINTER, 0, offsetof(struct Choice_1, choice.not),
{ ATF_POINTER, 0, offsetof(struct Choice_1, choice.not),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type =
(void *)
&asn_DEF_Choice_1,
.type = &asn_DEF_Choice_1,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "not"
.name = "not"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.other),
{ ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.other),
.tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "other"
.name = "other"
},
},
...
@@ -397,7 +397,7 @@ static asn_TYPE_member_t asn_MBR_Test_structure_2_1[] = {
...
@@ -397,7 +397,7 @@ static asn_TYPE_member_t asn_MBR_Test_structure_2_1[] = {
{ ATF_POINTER, 1, offsetof(struct Test_structure_2, m1),
{ ATF_POINTER, 1, offsetof(struct Test_structure_2, m1),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Test_structure_3,
.type = &asn_DEF_Test_structure_3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "m1"
.name = "m1"
},
},
...
@@ -490,7 +490,7 @@ static asn_TYPE_member_t asn_MBR_Test_structure_3_1[] = {
...
@@ -490,7 +490,7 @@ static asn_TYPE_member_t asn_MBR_Test_structure_3_1[] = {
{ ATF_POINTER, 1, offsetof(struct Test_structure_3, m1),
{ ATF_POINTER, 1, offsetof(struct Test_structure_3, m1),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Test_structure_2,
.type = &asn_DEF_Test_structure_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "m1"
.name = "m1"
},
},
...
...
tests/44-choice-in-sequence-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -74,14 +74,14 @@ static asn_TYPE_member_t asn_MBR_e_6[] = {
...
@@ -74,14 +74,14 @@ static asn_TYPE_member_t asn_MBR_e_6[] = {
{ ATF_NOFLAGS, 0, offsetof(struct e, choice.f),
{ ATF_NOFLAGS, 0, offsetof(struct e, choice.f),
.tag = (ASN_TAG_CLASS_PRIVATE | (7 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (7 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_NULL,
.type = &asn_DEF_NULL,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "f"
.name = "f"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct e, choice.g),
{ ATF_NOFLAGS, 0, offsetof(struct e, choice.g),
.tag = (ASN_TAG_CLASS_PRIVATE | (8 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (8 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_NULL,
.type = &asn_DEF_NULL,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "g"
.name = "g"
},
},
...
@@ -124,14 +124,14 @@ static asn_TYPE_member_t asn_MBR_h_9[] = {
...
@@ -124,14 +124,14 @@ static asn_TYPE_member_t asn_MBR_h_9[] = {
{ ATF_NOFLAGS, 0, offsetof(struct h, choice.i),
{ ATF_NOFLAGS, 0, offsetof(struct h, choice.i),
.tag = (ASN_TAG_CLASS_PRIVATE | (1 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_NULL,
.type = &asn_DEF_NULL,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "i"
.name = "i"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct h, choice.j),
{ ATF_NOFLAGS, 0, offsetof(struct h, choice.j),
.tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_NULL,
.type = &asn_DEF_NULL,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "j"
.name = "j"
},
},
...
@@ -174,28 +174,28 @@ static asn_TYPE_member_t asn_MBR_b_3[] = {
...
@@ -174,28 +174,28 @@ static asn_TYPE_member_t asn_MBR_b_3[] = {
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.c),
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.c),
.tag = (ASN_TAG_CLASS_PRIVATE | (5 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (5 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_NULL,
.type = &asn_DEF_NULL,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "c"
.name = "c"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.d),
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.d),
.tag = (ASN_TAG_CLASS_PRIVATE | (6 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (6 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_NULL,
.type = &asn_DEF_NULL,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "d"
.name = "d"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.e),
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.e),
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_e_6,
.type = &asn_DEF_e_6,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "e"
.name = "e"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.h),
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.h),
.tag = (ASN_TAG_CLASS_PRIVATE | (9 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (9 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type =
(void *)
&asn_DEF_h_9,
.type = &asn_DEF_h_9,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "h"
.name = "h"
},
},
...
@@ -241,14 +241,14 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
...
@@ -241,14 +241,14 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T, a),
{ ATF_NOFLAGS, 0, offsetof(struct T, a),
.tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_NULL,
.type = &asn_DEF_NULL,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "a"
.name = "a"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct T, b),
{ ATF_NOFLAGS, 0, offsetof(struct T, b),
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_b_3,
.type = &asn_DEF_b_3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "b"
.name = "b"
},
},
...
...
tests/46-redefine-OK.asn1.-PR
View file @
ae7bf3fb
...
@@ -141,7 +141,7 @@ static asn_TYPE_member_t asn_MBR_ConstructedType_1[] = {
...
@@ -141,7 +141,7 @@ static asn_TYPE_member_t asn_MBR_ConstructedType_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct ConstructedType, field),
{ ATF_NOFLAGS, 0, offsetof(struct ConstructedType, field),
.tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_PrimitiveType,
.type = &asn_DEF_PrimitiveType,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "field"
.name = "field"
},
},
...
...
tests/47-set-ext-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -41,7 +41,7 @@ static asn_TYPE_member_t asn_MBR_T1_1[] = {
...
@@ -41,7 +41,7 @@ static asn_TYPE_member_t asn_MBR_T1_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T1, i),
{ ATF_NOFLAGS, 0, offsetof(struct T1, i),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "i"
.name = "i"
},
},
...
@@ -131,7 +131,7 @@ static asn_TYPE_member_t asn_MBR_T2_1[] = {
...
@@ -131,7 +131,7 @@ static asn_TYPE_member_t asn_MBR_T2_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T2, i),
{ ATF_NOFLAGS, 0, offsetof(struct T2, i),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "i"
.name = "i"
},
},
...
@@ -218,7 +218,7 @@ static asn_TYPE_member_t asn_MBR_T3_1[] = {
...
@@ -218,7 +218,7 @@ static asn_TYPE_member_t asn_MBR_T3_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T3, choice.i),
{ ATF_NOFLAGS, 0, offsetof(struct T3, choice.i),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "i"
.name = "i"
},
},
...
@@ -295,7 +295,7 @@ static asn_TYPE_member_t asn_MBR_T4_1[] = {
...
@@ -295,7 +295,7 @@ static asn_TYPE_member_t asn_MBR_T4_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T4, choice.i),
{ ATF_NOFLAGS, 0, offsetof(struct T4, choice.i),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "i"
.name = "i"
},
},
...
...
tests/59-choice-extended-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -50,21 +50,21 @@ static asn_TYPE_member_t asn_MBR_Choice_1[] = {
...
@@ -50,21 +50,21 @@ static asn_TYPE_member_t asn_MBR_Choice_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Choice, choice.a),
{ ATF_NOFLAGS, 0, offsetof(struct Choice, choice.a),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "a"
.name = "a"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Choice, choice.b),
{ ATF_NOFLAGS, 0, offsetof(struct Choice, choice.b),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "b"
.name = "b"
},
},
{ ATF_POINTER, 0, offsetof(struct Choice, choice.c),
{ ATF_POINTER, 0, offsetof(struct Choice, choice.c),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_Choice,
.type = &asn_DEF_Choice,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "c"
.name = "c"
},
},
...
...
tests/60-any-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -25,14 +25,14 @@ static asn_TYPE_member_t asn_MBR_T1_1[] = {
...
@@ -25,14 +25,14 @@ static asn_TYPE_member_t asn_MBR_T1_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T1, i),
{ ATF_NOFLAGS, 0, offsetof(struct T1, i),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "i"
.name = "i"
},
},
{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct T1, any),
{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct T1, any),
.tag = -1 /* Ambiguous tag (ANY?) */,
.tag = -1 /* Ambiguous tag (ANY?) */,
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_ANY,
.type = &asn_DEF_ANY,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "any"
.name = "any"
},
},
...
@@ -100,14 +100,14 @@ static asn_TYPE_member_t asn_MBR_T2_1[] = {
...
@@ -100,14 +100,14 @@ static asn_TYPE_member_t asn_MBR_T2_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T2, i),
{ ATF_NOFLAGS, 0, offsetof(struct T2, i),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "i"
.name = "i"
},
},
{ ATF_POINTER, 1, offsetof(struct T2, any),
{ ATF_POINTER, 1, offsetof(struct T2, any),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type =
(void *)
&asn_DEF_ANY,
.type = &asn_DEF_ANY,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "any"
.name = "any"
},
},
...
@@ -175,14 +175,14 @@ static asn_TYPE_member_t asn_MBR_T3_1[] = {
...
@@ -175,14 +175,14 @@ static asn_TYPE_member_t asn_MBR_T3_1[] = {
{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct T3, any1),
{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct T3, any1),
.tag = -1 /* Ambiguous tag (ANY?) */,
.tag = -1 /* Ambiguous tag (ANY?) */,
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_ANY,
.type = &asn_DEF_ANY,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "any1"
.name = "any1"
},
},
{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct T3, any2),
{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct T3, any2),
.tag = -1 /* Ambiguous tag (ANY?) */,
.tag = -1 /* Ambiguous tag (ANY?) */,
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_ANY,
.type = &asn_DEF_ANY,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "any2"
.name = "any2"
},
},
...
...
tests/65-multi-tag-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -884,21 +884,21 @@ static asn_TYPE_member_t asn_MBR_Ts_1[] = {
...
@@ -884,21 +884,21 @@ static asn_TYPE_member_t asn_MBR_Ts_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Ts, m1),
{ ATF_NOFLAGS, 0, offsetof(struct Ts, m1),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_T2,
.type = &asn_DEF_T2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "m1"
.name = "m1"
},
},
{ ATF_POINTER, 1, offsetof(struct Ts, m2),
{ ATF_POINTER, 1, offsetof(struct Ts, m2),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type =
(void *)
&asn_DEF_T3,
.type = &asn_DEF_T3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "m2"
.name = "m2"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Ts, m3),
{ ATF_NOFLAGS, 0, offsetof(struct Ts, m3),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_T3,
.type = &asn_DEF_T3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "m3"
.name = "m3"
},
},
...
...
tests/65-multi-tag-OK.asn1.-Pfnative-types
View file @
ae7bf3fb
...
@@ -884,21 +884,21 @@ static asn_TYPE_member_t asn_MBR_Ts_1[] = {
...
@@ -884,21 +884,21 @@ static asn_TYPE_member_t asn_MBR_Ts_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Ts, m1),
{ ATF_NOFLAGS, 0, offsetof(struct Ts, m1),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_T2,
.type = &asn_DEF_T2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "m1"
.name = "m1"
},
},
{ ATF_POINTER, 1, offsetof(struct Ts, m2),
{ ATF_POINTER, 1, offsetof(struct Ts, m2),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type =
(void *)
&asn_DEF_T3,
.type = &asn_DEF_T3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "m2"
.name = "m2"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Ts, m3),
{ ATF_NOFLAGS, 0, offsetof(struct Ts, m3),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_T3,
.type = &asn_DEF_T3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "m3"
.name = "m3"
},
},
...
...
tests/66-ref-simple-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -24,7 +24,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
...
@@ -24,7 +24,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_SimpleType,
.type = &asn_DEF_SimpleType,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "named"
.name = "named"
},
},
...
...
tests/69-reserved-words-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -118,28 +118,28 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
...
@@ -118,28 +118,28 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T, Int),
{ ATF_NOFLAGS, 0, offsetof(struct T, Int),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "int"
.name = "int"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct T, Char),
{ ATF_NOFLAGS, 0, offsetof(struct T, Char),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_OCTET_STRING,
.type = &asn_DEF_OCTET_STRING,
.memb_constraints = memb_char_1_constraint,
.memb_constraints = memb_char_1_constraint,
.name = "char"
.name = "char"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct T, Class),
{ ATF_NOFLAGS, 0, offsetof(struct T, Class),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_class_4,
.type = &asn_DEF_class_4,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "class"
.name = "class"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct T, Double),
{ ATF_NOFLAGS, 0, offsetof(struct T, Double),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_REAL,
.type = &asn_DEF_REAL,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "double"
.name = "double"
},
},
...
...
tests/70-xer-test-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -65,70 +65,70 @@ static asn_TYPE_member_t asn_MBR_PDU_1[] = {
...
@@ -65,70 +65,70 @@ static asn_TYPE_member_t asn_MBR_PDU_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequence),
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequence),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_Sequence,
.type = &asn_DEF_Sequence,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "sequence"
.name = "sequence"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.set),
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.set),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_Set,
.type = &asn_DEF_Set,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "set"
.name = "set"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOf),
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOf),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_SetOf,
.type = &asn_DEF_SetOf,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "setOf"
.name = "setOf"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf),
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_SequenceOf,
.type = &asn_DEF_SequenceOf,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "sequenceOf"
.name = "sequenceOf"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet),
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet),
.tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_ExtensibleSet,
.type = &asn_DEF_ExtensibleSet,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "extensibleSet"
.name = "extensibleSet"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence),
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence),
.tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_ExtensibleSequence,
.type = &asn_DEF_ExtensibleSequence,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "extensibleSequence"
.name = "extensibleSequence"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence2),
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence2),
.tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_ExtensibleSequence2,
.type = &asn_DEF_ExtensibleSequence2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "extensibleSequence2"
.name = "extensibleSequence2"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfNULL),
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfNULL),
.tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_SetOfNULL,
.type = &asn_DEF_SetOfNULL,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "setOfNULL"
.name = "setOfNULL"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfEnums),
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfEnums),
.tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_SetOfEnums,
.type = &asn_DEF_SetOfEnums,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "setOfEnums"
.name = "setOfEnums"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.seqOfZuka),
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.seqOfZuka),
.tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_SeqOfZuka,
.type = &asn_DEF_SeqOfZuka,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "seqOfZuka"
.name = "seqOfZuka"
},
},
...
@@ -212,28 +212,28 @@ static asn_TYPE_member_t asn_MBR_Sequence_1[] = {
...
@@ -212,28 +212,28 @@ static asn_TYPE_member_t asn_MBR_Sequence_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Sequence, integer),
{ ATF_NOFLAGS, 0, offsetof(struct Sequence, integer),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "integer"
.name = "integer"
},
},
{ ATF_POINTER, 2, offsetof(struct Sequence, sequence),
{ ATF_POINTER, 2, offsetof(struct Sequence, sequence),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_Sequence,
.type = &asn_DEF_Sequence,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "sequence"
.name = "sequence"
},
},
{ ATF_POINTER, 1, offsetof(struct Sequence, bits),
{ ATF_POINTER, 1, offsetof(struct Sequence, bits),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_BIT_STRING,
.type = &asn_DEF_BIT_STRING,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "bits"
.name = "bits"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Sequence, string),
{ ATF_NOFLAGS, 0, offsetof(struct Sequence, string),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_UTF8String,
.type = &asn_DEF_UTF8String,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "string"
.name = "string"
},
},
...
@@ -319,14 +319,14 @@ static asn_TYPE_member_t asn_MBR_Set_1[] = {
...
@@ -319,14 +319,14 @@ static asn_TYPE_member_t asn_MBR_Set_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Set, roid),
{ ATF_NOFLAGS, 0, offsetof(struct Set, roid),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_RELATIVE_OID,
.type = &asn_DEF_RELATIVE_OID,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "roid"
.name = "roid"
},
},
{ ATF_POINTER, 1, offsetof(struct Set, opaque),
{ ATF_POINTER, 1, offsetof(struct Set, opaque),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_OCTET_STRING,
.type = &asn_DEF_OCTET_STRING,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "opaque"
.name = "opaque"
},
},
...
@@ -538,14 +538,14 @@ static asn_TYPE_member_t asn_MBR_ExtensibleSet_1[] = {
...
@@ -538,14 +538,14 @@ static asn_TYPE_member_t asn_MBR_ExtensibleSet_1[] = {
{ ATF_POINTER, 2, offsetof(struct ExtensibleSet, string),
{ ATF_POINTER, 2, offsetof(struct ExtensibleSet, string),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_UTF8String,
.type = &asn_DEF_UTF8String,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "string"
.name = "string"
},
},
{ ATF_POINTER, 1, offsetof(struct ExtensibleSet, Enum),
{ ATF_POINTER, 1, offsetof(struct ExtensibleSet, Enum),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_enum_4,
.type = &asn_DEF_enum_4,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "enum"
.name = "enum"
},
},
...
@@ -626,21 +626,21 @@ static asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[] = {
...
@@ -626,21 +626,21 @@ static asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[] = {
{ ATF_POINTER, 3, offsetof(struct ExtensibleSequence, string),
{ ATF_POINTER, 3, offsetof(struct ExtensibleSequence, string),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_UTF8String,
.type = &asn_DEF_UTF8String,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "string"
.name = "string"
},
},
{ ATF_POINTER, 2, offsetof(struct ExtensibleSequence, integer),
{ ATF_POINTER, 2, offsetof(struct ExtensibleSequence, integer),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "integer"
.name = "integer"
},
},
{ ATF_POINTER, 1, offsetof(struct ExtensibleSequence, gtime),
{ ATF_POINTER, 1, offsetof(struct ExtensibleSequence, gtime),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_GeneralizedTime,
.type = &asn_DEF_GeneralizedTime,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "gtime"
.name = "gtime"
},
},
...
@@ -714,14 +714,14 @@ static asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[] = {
...
@@ -714,14 +714,14 @@ static asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[] = {
{ ATF_POINTER, 2, offsetof(struct ExtensibleSequence2, string),
{ ATF_POINTER, 2, offsetof(struct ExtensibleSequence2, string),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_UTF8String,
.type = &asn_DEF_UTF8String,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "string"
.name = "string"
},
},
{ ATF_POINTER, 1, offsetof(struct ExtensibleSequence2, integer),
{ ATF_POINTER, 1, offsetof(struct ExtensibleSequence2, integer),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "integer"
.name = "integer"
},
},
...
@@ -789,7 +789,7 @@ static asn_TYPE_member_t asn_MBR_SetOf_1[] = {
...
@@ -789,7 +789,7 @@ static asn_TYPE_member_t asn_MBR_SetOf_1[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_REAL,
.type = &asn_DEF_REAL,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -850,7 +850,7 @@ static asn_TYPE_member_t asn_MBR_SetOfNULL_1[] = {
...
@@ -850,7 +850,7 @@ static asn_TYPE_member_t asn_MBR_SetOfNULL_1[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_NULL,
.type = &asn_DEF_NULL,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -1031,7 +1031,7 @@ static asn_TYPE_member_t asn_MBR_SetOfEnums_1[] = {
...
@@ -1031,7 +1031,7 @@ static asn_TYPE_member_t asn_MBR_SetOfEnums_1[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Member_2,
.type = &asn_DEF_Member_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -1092,7 +1092,7 @@ static asn_TYPE_member_t asn_MBR_SequenceOf_1[] = {
...
@@ -1092,7 +1092,7 @@ static asn_TYPE_member_t asn_MBR_SequenceOf_1[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "id"
.name = "id"
},
},
...
@@ -1153,7 +1153,7 @@ static asn_TYPE_member_t asn_MBR_SeqOfZuka_1[] = {
...
@@ -1153,7 +1153,7 @@ static asn_TYPE_member_t asn_MBR_SeqOfZuka_1[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_NULL,
.type = &asn_DEF_NULL,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "zuka"
.name = "zuka"
},
},
...
...
tests/72-same-names-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -32,14 +32,14 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = {
...
@@ -32,14 +32,14 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Member, t1),
{ ATF_NOFLAGS, 0, offsetof(struct Member, t1),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Type1,
.type = &asn_DEF_Type1,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "t1"
.name = "t1"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Member, t2),
{ ATF_NOFLAGS, 0, offsetof(struct Member, t2),
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Type2,
.type = &asn_DEF_Type2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "t2"
.name = "t2"
},
},
...
@@ -87,7 +87,7 @@ static asn_TYPE_member_t asn_MBR_Type_1[] = {
...
@@ -87,7 +87,7 @@ static asn_TYPE_member_t asn_MBR_Type_1[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Member_2,
.type = &asn_DEF_Member_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -169,14 +169,14 @@ static asn_TYPE_member_t asn_MBR_another_name_3[] = {
...
@@ -169,14 +169,14 @@ static asn_TYPE_member_t asn_MBR_another_name_3[] = {
{ ATF_NOFLAGS, 0, offsetof(struct another_name, a),
{ ATF_NOFLAGS, 0, offsetof(struct another_name, a),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "a"
.name = "a"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct another_name, b),
{ ATF_NOFLAGS, 0, offsetof(struct another_name, b),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "b"
.name = "b"
},
},
...
@@ -223,7 +223,7 @@ static asn_TYPE_member_t asn_MBR_one_name_2[] = {
...
@@ -223,7 +223,7 @@ static asn_TYPE_member_t asn_MBR_one_name_2[] = {
{ ATF_NOFLAGS, 0, offsetof(struct one_name, choice.another_name),
{ ATF_NOFLAGS, 0, offsetof(struct one_name, choice.another_name),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_another_name_3,
.type = &asn_DEF_another_name_3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "another-name"
.name = "another-name"
},
},
...
@@ -265,7 +265,7 @@ static asn_TYPE_member_t asn_MBR_Type1_1[] = {
...
@@ -265,7 +265,7 @@ static asn_TYPE_member_t asn_MBR_Type1_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Type1, one_name),
{ ATF_NOFLAGS, 0, offsetof(struct Type1, one_name),
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_one_name_2,
.type = &asn_DEF_one_name_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "one-name"
.name = "one-name"
},
},
...
@@ -450,14 +450,14 @@ static asn_TYPE_member_t asn_MBR_another_name_3[] = {
...
@@ -450,14 +450,14 @@ static asn_TYPE_member_t asn_MBR_another_name_3[] = {
{ ATF_NOFLAGS, 0, offsetof(struct another_name, a),
{ ATF_NOFLAGS, 0, offsetof(struct another_name, a),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_BIT_STRING,
.type = &asn_DEF_BIT_STRING,
.memb_constraints = memb_a_3_constraint,
.memb_constraints = memb_a_3_constraint,
.name = "a"
.name = "a"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct another_name, b),
{ ATF_NOFLAGS, 0, offsetof(struct another_name, b),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "b"
.name = "b"
},
},
...
@@ -504,7 +504,7 @@ static asn_TYPE_member_t asn_MBR_one_name_2[] = {
...
@@ -504,7 +504,7 @@ static asn_TYPE_member_t asn_MBR_one_name_2[] = {
{ ATF_NOFLAGS, 0, offsetof(struct one_name, another_name),
{ ATF_NOFLAGS, 0, offsetof(struct one_name, another_name),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_another_name_3,
.type = &asn_DEF_another_name_3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "another-name"
.name = "another-name"
},
},
...
@@ -550,14 +550,14 @@ static asn_TYPE_member_t asn_MBR_another_name_8[] = {
...
@@ -550,14 +550,14 @@ static asn_TYPE_member_t asn_MBR_another_name_8[] = {
{ ATF_NOFLAGS, 0, offsetof(struct another_name, a),
{ ATF_NOFLAGS, 0, offsetof(struct another_name, a),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_BIT_STRING,
.type = &asn_DEF_BIT_STRING,
.memb_constraints = memb_a_8_constraint,
.memb_constraints = memb_a_8_constraint,
.name = "a"
.name = "a"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct another_name, b),
{ ATF_NOFLAGS, 0, offsetof(struct another_name, b),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "b"
.name = "b"
},
},
...
@@ -604,7 +604,7 @@ static asn_TYPE_member_t asn_MBR_two_name_7[] = {
...
@@ -604,7 +604,7 @@ static asn_TYPE_member_t asn_MBR_two_name_7[] = {
{ ATF_NOFLAGS, 0, offsetof(struct two_name, another_name),
{ ATF_NOFLAGS, 0, offsetof(struct two_name, another_name),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_another_name_8,
.type = &asn_DEF_another_name_8,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "another-name"
.name = "another-name"
},
},
...
@@ -656,14 +656,14 @@ static asn_TYPE_member_t asn_MBR_Type2_1[] = {
...
@@ -656,14 +656,14 @@ static asn_TYPE_member_t asn_MBR_Type2_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Type2, choice.one_name),
{ ATF_NOFLAGS, 0, offsetof(struct Type2, choice.one_name),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_one_name_2,
.type = &asn_DEF_one_name_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "one-name"
.name = "one-name"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Type2, choice.two_name),
{ ATF_NOFLAGS, 0, offsetof(struct Type2, choice.two_name),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_two_name_7,
.type = &asn_DEF_two_name_7,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "two-name"
.name = "two-name"
},
},
...
...
tests/73-circular-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -37,7 +37,7 @@ static asn_TYPE_member_t asn_MBR_data_2[] = {
...
@@ -37,7 +37,7 @@ static asn_TYPE_member_t asn_MBR_data_2[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_EpytRef,
.type = &asn_DEF_EpytRef,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -77,7 +77,7 @@ static asn_TYPE_member_t asn_MBR_Type_1[] = {
...
@@ -77,7 +77,7 @@ static asn_TYPE_member_t asn_MBR_Type_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Type, data),
{ ATF_NOFLAGS, 0, offsetof(struct Type, data),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_data_2,
.type = &asn_DEF_data_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "data"
.name = "data"
},
},
...
@@ -279,7 +279,7 @@ static asn_TYPE_member_t asn_MBR_stype_2[] = {
...
@@ -279,7 +279,7 @@ static asn_TYPE_member_t asn_MBR_stype_2[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Type,
.type = &asn_DEF_Type,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -319,21 +319,21 @@ static asn_TYPE_member_t asn_MBR_Epyt_1[] = {
...
@@ -319,21 +319,21 @@ static asn_TYPE_member_t asn_MBR_Epyt_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Epyt, stype),
{ ATF_NOFLAGS, 0, offsetof(struct Epyt, stype),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_stype_2,
.type = &asn_DEF_stype_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "stype"
.name = "stype"
},
},
{ ATF_POINTER, 2, offsetof(struct Epyt, type),
{ ATF_POINTER, 2, offsetof(struct Epyt, type),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Type,
.type = &asn_DEF_Type,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "type"
.name = "type"
},
},
{ ATF_POINTER, 1, offsetof(struct Epyt, ypet),
{ ATF_POINTER, 1, offsetof(struct Epyt, ypet),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Ypet,
.type = &asn_DEF_Ypet,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "ypet"
.name = "ypet"
},
},
...
@@ -520,7 +520,7 @@ static asn_TYPE_member_t asn_MBR_senums_4[] = {
...
@@ -520,7 +520,7 @@ static asn_TYPE_member_t asn_MBR_senums_4[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_EnumType,
.type = &asn_DEF_EnumType,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -560,35 +560,35 @@ static asn_TYPE_member_t asn_MBR_Ypet_1[] = {
...
@@ -560,35 +560,35 @@ static asn_TYPE_member_t asn_MBR_Ypet_1[] = {
{ ATF_POINTER, 0, offsetof(struct Ypet, epyt),
{ ATF_POINTER, 0, offsetof(struct Ypet, epyt),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_Epyt,
.type = &asn_DEF_Epyt,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "epyt"
.name = "epyt"
},
},
{ ATF_POINTER, 1, offsetof(struct Ypet, plain),
{ ATF_POINTER, 1, offsetof(struct Ypet, plain),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "plain"
.name = "plain"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Ypet, senums),
{ ATF_NOFLAGS, 0, offsetof(struct Ypet, senums),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_senums_4,
.type = &asn_DEF_senums_4,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "senums"
.name = "senums"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Ypet, patest1),
{ ATF_NOFLAGS, 0, offsetof(struct Ypet, patest1),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type =
(void *)
&asn_DEF_IA5String,
.type = &asn_DEF_IA5String,
.memb_constraints = memb_patest1_1_constraint,
.memb_constraints = memb_patest1_1_constraint,
.name = "patest1"
.name = "patest1"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Ypet, patest2),
{ ATF_NOFLAGS, 0, offsetof(struct Ypet, patest2),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type =
(void *)
&asn_DEF_IA5String,
.type = &asn_DEF_IA5String,
.memb_constraints = memb_patest2_1_constraint,
.memb_constraints = memb_patest2_1_constraint,
.name = "patest2"
.name = "patest2"
},
},
...
...
tests/84-param-tags-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -75,7 +75,7 @@ static asn_TYPE_member_t asn_MBR_type1_2[] = {
...
@@ -75,7 +75,7 @@ static asn_TYPE_member_t asn_MBR_type1_2[] = {
{ ATF_POINTER, 1, offsetof(struct type1, common),
{ ATF_POINTER, 1, offsetof(struct type1, common),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_NativeInteger,
.type = &asn_DEF_NativeInteger,
.memb_constraints = memb_common_2_constraint,
.memb_constraints = memb_common_2_constraint,
.name = "common"
.name = "common"
},
},
...
@@ -121,7 +121,7 @@ static asn_TYPE_member_t asn_MBR_type2_4[] = {
...
@@ -121,7 +121,7 @@ static asn_TYPE_member_t asn_MBR_type2_4[] = {
{ ATF_POINTER, 1, offsetof(struct type2, common),
{ ATF_POINTER, 1, offsetof(struct type2, common),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_BOOLEAN,
.type = &asn_DEF_BOOLEAN,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "common"
.name = "common"
},
},
...
@@ -168,14 +168,14 @@ static asn_TYPE_member_t asn_MBR_TestChoice_1[] = {
...
@@ -168,14 +168,14 @@ static asn_TYPE_member_t asn_MBR_TestChoice_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct TestChoice, choice.type1),
{ ATF_NOFLAGS, 0, offsetof(struct TestChoice, choice.type1),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_type1_2,
.type = &asn_DEF_type1_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "type1"
.name = "type1"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct TestChoice, choice.type2),
{ ATF_NOFLAGS, 0, offsetof(struct TestChoice, choice.type2),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_type2_4,
.type = &asn_DEF_type2_4,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "type2"
.name = "type2"
},
},
...
@@ -315,7 +315,7 @@ static asn_TYPE_member_t asn_MBR_type1_2[] = {
...
@@ -315,7 +315,7 @@ static asn_TYPE_member_t asn_MBR_type1_2[] = {
{ ATF_NOFLAGS, 0, offsetof(struct type1, common),
{ ATF_NOFLAGS, 0, offsetof(struct type1, common),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_NativeInteger,
.type = &asn_DEF_NativeInteger,
.memb_constraints = memb_common_2_constraint,
.memb_constraints = memb_common_2_constraint,
.name = "common"
.name = "common"
},
},
...
@@ -362,7 +362,7 @@ static asn_TYPE_member_t asn_MBR_type2_4[] = {
...
@@ -362,7 +362,7 @@ static asn_TYPE_member_t asn_MBR_type2_4[] = {
{ ATF_NOFLAGS, 0, offsetof(struct type2, common),
{ ATF_NOFLAGS, 0, offsetof(struct type2, common),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_BOOLEAN,
.type = &asn_DEF_BOOLEAN,
.memb_constraints = memb_common_4_constraint,
.memb_constraints = memb_common_4_constraint,
.name = "common"
.name = "common"
},
},
...
@@ -409,14 +409,14 @@ static asn_TYPE_member_t asn_MBR_AutoChoice_1[] = {
...
@@ -409,14 +409,14 @@ static asn_TYPE_member_t asn_MBR_AutoChoice_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AutoChoice, choice.type1),
{ ATF_NOFLAGS, 0, offsetof(struct AutoChoice, choice.type1),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_type1_2,
.type = &asn_DEF_type1_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "type1"
.name = "type1"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct AutoChoice, choice.type2),
{ ATF_NOFLAGS, 0, offsetof(struct AutoChoice, choice.type2),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_type2_4,
.type = &asn_DEF_type2_4,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "type2"
.name = "type2"
},
},
...
...
tests/89-bit-string-enum-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -37,7 +37,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
...
@@ -37,7 +37,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T, choice.bs),
{ ATF_NOFLAGS, 0, offsetof(struct T, choice.bs),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_BIT_STRING,
.type = &asn_DEF_BIT_STRING,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "bs"
.name = "bs"
},
},
...
...
tests/89-bit-string-enum-OK.asn1.-Pfcompound-names
View file @
ae7bf3fb
...
@@ -37,7 +37,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
...
@@ -37,7 +37,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T, choice.bs),
{ ATF_NOFLAGS, 0, offsetof(struct T, choice.bs),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_BIT_STRING,
.type = &asn_DEF_BIT_STRING,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "bs"
.name = "bs"
},
},
...
...
tests/92-circular-loops-OK.asn1.-P
View file @
ae7bf3fb
This diff is collapsed.
Click to expand it.
tests/92-circular-loops-OK.asn1.-Pfindirect-choice
View file @
ae7bf3fb
This diff is collapsed.
Click to expand it.
tests/93-asn1c-controls-OK.asn1.-P
View file @
ae7bf3fb
...
@@ -24,14 +24,14 @@ static asn_TYPE_member_t asn_MBR_Sequence_1[] = {
...
@@ -24,14 +24,14 @@ static asn_TYPE_member_t asn_MBR_Sequence_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Sequence, ainl),
{ ATF_NOFLAGS, 0, offsetof(struct Sequence, ainl),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "ainl"
.name = "ainl"
},
},
{ ATF_POINTER, 0, offsetof(struct Sequence, aptr),
{ ATF_POINTER, 0, offsetof(struct Sequence, aptr),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "aptr"
.name = "aptr"
},
},
...
@@ -122,14 +122,14 @@ static asn_TYPE_member_t asn_MBR_Set_1[] = {
...
@@ -122,14 +122,14 @@ static asn_TYPE_member_t asn_MBR_Set_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Set, ainl),
{ ATF_NOFLAGS, 0, offsetof(struct Set, ainl),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_Sequence,
.type = &asn_DEF_Sequence,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "ainl"
.name = "ainl"
},
},
{ ATF_POINTER, 0, offsetof(struct Set, aptr),
{ ATF_POINTER, 0, offsetof(struct Set, aptr),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_Sequence,
.type = &asn_DEF_Sequence,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "aptr"
.name = "aptr"
},
},
...
@@ -232,7 +232,7 @@ static asn_TYPE_member_t asn_MBR_setof_2[] = {
...
@@ -232,7 +232,7 @@ static asn_TYPE_member_t asn_MBR_setof_2[] = {
{ ATF_POINTER, 0, 0,
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type =
(void *)
&asn_DEF_INTEGER,
.type = &asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
...
@@ -273,21 +273,21 @@ static asn_TYPE_member_t asn_MBR_Choice_1[] = {
...
@@ -273,21 +273,21 @@ static asn_TYPE_member_t asn_MBR_Choice_1[] = {
{ ATF_POINTER, 0, offsetof(struct Choice, choice.setof),
{ ATF_POINTER, 0, offsetof(struct Choice, choice.setof),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_setof_2,
.type = &asn_DEF_setof_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "setof"
.name = "setof"
},
},
{ ATF_POINTER, 0, offsetof(struct Choice, choice.aptr),
{ ATF_POINTER, 0, offsetof(struct Choice, choice.aptr),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_Sequence,
.type = &asn_DEF_Sequence,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "aptr"
.name = "aptr"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Choice, choice.ainl),
{ ATF_NOFLAGS, 0, offsetof(struct Choice, choice.ainl),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type =
(void *)
&asn_DEF_Sequence,
.type = &asn_DEF_Sequence,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "ainl"
.name = "ainl"
},
},
...
...
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