From 4062b01cd5bf6c5b616065a42e56abfa00e2a139 Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Fri, 11 Oct 2013 14:29:38 -0700 Subject: [PATCH] add -fline-refs --- ChangeLog | 3 +- asn1c/asn1c.c | 3 + libasn1compiler/asn1c_C.c | 9 +- libasn1compiler/asn1compiler.h | 11 ++- tests/03-enum-OK.asn1.-EF | 7 +- tests/04-enum-SE.asn1.-E | 7 +- tests/07-int-OK.asn1.-EF | 7 +- .../104-param-1-OK.asn1.-EFprint-class-matrix | 7 +- tests/104-param-1-OK.asn1.-Pfwide-types | 4 +- tests/105-param-2-OK.asn1.-Pfwide-types | 6 +- tests/106-param-constr-OK.asn1.-P | 6 +- tests/110-param-3-OK.asn1.-Pfwide-types | 4 +- tests/112-param-class-OK.asn1.-EF | 7 +- tests/117-real-constraint-OK.asn1.-EF | 7 +- ...er-constraint-OK.asn1.-EFprint-constraints | Bin 1882 -> 1885 bytes tests/119-per-strings-OK.asn1.-EF | 7 +- tests/119-per-strings-OK.asn1.-Pgen-PER | 62 +++++++------- tests/121-empty-imports-OK.asn1.-EF | 7 +- tests/123-valueassignment-OK.asn1.-EF | 7 +- tests/124-multiconstraint-OK.asn1.-EF | 7 +- tests/125-bitstring-constraint-OK.asn1.-EF | 7 +- tests/125-bitstring-constraint-OK.asn1.-X | 7 +- tests/126-per-extensions-OK.asn1.-Pgen-PER | 16 ++-- tests/127-per-long-OK.asn1.-Pgen-PER | 8 +- tests/129-enum-OK.asn1.-EF | 7 +- tests/130-enum-OK.asn1.-EF | 7 +- tests/14-resolver-OK.asn1.-EF | 21 +++-- tests/16-constraint-OK.asn1.-EF | 14 +++- ...16-constraint-OK.asn1.-EFprint-constraints | Bin 2289 -> 2295 bytes tests/19-param-OK.asn1.-EF | 7 +- tests/19-param-OK.asn1.-Pfwide-types | 12 +-- tests/20-constr-OK.asn1.-EF | 7 +- tests/21-tags-OK.asn1.-EF | 14 +++- tests/22-tags-OK.asn1.-EF | 7 +- tests/22-tags-OK.asn1.-Pfwide-types | 10 +-- tests/23-bits-OK.asn1.-EF | 7 +- tests/24-sequence-OK.asn1.-EF | 7 +- tests/30-set-OK.asn1.-Pfwide-types | 6 +- tests/31-set-of-OK.asn1.-EF | 7 +- tests/31-set-of-OK.asn1.-Pfwide-types | 24 +++--- tests/32-sequence-of-OK.asn1.-EF | 7 +- tests/32-sequence-of-OK.asn1.-P | 8 +- tests/34-class-OK.asn1.-EF | 7 +- tests/34-class-OK.asn1.-EFprint-class-matrix | 7 +- tests/37-indirect-choice-OK.asn1.-EF | 7 +- .../37-indirect-choice-OK.asn1.-Pfwide-types | 20 ++--- tests/39-sequence-of-OK.asn1.-Pfwide-types | 8 +- tests/42-real-life-OK.asn1.-EF | 7 +- tests/42-real-life-OK.asn1.-PR | 24 +++--- tests/43-recursion-OK.asn1.-Pfwide-types | 20 ++--- tests/44-choice-in-sequence-OK.asn1.-P | 30 +++---- ...ype-SE.asn1.-EFfknown-extern-type=KnownExt | 7 +- tests/46-redefine-OK.asn1.-PR | 2 +- tests/47-set-ext-OK.asn1.-Pfwide-types | 8 +- tests/49-real-life-OK.asn1.-E | 7 +- ...50-constraint-OK.asn1.-EFprint-constraints | Bin 9898 -> 9904 bytes tests/50-constraint-OK.asn1.-Pfwide-types | 14 ++-- tests/50-constraint-OK.asn1.-Pgen-PER | 14 ++-- tests/55-components-of-OK.asn1.-EF | 7 +- tests/58-param-OK.asn1.-EF | 7 +- .../59-choice-extended-OK.asn1.-Pfwide-types | 6 +- tests/60-any-OK.asn1.-EF | 7 +- tests/60-any-OK.asn1.-Pfwide-types | 6 +- tests/62-any-OK.asn1.-EF | 7 +- tests/65-multi-tag-OK.asn1.-Pfnative-types | 6 +- tests/65-multi-tag-OK.asn1.-Pfwide-types | 6 +- tests/69-reserved-words-OK.asn1.-Pfwide-types | 8 +- tests/70-xer-test-OK.asn1.-EF | 7 +- tests/70-xer-test-OK.asn1.-Pfwide-types | 60 +++++++------- tests/72-same-names-OK.asn1.-Pfwide-types | 30 +++---- tests/73-circular-OK.asn1.-Pfwide-types | 18 ++-- ...m-constraints-OK.asn1.-EFprint-constraints | 6 +- tests/79-constrained-by-OK.asn1.-EF | 7 +- tests/82-with-comps-OK.asn1.-EF | 7 +- tests/84-param-tags-OK.asn1.-EF | 14 +++- tests/84-param-tags-OK.asn1.-Pfwide-types | 16 ++-- tests/86-atags-OK.asn1.-EF | 7 +- ...-bit-string-enum-OK.asn1.-Pfcompound-names | 2 +- .../89-bit-string-enum-OK.asn1.-Pfwide-types | 2 +- ...cond-int-type-OK.asn1.-EFprint-constraints | 7 +- ...-circular-loops-OK.asn1.-Pfindirect-choice | 78 +++++++++--------- tests/92-circular-loops-OK.asn1.-Pfwide-types | 78 +++++++++--------- tests/93-asn1c-controls-OK.asn1.-EF | 7 +- tests/93-asn1c-controls-OK.asn1.-Pfwide-types | 14 ++-- tests/94-set-optionals-OK.asn1.-P | 20 ++--- .../95-choice-per-order-OK.asn1.-Pfwide-types | 18 ++-- tests/95-choice-per-order-OK.asn1.-Pgen-PER | 18 ++-- tests/97-type-identifier-SW.asn1.-EF | 14 +++- tests/98-attribute-class-OK.asn1.-P | 4 +- ...class-sample-OK.asn1.-EFprint-class-matrix | 7 +- 90 files changed, 615 insertions(+), 456 deletions(-) diff --git a/ChangeLog b/ChangeLog index abbebe42..78161d95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,8 +2,9 @@ ???: * Updated asn1c-usage.pdf. * Made -fskeletons-copy a default option; removed cmdline option. - * Made -fnative-types a default options; removed cmdline option. + * Made -fnative-types a default option; removed cmdline option. Added -fwide-types for backwards compatibility. + * Add -fline-refs to avoid being unfriendly to version control systems. 0.9.24: 2013-Mar-16 diff --git a/asn1c/asn1c.c b/asn1c/asn1c.c index b4fcba1d..0ca5c0b8 100644 --- a/asn1c/asn1c.c +++ b/asn1c/asn1c.c @@ -96,6 +96,8 @@ main(int ac, char **av) { asn1_compiler_flags &= ~A1C_USE_WIDE_TYPES; } else if(strcmp(optarg, "wide-types") == 0) { asn1_compiler_flags |= A1C_USE_WIDE_TYPES; + } else if(strcmp(optarg, "line-refs") == 0) { + asn1_compiler_flags |= A1C_LINE_REFS; } else if(strcmp(optarg, "no-constraints") == 0) { asn1_compiler_flags |= A1C_NO_CONSTRAINTS; } else if(strcmp(optarg, "no-include-deps") == 0) { @@ -464,6 +466,7 @@ usage(const char *av0) { " -findirect-choice Compile members of CHOICE as indirect pointers\n" " -fincludes-quoted Generate #includes in \"double\" instead of quotes\n" " -fknown-extern-type= Pretend the specified type is known\n" +" -fline-refs Include ASN.1 module's line numbers in comments\n" " -fno-constraints Do not generate constraint checking code\n" " -fno-include-deps Do not generate courtesy #includes for dependencies\n" " -funnamed-unions Enable unnamed unions in structures\n" diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c index b9f994c7..95ff1f3c 100644 --- a/libasn1compiler/asn1c_C.c +++ b/libasn1compiler/asn1c_C.c @@ -1670,11 +1670,12 @@ emit_tag2member_map(arg_t *arg, tag2el_t *tag2el, int tag2el_count, const char * OUT("%d, ", tag2el[i].el_no); OUT("%d, ", tag2el[i].toff_first); OUT("%d ", tag2el[i].toff_last); - OUT("}%s /* %s at %d */\n", + OUT("}%s /* %s", (i + 1 < tag2el_count) ? "," : "", - tag2el[i].from_expr->Identifier, - tag2el[i].from_expr->_lineno - ); + tag2el[i].from_expr->Identifier); + if(arg->flags & A1C_LINE_REFS) + OUT("at %d", tag2el[i].from_expr->_lineno); + OUT(" */\n"); } OUT("};\n"); diff --git a/libasn1compiler/asn1compiler.h b/libasn1compiler/asn1compiler.h index a19f147f..827bc924 100644 --- a/libasn1compiler/asn1compiler.h +++ b/libasn1compiler/asn1compiler.h @@ -60,19 +60,24 @@ enum asn1c_flags { * -gen-PER * Generate PER support code */ - A1C_GEN_PER = 0x1000, + A1C_GEN_PER = 0x1000, /* * -pdu={all|auto|Type} * Generate PDU table */ - A1C_PDU_ALL = 0x2000, + A1C_PDU_ALL = 0x2000, A1C_PDU_AUTO = 0x4000, A1C_PDU_TYPE = 0x8000, /* * -fincludes-quoted * Avoid generating #include , generate "foo" instead. */ - A1C_INCLUDES_QUOTED = 0x10000 + A1C_INCLUDES_QUOTED = 0x10000, + /* + * -fline-refs + * Include ASN.1 module's line numbers in comments. + */ + A1C_LINE_REFS = 0x20000 }; /* diff --git a/tests/03-enum-OK.asn1.-EF b/tests/03-enum-OK.asn1.-EF index 761736ff..0abe0a8b 100644 --- a/tests/03-enum-OK.asn1.-EF +++ b/tests/03-enum-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestEnum1 { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 3 } +ModuleTestEnum1 { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 3 } DEFINITIONS ::= BEGIN diff --git a/tests/04-enum-SE.asn1.-E b/tests/04-enum-SE.asn1.-E index 2036bd54..6de07628 100644 --- a/tests/04-enum-SE.asn1.-E +++ b/tests/04-enum-SE.asn1.-E @@ -1,5 +1,8 @@ -ModuleTestEnum2 { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 4 } +ModuleTestEnum2 { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 4 } DEFINITIONS ::= BEGIN diff --git a/tests/07-int-OK.asn1.-EF b/tests/07-int-OK.asn1.-EF index 3baa862e..9d9f7aa1 100644 --- a/tests/07-int-OK.asn1.-EF +++ b/tests/07-int-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestInt1 { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 7 } +ModuleTestInt1 { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 7 } DEFINITIONS ::= BEGIN diff --git a/tests/104-param-1-OK.asn1.-EFprint-class-matrix b/tests/104-param-1-OK.asn1.-EFprint-class-matrix index 754ba541..bc11953c 100644 --- a/tests/104-param-1-OK.asn1.-EFprint-class-matrix +++ b/tests/104-param-1-OK.asn1.-EFprint-class-matrix @@ -1,5 +1,8 @@ -ModuleParameterization1 { iso org(3) dod(6) internet(1) private(4) - enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 104 } +ModuleParameterization1 { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 104 } DEFINITIONS ::= BEGIN diff --git a/tests/104-param-1-OK.asn1.-Pfwide-types b/tests/104-param-1-OK.asn1.-Pfwide-types index 24f4a64a..befcc2a3 100644 --- a/tests/104-param-1-OK.asn1.-Pfwide-types +++ b/tests/104-param-1-OK.asn1.-Pfwide-types @@ -160,8 +160,8 @@ static ber_tlv_tag_t asn_DEF_Bunch_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_Bunch_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 1 }, /* field-REAL at 17 */ - { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, -1, 0 } /* field-IA5String at 18 */ + { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 1 }, /* field-REAL */ + { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, -1, 0 } /* field-IA5String */ }; static asn_SEQUENCE_specifics_t asn_SPC_Bunch_specs_1 = { sizeof(struct Bunch), diff --git a/tests/105-param-2-OK.asn1.-Pfwide-types b/tests/105-param-2-OK.asn1.-Pfwide-types index 8a9b9f86..4a9cb78e 100644 --- a/tests/105-param-2-OK.asn1.-Pfwide-types +++ b/tests/105-param-2-OK.asn1.-Pfwide-types @@ -62,7 +62,7 @@ static ber_tlv_tag_t asn_DEF_SIGNED_16P0_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_SIGNED_16P0_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 0, 0, 0 } /* signed at 18 */ + { (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 0, 0, 0 } /* signed */ }; static asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P0_specs_1 = { sizeof(struct SIGNED_16P0), @@ -112,7 +112,7 @@ static ber_tlv_tag_t asn_DEF_signed_tags_4[] = { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_signed_tag2el_4[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* a at 19 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* a */ }; static uint8_t asn_MAP_signed_mmap_4[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { (1 << 7) @@ -168,7 +168,7 @@ static ber_tlv_tag_t asn_DEF_SIGNED_16P1_tags_3[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_SIGNED_16P1_tag2el_3[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* signed at 19 */ + { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* signed */ }; static asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P1_specs_3 = { sizeof(struct SIGNED_16P1), diff --git a/tests/106-param-constr-OK.asn1.-P b/tests/106-param-constr-OK.asn1.-P index 1bca959a..d2b0be4d 100644 --- a/tests/106-param-constr-OK.asn1.-P +++ b/tests/106-param-constr-OK.asn1.-P @@ -150,9 +150,9 @@ static ber_tlv_tag_t asn_DEF_Narrow_15P0_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_Narrow_15P0_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* narrow1 at 20 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* narrow2 at 20 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 2, 0, 0 } /* narrow3 at 20 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* narrow1 */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* narrow2 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 2, 0, 0 } /* narrow3 */ }; static asn_SEQUENCE_specifics_t asn_SPC_Narrow_15P0_specs_1 = { sizeof(struct Narrow_15P0), diff --git a/tests/110-param-3-OK.asn1.-Pfwide-types b/tests/110-param-3-OK.asn1.-Pfwide-types index 9bd39a9b..7bb87b1f 100644 --- a/tests/110-param-3-OK.asn1.-Pfwide-types +++ b/tests/110-param-3-OK.asn1.-Pfwide-types @@ -152,7 +152,7 @@ static ber_tlv_tag_t asn_DEF_Flag_16P0_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_Flag_16P0_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* field at 18 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* field */ }; static asn_SEQUENCE_specifics_t asn_SPC_Flag_16P0_specs_1 = { sizeof(struct Flag_16P0), @@ -268,7 +268,7 @@ static ber_tlv_tag_t asn_DEF_Flag_16P1_tags_6[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_Flag_16P1_tag2el_6[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* field at 19 */ + { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* field */ }; static asn_SEQUENCE_specifics_t asn_SPC_Flag_16P1_specs_6 = { sizeof(struct Flag_16P1), diff --git a/tests/112-param-class-OK.asn1.-EF b/tests/112-param-class-OK.asn1.-EF index 99223679..426dcfd4 100644 --- a/tests/112-param-class-OK.asn1.-EF +++ b/tests/112-param-class-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleParameterizationClass { iso org(3) dod(6) internet(1) private(4) - enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 112 } +ModuleParameterizationClass { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 112 } DEFINITIONS ::= BEGIN diff --git a/tests/117-real-constraint-OK.asn1.-EF b/tests/117-real-constraint-OK.asn1.-EF index 2745e144..7501cddd 100644 --- a/tests/117-real-constraint-OK.asn1.-EF +++ b/tests/117-real-constraint-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleRealConstraint { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 117 } +ModuleRealConstraint { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 117 } DEFINITIONS ::= BEGIN diff --git a/tests/118-per-constraint-OK.asn1.-EFprint-constraints b/tests/118-per-constraint-OK.asn1.-EFprint-constraints index 4a527eff564f8e622d365646ecc65e4d06fd4611..4ad99ed5575eef97026f97a9d30ac98d686ae507 100644 GIT binary patch delta 49 zcmcb`cb9L1IujS?L=8&?F3#fow370~qErn-O@+kbJi}xSQ%!}E)Z!AL02k-R`rB*( DZ9ERN delta 46 zcmcc1cZ+X=I-|lwO-nh2;{3Fd^2DN44MR diff --git a/tests/126-per-extensions-OK.asn1.-Pgen-PER b/tests/126-per-extensions-OK.asn1.-Pgen-PER index 5b234be9..609efbd3 100644 --- a/tests/126-per-extensions-OK.asn1.-Pgen-PER +++ b/tests/126-per-extensions-OK.asn1.-Pgen-PER @@ -79,10 +79,10 @@ static ber_tlv_tag_t asn_DEF_PDU_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* str-o at 16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* str-m at 17 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* singl at 18 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* pdu-2 at 19 */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* str-o */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* str-m */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* singl */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* pdu-2 */ }; static asn_SEQUENCE_specifics_t asn_SPC_PDU_specs_1 = { sizeof(struct PDU), @@ -182,7 +182,7 @@ static ber_tlv_tag_t asn_DEF_Singleton_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_Singleton_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* opt-z at 23 */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* opt-z */ }; static asn_SEQUENCE_specifics_t asn_SPC_Singleton_specs_1 = { sizeof(struct Singleton), @@ -298,9 +298,9 @@ static asn_TYPE_member_t asn_MBR_PDU_2_1[] = { }; static int asn_MAP_PDU_2_cmap_1[] = { 0, 2, 1 }; static asn_TYPE_tag2member_t asn_MAP_PDU_2_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 }, /* ext0 at 31 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 at 29 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, 0, 0 } /* main at 27 */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 }, /* ext0 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, 0, 0 } /* main */ }; static asn_CHOICE_specifics_t asn_SPC_PDU_2_specs_1 = { sizeof(struct PDU_2), diff --git a/tests/127-per-long-OK.asn1.-Pgen-PER b/tests/127-per-long-OK.asn1.-Pgen-PER index 696b83ba..66959e23 100644 --- a/tests/127-per-long-OK.asn1.-Pgen-PER +++ b/tests/127-per-long-OK.asn1.-Pgen-PER @@ -462,10 +462,10 @@ static ber_tlv_tag_t asn_DEF_T_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* small32range at 15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* full32range at 16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* unsigned32 at 17 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* unsplit32 at 18 */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* small32range */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* full32range */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* unsigned32 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* unsplit32 */ }; static asn_SEQUENCE_specifics_t asn_SPC_T_specs_1 = { sizeof(struct T), diff --git a/tests/129-enum-OK.asn1.-EF b/tests/129-enum-OK.asn1.-EF index ebc3d30e..1d9b268c 100644 --- a/tests/129-enum-OK.asn1.-EF +++ b/tests/129-enum-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestEnum1 { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 129 } +ModuleTestEnum1 { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 129 } DEFINITIONS ::= BEGIN diff --git a/tests/130-enum-OK.asn1.-EF b/tests/130-enum-OK.asn1.-EF index eaa5a51a..f510ae58 100644 --- a/tests/130-enum-OK.asn1.-EF +++ b/tests/130-enum-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestEnum1 { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 130 } +ModuleTestEnum1 { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 130 } DEFINITIONS ::= BEGIN diff --git a/tests/14-resolver-OK.asn1.-EF b/tests/14-resolver-OK.asn1.-EF index 8c3eb0fa..0e0d7fa4 100644 --- a/tests/14-resolver-OK.asn1.-EF +++ b/tests/14-resolver-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestResolver2 { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 14 1 } +ModuleTestResolver2 { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 14 1 } DEFINITIONS ::= BEGIN @@ -18,8 +21,11 @@ check-other INTEGER ::= 1 END -ModuleTestResolver3 { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 14 2 } +ModuleTestResolver3 { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 14 2 } DEFINITIONS ::= BEGIN @@ -32,8 +38,11 @@ Enumeration ::= ENUMERATED { END -HiddenModule { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 14 3 } +HiddenModule { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 14 3 } DEFINITIONS ::= BEGIN diff --git a/tests/16-constraint-OK.asn1.-EF b/tests/16-constraint-OK.asn1.-EF index a1f8e851..54441201 100644 --- a/tests/16-constraint-OK.asn1.-EF +++ b/tests/16-constraint-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestConstraint1 { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 16 1 } +ModuleTestConstraint1 { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 16 1 } DEFINITIONS ::= BEGIN @@ -9,8 +12,11 @@ Type6 ::= IA5String ((SIZE(1..10))(FROM("a".."z" | "#"))) END -ModuleTestConstraint2 { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 16 2 } +ModuleTestConstraint2 { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 16 2 } DEFINITIONS ::= BEGIN diff --git a/tests/16-constraint-OK.asn1.-EFprint-constraints b/tests/16-constraint-OK.asn1.-EFprint-constraints index 67fe1bd0b4decb365ac44c28321a97d0492d9f5d..947c8c78e66957b1086ea7419cfe31588cf50116 100644 GIT binary patch delta 161 zcmew;_+4;4q-g^BSpj0ziT OJDG@9yg8A18Y=*YSR4cZ diff --git a/tests/19-param-OK.asn1.-EF b/tests/19-param-OK.asn1.-EF index da640152..fe0b63a1 100644 --- a/tests/19-param-OK.asn1.-EF +++ b/tests/19-param-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestParam { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 19 } +ModuleTestParam { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 19 } DEFINITIONS ::= BEGIN diff --git a/tests/19-param-OK.asn1.-Pfwide-types b/tests/19-param-OK.asn1.-Pfwide-types index eedbc1bf..a9d94938 100644 --- a/tests/19-param-OK.asn1.-Pfwide-types +++ b/tests/19-param-OK.asn1.-Pfwide-types @@ -98,9 +98,9 @@ static ber_tlv_tag_t asn_DEF_toBeSigned_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_toBeSigned_tag2el_2[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* version at 21 */ - { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, 0, 0 }, /* signature at 22 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, 0, 0 } /* issuer at 24 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* version */ + { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, 0, 0 }, /* signature */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, 0, 0 } /* issuer */ }; static asn_SEQUENCE_specifics_t asn_SPC_toBeSigned_specs_2 = { sizeof(struct toBeSigned), @@ -169,9 +169,9 @@ static ber_tlv_tag_t asn_DEF_SIGNED_15P0_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_SIGNED_15P0_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 2, 0, 0 }, /* signature at 17 */ - { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, 0, 0 }, /* algorithm at 16 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* toBeSigned at 21 */ + { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 2, 0, 0 }, /* signature */ + { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, 0, 0 }, /* algorithm */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* toBeSigned */ }; static asn_SEQUENCE_specifics_t asn_SPC_SIGNED_15P0_specs_1 = { sizeof(struct SIGNED_15P0), diff --git a/tests/20-constr-OK.asn1.-EF b/tests/20-constr-OK.asn1.-EF index 798f756e..fbc4cc00 100644 --- a/tests/20-constr-OK.asn1.-EF +++ b/tests/20-constr-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestConstr { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 20 } +ModuleTestConstr { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 20 } DEFINITIONS IMPLICIT TAGS EXTENSIBILITY IMPLIED ::= BEGIN diff --git a/tests/21-tags-OK.asn1.-EF b/tests/21-tags-OK.asn1.-EF index 566e6a1e..955d5520 100644 --- a/tests/21-tags-OK.asn1.-EF +++ b/tests/21-tags-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestTags1 { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 21 1 } +ModuleTestTags1 { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 21 1 } DEFINITIONS EXPLICIT TAGS ::= BEGIN @@ -10,8 +13,11 @@ T1 ::= CHOICE { END -ModuleTestTags2 { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 21 2 } +ModuleTestTags2 { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 21 2 } DEFINITIONS IMPLICIT TAGS ::= BEGIN diff --git a/tests/22-tags-OK.asn1.-EF b/tests/22-tags-OK.asn1.-EF index b1a0b8c4..0b13dc5d 100644 --- a/tests/22-tags-OK.asn1.-EF +++ b/tests/22-tags-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestTags3 { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 22 } +ModuleTestTags3 { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 22 } DEFINITIONS AUTOMATIC TAGS ::= BEGIN diff --git a/tests/22-tags-OK.asn1.-Pfwide-types b/tests/22-tags-OK.asn1.-Pfwide-types index 988e7293..fe8d29a9 100644 --- a/tests/22-tags-OK.asn1.-Pfwide-types +++ b/tests/22-tags-OK.asn1.-Pfwide-types @@ -62,8 +62,8 @@ static asn_TYPE_member_t asn_MBR_b_3[] = { }, }; static asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* i at 17 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* n at 18 */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* i */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* n */ }; static asn_CHOICE_specifics_t asn_SPC_b_specs_3 = { sizeof(struct b), @@ -131,9 +131,9 @@ static ber_tlv_tag_t asn_DEF_T1_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_T1_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a at 15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* b at 17 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* c at 20 */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* b */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* c */ }; static asn_SEQUENCE_specifics_t asn_SPC_T1_specs_1 = { sizeof(struct T1), diff --git a/tests/23-bits-OK.asn1.-EF b/tests/23-bits-OK.asn1.-EF index 80648156..f74b9677 100644 --- a/tests/23-bits-OK.asn1.-EF +++ b/tests/23-bits-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestBitString { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 23 } +ModuleTestBitString { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 23 } DEFINITIONS AUTOMATIC TAGS ::= BEGIN diff --git a/tests/24-sequence-OK.asn1.-EF b/tests/24-sequence-OK.asn1.-EF index ecdc4b09..fefe5590 100644 --- a/tests/24-sequence-OK.asn1.-EF +++ b/tests/24-sequence-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestSequence { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 24 } +ModuleTestSequence { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 24 } DEFINITIONS IMPLICIT TAGS ::= BEGIN diff --git a/tests/30-set-OK.asn1.-Pfwide-types b/tests/30-set-OK.asn1.-Pfwide-types index c4f65d41..c577dc76 100644 --- a/tests/30-set-OK.asn1.-Pfwide-types +++ b/tests/30-set-OK.asn1.-Pfwide-types @@ -76,9 +76,9 @@ static ber_tlv_tag_t asn_DEF_T_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 1, 0, 0 }, /* s at 16 */ - { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 0, 0, 0 }, /* i at 15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* b at 18 */ + { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 1, 0, 0 }, /* s */ + { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 0, 0, 0 }, /* i */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* b */ }; static uint8_t asn_MAP_T_mmap_1[(3 + (8 * sizeof(unsigned int)) - 1) / 8] = { (1 << 7) | (1 << 6) | (0 << 5) diff --git a/tests/31-set-of-OK.asn1.-EF b/tests/31-set-of-OK.asn1.-EF index f97ce2a3..81d3567e 100644 --- a/tests/31-set-of-OK.asn1.-EF +++ b/tests/31-set-of-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestSetOfSimple { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 31 } +ModuleTestSetOfSimple { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 31 } DEFINITIONS IMPLICIT TAGS ::= BEGIN diff --git a/tests/31-set-of-OK.asn1.-Pfwide-types b/tests/31-set-of-OK.asn1.-Pfwide-types index 576f5c45..f8365d24 100644 --- a/tests/31-set-of-OK.asn1.-Pfwide-types +++ b/tests/31-set-of-OK.asn1.-Pfwide-types @@ -116,8 +116,8 @@ static ber_tlv_tag_t asn_DEF_Tree_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_Tree_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* height at 17 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* width at 19 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* height */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* width */ }; static asn_SEQUENCE_specifics_t asn_SPC_Tree_specs_1 = { sizeof(struct Tree), @@ -301,7 +301,7 @@ static ber_tlv_tag_t asn_DEF_Member_tags_5[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_Member_tag2el_5[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* cup-of-coffee at 32 */ + { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* cup-of-coffee */ }; static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_5 = { sizeof(struct Member), @@ -403,8 +403,8 @@ static asn_TYPE_member_t asn_MBR_other_9[] = { }, }; static asn_TYPE_tag2member_t asn_MAP_other_tag2el_9[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a at 26 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* b at 28 */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* b */ }; static asn_CHOICE_specifics_t asn_SPC_other_specs_9 = { sizeof(struct other), @@ -472,15 +472,15 @@ static ber_tlv_tag_t asn_DEF_Stuff_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 }, /* a at 26 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees at 23 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything at 34 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 } /* b at 28 */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 }, /* a */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 } /* b */ }; static asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_cxer_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees at 23 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything at 34 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 } /* a at 26 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 } /* a */ }; static uint8_t asn_MAP_Stuff_mmap_1[(3 + (8 * sizeof(unsigned int)) - 1) / 8] = { (0 << 7) | (0 << 6) | (0 << 5) diff --git a/tests/32-sequence-of-OK.asn1.-EF b/tests/32-sequence-of-OK.asn1.-EF index d0059b21..a2843c2f 100644 --- a/tests/32-sequence-of-OK.asn1.-EF +++ b/tests/32-sequence-of-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestSequenceSimple { iso org(3) dod(6) internet(1) private(4) - enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 32 } +ModuleTestSequenceSimple { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 32 } DEFINITIONS IMPLICIT TAGS ::= BEGIN diff --git a/tests/32-sequence-of-OK.asn1.-P b/tests/32-sequence-of-OK.asn1.-P index 9037596e..901026c7 100644 --- a/tests/32-sequence-of-OK.asn1.-P +++ b/tests/32-sequence-of-OK.asn1.-P @@ -306,8 +306,8 @@ static ber_tlv_tag_t asn_DEF_SeqWithMandatory_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_SeqWithMandatory_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString at 25 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfMan at 27 */ + { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfMan */ }; static asn_SEQUENCE_specifics_t asn_SPC_SeqWithMandatory_specs_1 = { sizeof(struct SeqWithMandatory), @@ -448,8 +448,8 @@ static ber_tlv_tag_t asn_DEF_SeqWithOptional_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_SeqWithOptional_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString at 30 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfOpt at 31 */ + { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfOpt */ }; static asn_SEQUENCE_specifics_t asn_SPC_SeqWithOptional_specs_1 = { sizeof(struct SeqWithOptional), diff --git a/tests/34-class-OK.asn1.-EF b/tests/34-class-OK.asn1.-EF index 8af80a86..25d21aa5 100644 --- a/tests/34-class-OK.asn1.-EF +++ b/tests/34-class-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestClassSimple { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 34 } +ModuleTestClassSimple { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 34 } DEFINITIONS IMPLICIT TAGS ::= BEGIN diff --git a/tests/34-class-OK.asn1.-EFprint-class-matrix b/tests/34-class-OK.asn1.-EFprint-class-matrix index f97de09d..92b4b4c7 100644 --- a/tests/34-class-OK.asn1.-EFprint-class-matrix +++ b/tests/34-class-OK.asn1.-EFprint-class-matrix @@ -1,5 +1,8 @@ -ModuleTestClassSimple { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 34 } +ModuleTestClassSimple { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 34 } DEFINITIONS IMPLICIT TAGS ::= BEGIN diff --git a/tests/37-indirect-choice-OK.asn1.-EF b/tests/37-indirect-choice-OK.asn1.-EF index b4031a8c..8cf19b30 100644 --- a/tests/37-indirect-choice-OK.asn1.-EF +++ b/tests/37-indirect-choice-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleTestIndirectChoiceFine { iso org(3) dod(6) internet(1) private(4) - enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 37 } +ModuleTestIndirectChoiceFine { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 37 } DEFINITIONS IMPLICIT TAGS ::= BEGIN diff --git a/tests/37-indirect-choice-OK.asn1.-Pfwide-types b/tests/37-indirect-choice-OK.asn1.-Pfwide-types index 48e97aec..b31e4022 100644 --- a/tests/37-indirect-choice-OK.asn1.-Pfwide-types +++ b/tests/37-indirect-choice-OK.asn1.-Pfwide-types @@ -77,10 +77,10 @@ static asn_TYPE_member_t asn_MBR_T_1[] = { }, }; static asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* t-a at 15 */ - { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* t-b at 16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 2, 0, 0 }, /* t-c at 17 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* t-d at 19 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* t-a */ + { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* t-b */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 2, 0, 0 }, /* t-c */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* t-d */ }; static asn_CHOICE_specifics_t asn_SPC_T_specs_1 = { sizeof(struct T), @@ -169,8 +169,8 @@ static asn_TYPE_member_t asn_MBR_Choice1_1[] = { }, }; static asn_TYPE_tag2member_t asn_MAP_Choice1_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* c-b at 24 */ - { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* c-a at 22 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* c-b */ + { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* c-a */ }; static asn_CHOICE_specifics_t asn_SPC_Choice1_specs_1 = { sizeof(struct Choice1), @@ -285,10 +285,10 @@ static ber_tlv_tag_t asn_DEF_Choice2_tags_1[] = { (ASN_TAG_CLASS_CONTEXT | (2 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* c-b at 28 */ - { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 }, /* c-a at 27 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 }, /* c-d at 29 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 3, 0, 0 } /* c-e at 31 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* c-b */ + { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 }, /* c-a */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 }, /* c-d */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 3, 0, 0 } /* c-e */ }; static asn_CHOICE_specifics_t asn_SPC_Choice2_specs_1 = { sizeof(struct Choice2), diff --git a/tests/39-sequence-of-OK.asn1.-Pfwide-types b/tests/39-sequence-of-OK.asn1.-Pfwide-types index 4e6ed8c8..f4dff372 100644 --- a/tests/39-sequence-of-OK.asn1.-Pfwide-types +++ b/tests/39-sequence-of-OK.asn1.-Pfwide-types @@ -103,8 +103,8 @@ static ber_tlv_tag_t asn_DEF_T_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* int at 15 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* collection at 17 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* int */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* collection */ }; static asn_SEQUENCE_specifics_t asn_SPC_T_specs_1 = { sizeof(struct T), @@ -186,8 +186,8 @@ static ber_tlv_tag_t asn_DEF_T2_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_T2_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* flag at 20 */ - { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* str at 21 */ + { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* flag */ + { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* str */ }; static asn_SEQUENCE_specifics_t asn_SPC_T2_specs_1 = { sizeof(struct T2), diff --git a/tests/42-real-life-OK.asn1.-EF b/tests/42-real-life-OK.asn1.-EF index 0543ee32..c5e17e11 100644 --- a/tests/42-real-life-OK.asn1.-EF +++ b/tests/42-real-life-OK.asn1.-EF @@ -1,5 +1,8 @@ -ModuleLAPStorage { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 42 } +ModuleLAPStorage { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 42 } DEFINITIONS EXTENSIBILITY IMPLIED ::= BEGIN diff --git a/tests/42-real-life-OK.asn1.-PR b/tests/42-real-life-OK.asn1.-PR index 3a2c1b0e..c0ea894a 100644 --- a/tests/42-real-life-OK.asn1.-PR +++ b/tests/42-real-life-OK.asn1.-PR @@ -136,8 +136,8 @@ static ber_tlv_tag_t asn_DEF_LogLine_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_LogLine_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets at 25 */ - { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 } /* line-digest at 23 */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets */ + { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 } /* line-digest */ }; static asn_SEQUENCE_specifics_t asn_SPC_LogLine_specs_1 = { sizeof(struct LogLine), @@ -303,8 +303,8 @@ static ber_tlv_tag_t asn_DEF_VariablePartSet_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_VariablePartSet_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts at 33 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* resolution at 35 */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* resolution */ }; static asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_specs_1 = { sizeof(struct VariablePartSet), @@ -493,8 +493,8 @@ static ber_tlv_tag_t asn_DEF_vrange_tags_4[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_vrange_tag2el_4[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from at 45 */ - { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to at 46 */ + { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from */ + { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to */ }; static asn_SEQUENCE_specifics_t asn_SPC_vrange_specs_4 = { sizeof(struct vrange), @@ -551,8 +551,8 @@ static asn_TYPE_member_t asn_MBR_VariablePart_1[] = { }, }; static asn_TYPE_tag2member_t asn_MAP_VariablePart_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange at 45 */ - { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* vset at 42 */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange */ + { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* vset */ }; static asn_CHOICE_specifics_t asn_SPC_VariablePart_specs_1 = { sizeof(struct VariablePart), @@ -835,8 +835,8 @@ static ber_tlv_tag_t asn_DEF_notify_tags_7[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_notify_tag2el_7[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical at 61 */ - { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email at 62 */ + { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical */ + { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email */ }; static asn_SEQUENCE_specifics_t asn_SPC_notify_specs_7 = { sizeof(struct notify), @@ -896,8 +896,8 @@ static ber_tlv_tag_t asn_DEF_ActionItem_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_ActionItem_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as at 55 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* notify at 61 */ + { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* notify */ }; static asn_SEQUENCE_specifics_t asn_SPC_ActionItem_specs_1 = { sizeof(struct ActionItem), diff --git a/tests/43-recursion-OK.asn1.-Pfwide-types b/tests/43-recursion-OK.asn1.-Pfwide-types index 7cbc587e..0e2b6de8 100644 --- a/tests/43-recursion-OK.asn1.-Pfwide-types +++ b/tests/43-recursion-OK.asn1.-Pfwide-types @@ -174,10 +174,10 @@ static ber_tlv_tag_t asn_DEF_Test_structure_1_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_Test_structure_1_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, 0, 0 }, /* t-member4 at 19 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 1 }, /* t-member2 at 16 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -1, 0 }, /* t-member3 at 17 */ - { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* t-member1 at 15 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, 0, 0 }, /* t-member4 */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 1 }, /* t-member2 */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -1, 0 }, /* t-member3 */ + { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* t-member1 */ }; static asn_SEQUENCE_specifics_t asn_SPC_Test_structure_1_specs_1 = { sizeof(struct Test_structure_1), @@ -348,10 +348,10 @@ static asn_TYPE_member_t asn_MBR_Choice_1_1[] = { }, }; static asn_TYPE_tag2member_t asn_MAP_Choice_1_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* and at 22 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* or at 23 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 }, /* not at 24 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 3, 0, 0 } /* other at 26 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* and */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* or */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 }, /* not */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 3, 0, 0 } /* other */ }; static asn_CHOICE_specifics_t asn_SPC_Choice_1_specs_1 = { sizeof(struct Choice_1), @@ -442,7 +442,7 @@ static ber_tlv_tag_t asn_DEF_Test_structure_2_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_Test_structure_2_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* m1 at 28 */ + { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* m1 */ }; static uint8_t asn_MAP_Test_structure_2_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { (0 << 7) @@ -539,7 +539,7 @@ static ber_tlv_tag_t asn_DEF_Test_structure_3_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_Test_structure_3_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* m1 at 29 */ + { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* m1 */ }; static uint8_t asn_MAP_Test_structure_3_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { (0 << 7) diff --git a/tests/44-choice-in-sequence-OK.asn1.-P b/tests/44-choice-in-sequence-OK.asn1.-P index 09bc8bae..2cb124c0 100644 --- a/tests/44-choice-in-sequence-OK.asn1.-P +++ b/tests/44-choice-in-sequence-OK.asn1.-P @@ -91,8 +91,8 @@ static asn_TYPE_member_t asn_MBR_e_6[] = { }, }; static asn_TYPE_tag2member_t asn_MAP_e_tag2el_6[] = { - { (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 0, 0, 0 }, /* f at 20 */ - { (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 } /* g at 21 */ + { (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 0, 0, 0 }, /* f */ + { (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 } /* g */ }; static asn_CHOICE_specifics_t asn_SPC_e_specs_6 = { sizeof(struct e), @@ -148,8 +148,8 @@ static asn_TYPE_member_t asn_MBR_h_9[] = { }, }; static asn_TYPE_tag2member_t asn_MAP_h_tag2el_9[] = { - { (ASN_TAG_CLASS_PRIVATE | (1 << 2)), 0, 0, 0 }, /* i at 24 */ - { (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 1, 0, 0 } /* j at 25 */ + { (ASN_TAG_CLASS_PRIVATE | (1 << 2)), 0, 0, 0 }, /* i */ + { (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 1, 0, 0 } /* j */ }; static asn_CHOICE_specifics_t asn_SPC_h_specs_9 = { sizeof(struct h), @@ -223,11 +223,11 @@ static asn_TYPE_member_t asn_MBR_b_3[] = { }, }; static asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = { - { (ASN_TAG_CLASS_PRIVATE | (5 << 2)), 0, 0, 0 }, /* c at 17 */ - { (ASN_TAG_CLASS_PRIVATE | (6 << 2)), 1, 0, 0 }, /* d at 18 */ - { (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 2, 0, 0 }, /* f at 20 */ - { (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 2, 0, 0 }, /* g at 21 */ - { (ASN_TAG_CLASS_PRIVATE | (9 << 2)), 3, 0, 0 } /* h at 24 */ + { (ASN_TAG_CLASS_PRIVATE | (5 << 2)), 0, 0, 0 }, /* c */ + { (ASN_TAG_CLASS_PRIVATE | (6 << 2)), 1, 0, 0 }, /* d */ + { (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 2, 0, 0 }, /* f */ + { (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 2, 0, 0 }, /* g */ + { (ASN_TAG_CLASS_PRIVATE | (9 << 2)), 3, 0, 0 } /* h */ }; static asn_CHOICE_specifics_t asn_SPC_b_specs_3 = { sizeof(struct b), @@ -287,12 +287,12 @@ static ber_tlv_tag_t asn_DEF_T_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = { - { (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 0, 0, 0 }, /* a at 15 */ - { (ASN_TAG_CLASS_PRIVATE | (5 << 2)), 1, 0, 0 }, /* c at 17 */ - { (ASN_TAG_CLASS_PRIVATE | (6 << 2)), 1, 0, 0 }, /* d at 18 */ - { (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 1, 0, 0 }, /* f at 20 */ - { (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 }, /* g at 21 */ - { (ASN_TAG_CLASS_PRIVATE | (9 << 2)), 1, 0, 0 } /* h at 24 */ + { (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 0, 0, 0 }, /* a */ + { (ASN_TAG_CLASS_PRIVATE | (5 << 2)), 1, 0, 0 }, /* c */ + { (ASN_TAG_CLASS_PRIVATE | (6 << 2)), 1, 0, 0 }, /* d */ + { (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 1, 0, 0 }, /* f */ + { (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 }, /* g */ + { (ASN_TAG_CLASS_PRIVATE | (9 << 2)), 1, 0, 0 } /* h */ }; static asn_SEQUENCE_specifics_t asn_SPC_T_specs_1 = { sizeof(struct T), diff --git a/tests/45-undefined-type-SE.asn1.-EFfknown-extern-type=KnownExt b/tests/45-undefined-type-SE.asn1.-EFfknown-extern-type=KnownExt index 994a8901..0abf7cce 100644 --- a/tests/45-undefined-type-SE.asn1.-EFfknown-extern-type=KnownExt +++ b/tests/45-undefined-type-SE.asn1.-EFfknown-extern-type=KnownExt @@ -1,5 +1,8 @@ -ModuleKnownExternType { iso org(3) dod(6) internet(1) private(4) enterprise(1) - spelio(9363) software(1) asn1c(5) test(1) 45 } +ModuleKnownExternType { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 45 } DEFINITIONS ::= BEGIN diff --git a/tests/46-redefine-OK.asn1.-PR b/tests/46-redefine-OK.asn1.-PR index 3dc4a06e..1d6715bd 100644 --- a/tests/46-redefine-OK.asn1.-PR +++ b/tests/46-redefine-OK.asn1.-PR @@ -158,7 +158,7 @@ static ber_tlv_tag_t asn_DEF_ConstructedType_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_ConstructedType_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 0, 0, 0 } /* field at 18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 0, 0, 0 } /* field */ }; static asn_SEQUENCE_specifics_t asn_SPC_ConstructedType_specs_1 = { sizeof(struct ConstructedType), diff --git a/tests/47-set-ext-OK.asn1.-Pfwide-types b/tests/47-set-ext-OK.asn1.-Pfwide-types index 0f08cd28..8abf6bb6 100644 --- a/tests/47-set-ext-OK.asn1.-Pfwide-types +++ b/tests/47-set-ext-OK.asn1.-Pfwide-types @@ -52,7 +52,7 @@ static ber_tlv_tag_t asn_DEF_T1_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_T1_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i at 14 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i */ }; static uint8_t asn_MAP_T1_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { (1 << 7) @@ -146,7 +146,7 @@ static ber_tlv_tag_t asn_DEF_T2_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_T2_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i at 15 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i */ }; static uint8_t asn_MAP_T2_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { (1 << 7) @@ -235,7 +235,7 @@ static asn_TYPE_member_t asn_MBR_T3_1[] = { }, }; static asn_TYPE_tag2member_t asn_MAP_T3_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i at 16 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i */ }; static asn_CHOICE_specifics_t asn_SPC_T3_specs_1 = { sizeof(struct T3), @@ -318,7 +318,7 @@ static asn_TYPE_member_t asn_MBR_T4_1[] = { }, }; static asn_TYPE_tag2member_t asn_MAP_T4_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i at 17 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i */ }; static asn_CHOICE_specifics_t asn_SPC_T4_specs_1 = { sizeof(struct T4), diff --git a/tests/49-real-life-OK.asn1.-E b/tests/49-real-life-OK.asn1.-E index 018bc6bd..ebb949fb 100644 --- a/tests/49-real-life-OK.asn1.-E +++ b/tests/49-real-life-OK.asn1.-E @@ -1,5 +1,8 @@ -ModuleSetChoiceExtensibility { iso org(3) dod(6) internet(1) private(4) - enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 49 } +ModuleSetChoiceExtensibility { iso org(3) + dod(6) internet(1) private(4) + enterprise(1) spelio(9363) + software(1) asn1c(5) test(1) + 49 } DEFINITIONS ::= BEGIN diff --git a/tests/50-constraint-OK.asn1.-EFprint-constraints b/tests/50-constraint-OK.asn1.-EFprint-constraints index 2ac128529fd8d0f56f6c5b63b9148130128d12bb..6f2d72e75c5ea90f545cccedb59af1721411b114 100644 GIT binary patch delta 55 pcmZ4GyTNyYCKDIu