aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2014-10-12 18:37:35 -0700
committerLev Walkin <vlm@lionet.info>2014-10-12 18:37:35 -0700
commita7591b5c7fc4775fc12cc2e1b407ed436b298c73 (patch)
treec517bffef3ebe7619e9b4620e846a6233fbb8f3c /tests
parent78d604fe9effde38b363c365f751298a0063d530 (diff)
regenerated tests based on Wim L patch
Diffstat (limited to 'tests')
-rw-r--r--tests/03-enum-OK.asn1.-Pfwide-types40
-rw-r--r--tests/104-param-1-OK.asn1.-Pfwide-types8
-rw-r--r--tests/105-param-2-OK.asn1.-Pfwide-types18
-rw-r--r--tests/106-param-constr-OK.asn1.-P6
-rw-r--r--tests/108-param-constr-3-OK.asn1.-Pfwide-types4
-rw-r--r--tests/110-param-3-OK.asn1.-Pfwide-types20
-rw-r--r--tests/119-per-strings-OK.asn1.-Pgen-PER48
-rw-r--r--tests/125-bitstring-constraint-OK.asn1.-P2
-rw-r--r--tests/126-per-extensions-OK.asn1.-Pgen-PER16
-rw-r--r--tests/127-per-long-OK.asn1.-Pgen-PER12
-rw-r--r--tests/131-per-empty-OK.asn1.-Pgen-PER2
-rw-r--r--tests/134-per-long-OK.asn1.-Pgen-PER4
-rw-r--r--tests/19-param-OK.asn1.-Pfwide-types18
-rw-r--r--tests/22-tags-OK.asn1.-Pfwide-types6
-rw-r--r--tests/30-set-OK.asn1.-Pfwide-types6
-rw-r--r--tests/31-set-of-OK.asn1.-Pfwide-types24
-rw-r--r--tests/32-sequence-of-OK.asn1.-P18
-rw-r--r--tests/37-indirect-choice-OK.asn1.-Pfwide-types14
-rw-r--r--tests/39-sequence-of-OK.asn1.-Pfwide-types10
-rw-r--r--tests/42-real-life-OK.asn1.-PR38
-rw-r--r--tests/43-recursion-OK.asn1.-Pfwide-types24
-rw-r--r--tests/44-choice-in-sequence-OK.asn1.-P10
-rw-r--r--tests/46-redefine-OK.asn1.-PR8
-rw-r--r--tests/47-set-ext-OK.asn1.-Pfwide-types16
-rw-r--r--tests/50-constraint-OK.asn1.-Pfwide-types94
-rw-r--r--tests/50-constraint-OK.asn1.-Pgen-PER102
-rw-r--r--tests/59-choice-extended-OK.asn1.-Pfwide-types4
-rw-r--r--tests/60-any-OK.asn1.-Pfwide-types10
-rw-r--r--tests/65-multi-tag-OK.asn1.-Pfnative-types24
-rw-r--r--tests/65-multi-tag-OK.asn1.-Pfwide-types24
-rw-r--r--tests/66-ref-simple-OK.asn1.-Pfwide-types10
-rw-r--r--tests/69-reserved-words-OK.asn1.-Pfwide-types8
-rw-r--r--tests/70-xer-test-OK.asn1.-Pfwide-types72
-rw-r--r--tests/72-same-names-OK.asn1.-Pfwide-types36
-rw-r--r--tests/73-circular-OK.asn1.-Pfwide-types30
-rw-r--r--tests/84-param-tags-OK.asn1.-Pfwide-types20
-rw-r--r--tests/88-integer-enum-OK.asn1.-Pfwide-types2
-rw-r--r--tests/89-bit-string-enum-OK.asn1.-Pfcompound-names2
-rw-r--r--tests/89-bit-string-enum-OK.asn1.-Pfwide-types2
-rw-r--r--tests/90-cond-int-type-OK.asn1.-P44
-rw-r--r--tests/90-cond-int-type-OK.asn1.-Pfwide-types44
-rw-r--r--tests/90-cond-int-type-OK.asn1.-Pgen-PER44
-rw-r--r--tests/91-cond-int-blessSize-OK.asn1.-Pfbless-SIZE10
-rw-r--r--tests/92-circular-loops-OK.asn1.-Pfindirect-choice62
-rw-r--r--tests/92-circular-loops-OK.asn1.-Pfwide-types62
-rw-r--r--tests/93-asn1c-controls-OK.asn1.-Pfwide-types14
-rw-r--r--tests/94-set-optionals-OK.asn1.-P6
-rw-r--r--tests/95-choice-per-order-OK.asn1.-Pfwide-types6
-rw-r--r--tests/95-choice-per-order-OK.asn1.-Pgen-PER10
-rw-r--r--tests/98-attribute-class-OK.asn1.-P4
50 files changed, 559 insertions, 559 deletions
diff --git a/tests/03-enum-OK.asn1.-Pfwide-types b/tests/03-enum-OK.asn1.-Pfwide-types
index 91bacaf2..ee906c61 100644
--- a/tests/03-enum-OK.asn1.-Pfwide-types
+++ b/tests/03-enum-OK.asn1.-Pfwide-types
@@ -109,21 +109,21 @@ Enum1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Enum1] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_Enum1_value2enum_1[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_Enum1_value2enum_1[] = {
{ 0, 3, "red" },
{ 1, 5, "green" },
{ 4, 4, "blue" },
{ 5, 5, "alpha" }
/* This list is extensible */
};
-static unsigned int asn_MAP_Enum1_enum2value_1[] = {
+static const unsigned int asn_MAP_Enum1_enum2value_1[] = {
3, /* alpha(5) */
2, /* blue(4) */
1, /* green(1) */
0 /* red(0) */
/* This list is extensible */
};
-static asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = {
asn_MAP_Enum1_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_Enum1_enum2value_1, /* N => "tag"; sorted by N */
4, /* Number of elements in the maps */
@@ -132,7 +132,7 @@ static asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_Enum1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Enum1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Enum1 = {
@@ -272,7 +272,7 @@ Enum2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Enum2] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_Enum2_value2enum_1[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_Enum2_value2enum_1[] = {
{ 0, 3, "red" },
{ 1, 5, "green" },
{ 12, 4, "beta" },
@@ -282,7 +282,7 @@ static asn_INTEGER_enum_map_t asn_MAP_Enum2_value2enum_1[] = {
{ 103, 5, "gamma" }
/* This list is extensible */
};
-static unsigned int asn_MAP_Enum2_enum2value_1[] = {
+static const unsigned int asn_MAP_Enum2_enum2value_1[] = {
5, /* alpha(46) */
2, /* beta(12) */
4, /* blue(45) */
@@ -292,7 +292,7 @@ static unsigned int asn_MAP_Enum2_enum2value_1[] = {
0 /* red(0) */
/* This list is extensible */
};
-static asn_INTEGER_specifics_t asn_SPC_Enum2_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_Enum2_specs_1 = {
asn_MAP_Enum2_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_Enum2_enum2value_1, /* N => "tag"; sorted by N */
7, /* Number of elements in the maps */
@@ -301,7 +301,7 @@ static asn_INTEGER_specifics_t asn_SPC_Enum2_specs_1 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_Enum2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Enum2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Enum2 = {
@@ -437,19 +437,19 @@ Enum3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Enum3] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_Enum3_value2enum_1[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_Enum3_value2enum_1[] = {
{ 0, 1, "a" },
{ 1, 1, "c" },
{ 3, 1, "b" }
/* This list is extensible */
};
-static unsigned int asn_MAP_Enum3_enum2value_1[] = {
+static const unsigned int asn_MAP_Enum3_enum2value_1[] = {
0, /* a(0) */
2, /* b(3) */
1 /* c(1) */
/* This list is extensible */
};
-static asn_INTEGER_specifics_t asn_SPC_Enum3_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_Enum3_specs_1 = {
asn_MAP_Enum3_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_Enum3_enum2value_1, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
@@ -458,7 +458,7 @@ static asn_INTEGER_specifics_t asn_SPC_Enum3_specs_1 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_Enum3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Enum3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Enum3 = {
@@ -595,21 +595,21 @@ Enum4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Enum4] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_Enum4_value2enum_1[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_Enum4_value2enum_1[] = {
{ 0, 1, "a" },
{ 1, 1, "b" },
{ 3, 1, "c" },
{ 4, 1, "d" }
/* This list is extensible */
};
-static unsigned int asn_MAP_Enum4_enum2value_1[] = {
+static const unsigned int asn_MAP_Enum4_enum2value_1[] = {
0, /* a(0) */
1, /* b(1) */
2, /* c(3) */
3 /* d(4) */
/* This list is extensible */
};
-static asn_INTEGER_specifics_t asn_SPC_Enum4_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_Enum4_specs_1 = {
asn_MAP_Enum4_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_Enum4_enum2value_1, /* N => "tag"; sorted by N */
4, /* Number of elements in the maps */
@@ -618,7 +618,7 @@ static asn_INTEGER_specifics_t asn_SPC_Enum4_specs_1 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_Enum4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Enum4_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Enum4 = {
@@ -754,19 +754,19 @@ Enum5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Enum5] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_Enum5_value2enum_1[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_Enum5_value2enum_1[] = {
{ 0, 1, "a" },
{ 25, 1, "z" },
{ 26, 1, "d" }
/* This list is extensible */
};
-static unsigned int asn_MAP_Enum5_enum2value_1[] = {
+static const unsigned int asn_MAP_Enum5_enum2value_1[] = {
0, /* a(0) */
2, /* d(26) */
1 /* z(25) */
/* This list is extensible */
};
-static asn_INTEGER_specifics_t asn_SPC_Enum5_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_Enum5_specs_1 = {
asn_MAP_Enum5_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_Enum5_enum2value_1, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
@@ -775,7 +775,7 @@ static asn_INTEGER_specifics_t asn_SPC_Enum5_specs_1 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_Enum5_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Enum5_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Enum5 = {
diff --git a/tests/104-param-1-OK.asn1.-Pfwide-types b/tests/104-param-1-OK.asn1.-Pfwide-types
index befcc2a3..1094f42d 100644
--- a/tests/104-param-1-OK.asn1.-Pfwide-types
+++ b/tests/104-param-1-OK.asn1.-Pfwide-types
@@ -39,7 +39,7 @@ static asn_TYPE_member_t asn_MBR_Collection_16P0_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_Collection_16P0_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Collection_16P0_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_Collection_16P0_specs_1 = {
@@ -82,7 +82,7 @@ static asn_TYPE_member_t asn_MBR_Collection_16P1_3[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_Collection_16P1_tags_3[] = {
+static const ber_tlv_tag_t asn_DEF_Collection_16P1_tags_3[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_Collection_16P1_specs_3 = {
@@ -156,10 +156,10 @@ static asn_TYPE_member_t asn_MBR_Bunch_1[] = {
.name = "field-IA5String"
},
};
-static ber_tlv_tag_t asn_DEF_Bunch_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Bunch_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 1 }, /* field-REAL */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, -1, 0 } /* field-IA5String */
};
diff --git a/tests/105-param-2-OK.asn1.-Pfwide-types b/tests/105-param-2-OK.asn1.-Pfwide-types
index 33fa484a..1145f153 100644
--- a/tests/105-param-2-OK.asn1.-Pfwide-types
+++ b/tests/105-param-2-OK.asn1.-Pfwide-types
@@ -58,10 +58,10 @@ static asn_TYPE_member_t asn_MBR_SIGNED_16P0_1[] = {
.name = "signed"
},
};
-static ber_tlv_tag_t asn_DEF_SIGNED_16P0_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_SIGNED_16P0_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 0, 0, 0 } /* signed */
};
static asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P0_specs_1 = {
@@ -108,13 +108,13 @@ static asn_TYPE_member_t asn_MBR_signed_4[] = {
.name = "a"
},
};
-static ber_tlv_tag_t asn_DEF_signed_tags_4[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_signed_tag2el_4[] = {
{ (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] = {
+static const uint8_t asn_MAP_signed_mmap_4[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7)
};
static asn_SET_specifics_t asn_SPC_signed_specs_4 = {
@@ -164,10 +164,10 @@ static asn_TYPE_member_t asn_MBR_SIGNED_16P1_3[] = {
.name = "signed"
},
};
-static ber_tlv_tag_t asn_DEF_SIGNED_16P1_tags_3[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_SIGNED_16P1_tag2el_3[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* signed */
};
static asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P1_specs_3 = {
@@ -302,7 +302,7 @@ SignedREAL_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [SignedREAL] >>> ***/
-static ber_tlv_tag_t asn_DEF_SignedREAL_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SignedREAL_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_TYPE_descriptor_t asn_DEF_SignedREAL = {
@@ -427,7 +427,7 @@ SignedSET_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [SignedSET] >>> ***/
-static ber_tlv_tag_t asn_DEF_SignedSET_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SignedSET_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_TYPE_descriptor_t asn_DEF_SignedSET = {
diff --git a/tests/106-param-constr-OK.asn1.-P b/tests/106-param-constr-OK.asn1.-P
index b293eba1..104064e9 100644
--- a/tests/106-param-constr-OK.asn1.-P
+++ b/tests/106-param-constr-OK.asn1.-P
@@ -146,10 +146,10 @@ static asn_TYPE_member_t asn_MBR_Narrow_15P0_1[] = {
.name = "narrow3"
},
};
-static ber_tlv_tag_t asn_DEF_Narrow_15P0_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Narrow_15P0_tag2el_1[] = {
{ (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 */
@@ -286,7 +286,7 @@ NarrowInteger_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NarrowInteger] >>> ***/
-static ber_tlv_tag_t asn_DEF_NarrowInteger_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NarrowInteger_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NarrowInteger = {
diff --git a/tests/108-param-constr-3-OK.asn1.-Pfwide-types b/tests/108-param-constr-3-OK.asn1.-Pfwide-types
index e7d1ea20..f259387a 100644
--- a/tests/108-param-constr-3-OK.asn1.-Pfwide-types
+++ b/tests/108-param-constr-3-OK.asn1.-Pfwide-types
@@ -120,7 +120,7 @@ MinMax_16P0_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [MinMax] >>> ***/
-static ber_tlv_tag_t asn_DEF_MinMax_16P0_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_MinMax_16P0_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_MinMax_16P0 = {
@@ -268,7 +268,7 @@ ThreePlus_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [ThreePlus] >>> ***/
-static ber_tlv_tag_t asn_DEF_ThreePlus_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_ThreePlus_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_ThreePlus = {
diff --git a/tests/110-param-3-OK.asn1.-Pfwide-types b/tests/110-param-3-OK.asn1.-Pfwide-types
index 5ced128c..a47c069c 100644
--- a/tests/110-param-3-OK.asn1.-Pfwide-types
+++ b/tests/110-param-3-OK.asn1.-Pfwide-types
@@ -149,10 +149,10 @@ static asn_TYPE_member_t asn_MBR_Flag_16P0_1[] = {
.name = "field"
},
};
-static ber_tlv_tag_t asn_DEF_Flag_16P0_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Flag_16P0_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* field */
};
static asn_SEQUENCE_specifics_t asn_SPC_Flag_16P0_specs_1 = {
@@ -208,17 +208,17 @@ static int asn_DFL_7_set_5(int set_value, void **sptr) {
return (value == 5);
}
}
-static asn_INTEGER_enum_map_t asn_MAP_field_value2enum_7[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_field_value2enum_7[] = {
{ 3, 3, "red" },
{ 4, 5, "green" },
{ 5, 4, "blue" }
};
-static unsigned int asn_MAP_field_enum2value_7[] = {
+static const unsigned int asn_MAP_field_enum2value_7[] = {
2, /* blue(5) */
1, /* green(4) */
0 /* red(3) */
};
-static asn_INTEGER_specifics_t asn_SPC_field_specs_7 = {
+static const asn_INTEGER_specifics_t asn_SPC_field_specs_7 = {
asn_MAP_field_value2enum_7, /* "tag" => N; sorted by tag */
asn_MAP_field_enum2value_7, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
@@ -227,7 +227,7 @@ static asn_INTEGER_specifics_t asn_SPC_field_specs_7 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_field_tags_7[] = {
+static const ber_tlv_tag_t asn_DEF_field_tags_7[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
static /* Use -fall-defs-global to expose */
@@ -265,10 +265,10 @@ static asn_TYPE_member_t asn_MBR_Flag_16P1_6[] = {
.name = "field"
},
};
-static ber_tlv_tag_t asn_DEF_Flag_16P1_tags_6[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Flag_16P1_tag2el_6[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* field */
};
static asn_SEQUENCE_specifics_t asn_SPC_Flag_16P1_specs_6 = {
@@ -403,7 +403,7 @@ IntegerColorFlag_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [IntegerColorFlag] >>> ***/
-static ber_tlv_tag_t asn_DEF_IntegerColorFlag_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_IntegerColorFlag_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_TYPE_descriptor_t asn_DEF_IntegerColorFlag = {
@@ -528,7 +528,7 @@ EnumeratedColorFlag_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [EnumeratedColorFlag] >>> ***/
-static ber_tlv_tag_t asn_DEF_EnumeratedColorFlag_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_EnumeratedColorFlag_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_TYPE_descriptor_t asn_DEF_EnumeratedColorFlag = {
diff --git a/tests/119-per-strings-OK.asn1.-Pgen-PER b/tests/119-per-strings-OK.asn1.-Pgen-PER
index 041d7c56..f6fe8660 100644
--- a/tests/119-per-strings-OK.asn1.-Pgen-PER
+++ b/tests/119-per-strings-OK.asn1.-Pgen-PER
@@ -98,7 +98,7 @@ static int check_permitted_alphabet_6(const void *sptr) {
return 0;
}
-static int permitted_alphabet_table_7[256] = {
+static const int permitted_alphabet_table_7[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
@@ -106,12 +106,12 @@ static int permitted_alphabet_table_7[256] = {
0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* AB */
0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 0, 0, 0, 0, 0, /* XYZ */
};
-static int permitted_alphabet_code2value_7[5] = {
+static const int permitted_alphabet_code2value_7[5] = {
65,66,88,89,90,};
static int check_permitted_alphabet_7(const void *sptr) {
- int *table = permitted_alphabet_table_7;
+ const int *table = permitted_alphabet_table_7;
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
@@ -150,7 +150,7 @@ static int check_permitted_alphabet_10(const void *sptr) {
return 0;
}
-static int permitted_alphabet_table_11[256] = {
+static const int permitted_alphabet_table_11[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
@@ -158,12 +158,12 @@ static int permitted_alphabet_table_11[256] = {
0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* AB */
0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 0, 0, 0, 0, 0, /* XYZ */
};
-static int permitted_alphabet_code2value_11[5] = {
+static const int permitted_alphabet_code2value_11[5] = {
65,66,88,89,90,};
static int check_permitted_alphabet_11(const void *sptr) {
- int *table = permitted_alphabet_table_11;
+ const int *table = permitted_alphabet_table_11;
/* The underlying type is VisibleString */
const VisibleString_t *st = (const VisibleString_t *)sptr;
const uint8_t *ch = st->buf;
@@ -189,7 +189,7 @@ static int check_permitted_alphabet_13(const void *sptr) {
return 0;
}
-static int permitted_alphabet_table_14[256] = {
+static const int permitted_alphabet_table_14[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
@@ -197,12 +197,12 @@ static int permitted_alphabet_table_14[256] = {
0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* AB */
0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 0, 0, 0, 0, 0, /* XYZ */
};
-static int permitted_alphabet_code2value_14[5] = {
+static const int permitted_alphabet_code2value_14[5] = {
65,66,88,89,90,};
static int check_permitted_alphabet_14(const void *sptr) {
- int *table = permitted_alphabet_table_14;
+ const int *table = permitted_alphabet_table_14;
/* The underlying type is PrintableString */
const PrintableString_t *st = (const PrintableString_t *)sptr;
const uint8_t *ch = st->buf;
@@ -241,18 +241,18 @@ static int check_permitted_alphabet_17(const void *sptr) {
return 0;
}
-static int permitted_alphabet_table_18[256] = {
+static const int permitted_alphabet_table_18[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, /* 1 9 */
};
-static int permitted_alphabet_code2value_18[2] = {
+static const int permitted_alphabet_code2value_18[2] = {
49,57,};
static int check_permitted_alphabet_18(const void *sptr) {
- int *table = permitted_alphabet_table_18;
+ const int *table = permitted_alphabet_table_18;
/* The underlying type is NumericString */
const NumericString_t *st = (const NumericString_t *)sptr;
const uint8_t *ch = st->buf;
@@ -265,7 +265,7 @@ static int check_permitted_alphabet_18(const void *sptr) {
return 0;
}
-static int permitted_alphabet_table_21[128] = {
+static const int permitted_alphabet_table_21[128] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
@@ -275,7 +275,7 @@ static int permitted_alphabet_table_21[128] = {
};
static int check_permitted_alphabet_21(const void *sptr) {
- int *table = permitted_alphabet_table_21;
+ const int *table = permitted_alphabet_table_21;
/* The underlying type is UTF8String */
const UTF8String_t *st = (const UTF8String_t *)sptr;
const uint8_t *ch = st->buf;
@@ -334,7 +334,7 @@ static int check_permitted_alphabet_25(const void *sptr) {
return 0;
}
-static int permitted_alphabet_table_26[256] = {
+static const int permitted_alphabet_table_26[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
@@ -342,12 +342,12 @@ static int permitted_alphabet_table_26[256] = {
0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* AB */
0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 0, 0, 0, 0, 0, /* XYZ */
};
-static int permitted_alphabet_code2value_26[5] = {
+static const int permitted_alphabet_code2value_26[5] = {
65,66,88,89,90,};
static int check_permitted_alphabet_26(const void *sptr) {
- int *table = permitted_alphabet_table_26;
+ const int *table = permitted_alphabet_table_26;
/* The underlying type is BMPString */
const BMPString_t *st = (const BMPString_t *)sptr;
const uint8_t *ch = st->buf;
@@ -414,7 +414,7 @@ static int check_permitted_alphabet_30(const void *sptr) {
return 0;
}
-static int permitted_alphabet_table_31[256] = {
+static const int permitted_alphabet_table_31[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
@@ -422,12 +422,12 @@ static int permitted_alphabet_table_31[256] = {
0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* AB */
0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 0, 0, 0, 0, 0, /* XYZ */
};
-static int permitted_alphabet_code2value_31[5] = {
+static const int permitted_alphabet_code2value_31[5] = {
65,66,88,89,90,};
static int check_permitted_alphabet_31(const void *sptr) {
- int *table = permitted_alphabet_table_31;
+ const int *table = permitted_alphabet_table_31;
/* The underlying type is UniversalString */
const UniversalString_t *st = (const UniversalString_t *)sptr;
const uint8_t *ch = st->buf;
@@ -1192,7 +1192,7 @@ static asn_TYPE_member_t asn_MBR_many_2[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_many_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_many_tags_2[] = {
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
@@ -1508,11 +1508,11 @@ static asn_TYPE_member_t asn_MBR_PDU_1[] = {
.name = "oid"
},
};
-static int asn_MAP_PDU_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 };
-static ber_tlv_tag_t asn_DEF_PDU_tags_1[] = {
+static const int asn_MAP_PDU_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 };
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* many */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ia5 */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ia5-c */
diff --git a/tests/125-bitstring-constraint-OK.asn1.-P b/tests/125-bitstring-constraint-OK.asn1.-P
index ef698d2e..fa58bf24 100644
--- a/tests/125-bitstring-constraint-OK.asn1.-P
+++ b/tests/125-bitstring-constraint-OK.asn1.-P
@@ -119,7 +119,7 @@ T_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T] >>> ***/
-static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (3 << 2))
};
asn_TYPE_descriptor_t asn_DEF_T = {
diff --git a/tests/126-per-extensions-OK.asn1.-Pgen-PER b/tests/126-per-extensions-OK.asn1.-Pgen-PER
index 609efbd3..0f53a295 100644
--- a/tests/126-per-extensions-OK.asn1.-Pgen-PER
+++ b/tests/126-per-extensions-OK.asn1.-Pgen-PER
@@ -74,11 +74,11 @@ static asn_TYPE_member_t asn_MBR_PDU_1[] = {
.name = "pdu-2"
},
};
-static int asn_MAP_PDU_oms_1[] = { 0, 1, 2, 3 };
-static ber_tlv_tag_t asn_DEF_PDU_tags_1[] = {
+static const int asn_MAP_PDU_oms_1[] = { 0, 1, 2, 3 };
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = {
{ (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 */
@@ -177,11 +177,11 @@ static asn_TYPE_member_t asn_MBR_Singleton_1[] = {
.name = "opt-z"
},
};
-static int asn_MAP_Singleton_oms_1[] = { 0 };
-static ber_tlv_tag_t asn_DEF_Singleton_tags_1[] = {
+static const int asn_MAP_Singleton_oms_1[] = { 0 };
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Singleton_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* opt-z */
};
static asn_SEQUENCE_specifics_t asn_SPC_Singleton_specs_1 = {
@@ -296,8 +296,8 @@ static asn_TYPE_member_t asn_MBR_PDU_2_1[] = {
.name = "ext0"
},
};
-static int asn_MAP_PDU_2_cmap_1[] = { 0, 2, 1 };
-static asn_TYPE_tag2member_t asn_MAP_PDU_2_tag2el_1[] = {
+static const int asn_MAP_PDU_2_cmap_1[] = { 0, 2, 1 };
+static const asn_TYPE_tag2member_t asn_MAP_PDU_2_tag2el_1[] = {
{ (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 */
diff --git a/tests/127-per-long-OK.asn1.-Pgen-PER b/tests/127-per-long-OK.asn1.-Pgen-PER
index 3a113156..94176f74 100644
--- a/tests/127-per-long-OK.asn1.-Pgen-PER
+++ b/tests/127-per-long-OK.asn1.-Pgen-PER
@@ -354,12 +354,12 @@ static asn_per_constraints_t asn_PER_memb_unsplit32_constr_5 GCC_NOTUSED = {
/*** <<< STAT-DEFS [T] >>> ***/
-static asn_INTEGER_specifics_t asn_SPC_unsigned32_specs_4 = {
+static const asn_INTEGER_specifics_t asn_SPC_unsigned32_specs_4 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_unsigned32_tags_4[] = {
+static const ber_tlv_tag_t asn_DEF_unsigned32_tags_4[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
@@ -388,12 +388,12 @@ asn_TYPE_descriptor_t asn_DEF_unsigned32_4 = {
&asn_SPC_unsigned32_specs_4 /* Additional specs */
};
-static asn_INTEGER_specifics_t asn_SPC_unsplit32_specs_5 = {
+static const asn_INTEGER_specifics_t asn_SPC_unsplit32_specs_5 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_unsplit32_tags_5[] = {
+static const ber_tlv_tag_t asn_DEF_unsplit32_tags_5[] = {
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
@@ -460,10 +460,10 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
.name = "unsplit32"
},
};
-static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
{ (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 */
diff --git a/tests/131-per-empty-OK.asn1.-Pgen-PER b/tests/131-per-empty-OK.asn1.-Pgen-PER
index 028ee3e4..aa6587ea 100644
--- a/tests/131-per-empty-OK.asn1.-Pgen-PER
+++ b/tests/131-per-empty-OK.asn1.-Pgen-PER
@@ -17,7 +17,7 @@ extern asn_TYPE_descriptor_t asn_DEF_T;
/*** <<< STAT-DEFS [T] >>> ***/
-static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SEQUENCE_specifics_t asn_SPC_T_specs_1 = {
diff --git a/tests/134-per-long-OK.asn1.-Pgen-PER b/tests/134-per-long-OK.asn1.-Pgen-PER
index 89dfc6ed..3c38d457 100644
--- a/tests/134-per-long-OK.asn1.-Pgen-PER
+++ b/tests/134-per-long-OK.asn1.-Pgen-PER
@@ -210,10 +210,10 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
.name = "signed33ext"
},
};
-static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* unsigned33 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* unsigned42 */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* signed33 */
diff --git a/tests/19-param-OK.asn1.-Pfwide-types b/tests/19-param-OK.asn1.-Pfwide-types
index 6024fe8b..b4185906 100644
--- a/tests/19-param-OK.asn1.-Pfwide-types
+++ b/tests/19-param-OK.asn1.-Pfwide-types
@@ -94,10 +94,10 @@ static asn_TYPE_member_t asn_MBR_toBeSigned_2[] = {
.name = "issuer"
},
};
-static ber_tlv_tag_t asn_DEF_toBeSigned_tags_2[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_toBeSigned_tag2el_2[] = {
{ (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 */
@@ -165,10 +165,10 @@ static asn_TYPE_member_t asn_MBR_SIGNED_15P0_1[] = {
.name = "signature"
},
};
-static ber_tlv_tag_t asn_DEF_SIGNED_15P0_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_SIGNED_15P0_tag2el_1[] = {
{ (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 */
@@ -305,7 +305,7 @@ Certificate_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Certificate] >>> ***/
-static ber_tlv_tag_t asn_DEF_Certificate_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Certificate_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Certificate = {
@@ -371,7 +371,7 @@ static asn_TYPE_member_t asn_MBR_Name_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_Name_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Name_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_Name_specs_1 = {
@@ -425,7 +425,7 @@ extern asn_TYPE_descriptor_t asn_DEF_RelativeDistinguishedName;
/*** <<< CTABLES [RelativeDistinguishedName] >>> ***/
-static int permitted_alphabet_table_2[256] = {
+static const int permitted_alphabet_table_2[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 0, /* ,-. */
@@ -437,7 +437,7 @@ static int permitted_alphabet_table_2[256] = {
};
static int check_permitted_alphabet_2(const void *sptr) {
- int *table = permitted_alphabet_table_2;
+ const int *table = permitted_alphabet_table_2;
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
@@ -491,7 +491,7 @@ static asn_TYPE_member_t asn_MBR_RelativeDistinguishedName_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_RelativeDistinguishedName_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_RelativeDistinguishedName_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_RelativeDistinguishedName_specs_1 = {
diff --git a/tests/22-tags-OK.asn1.-Pfwide-types b/tests/22-tags-OK.asn1.-Pfwide-types
index fe8d29a9..50c0e017 100644
--- a/tests/22-tags-OK.asn1.-Pfwide-types
+++ b/tests/22-tags-OK.asn1.-Pfwide-types
@@ -61,7 +61,7 @@ static asn_TYPE_member_t asn_MBR_b_3[] = {
.name = "n"
},
};
-static asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = {
+static const asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* i */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* n */
};
@@ -127,10 +127,10 @@ static asn_TYPE_member_t asn_MBR_T1_1[] = {
.name = "c"
},
};
-static ber_tlv_tag_t asn_DEF_T1_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T1_tag2el_1[] = {
{ (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 */
diff --git a/tests/30-set-OK.asn1.-Pfwide-types b/tests/30-set-OK.asn1.-Pfwide-types
index c577dc76..e3de21dd 100644
--- a/tests/30-set-OK.asn1.-Pfwide-types
+++ b/tests/30-set-OK.asn1.-Pfwide-types
@@ -72,15 +72,15 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
.name = "b"
},
};
-static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
{ (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] = {
+static const uint8_t asn_MAP_T_mmap_1[(3 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7) | (1 << 6) | (0 << 5)
};
static asn_SET_specifics_t asn_SPC_T_specs_1 = {
diff --git a/tests/31-set-of-OK.asn1.-Pfwide-types b/tests/31-set-of-OK.asn1.-Pfwide-types
index f8365d24..59bc7f9b 100644
--- a/tests/31-set-of-OK.asn1.-Pfwide-types
+++ b/tests/31-set-of-OK.asn1.-Pfwide-types
@@ -38,7 +38,7 @@ static asn_TYPE_member_t asn_MBR_Forest_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_Forest_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Forest_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_Forest_specs_1 = {
@@ -112,10 +112,10 @@ static asn_TYPE_member_t asn_MBR_Tree_1[] = {
.name = "width"
},
};
-static ber_tlv_tag_t asn_DEF_Tree_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Tree_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* height */
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* width */
};
@@ -252,7 +252,7 @@ static asn_TYPE_member_t asn_MBR_trees_2[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_trees_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_trees_tags_2[] = {
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
@@ -297,10 +297,10 @@ static asn_TYPE_member_t asn_MBR_Member_5[] = {
.name = "cup-of-coffee"
},
};
-static ber_tlv_tag_t asn_DEF_Member_tags_5[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_5[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* cup-of-coffee */
};
static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_5 = {
@@ -348,7 +348,7 @@ static asn_TYPE_member_t asn_MBR_anything_4[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_anything_tags_4[] = {
+static const ber_tlv_tag_t asn_DEF_anything_tags_4[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
@@ -402,7 +402,7 @@ static asn_TYPE_member_t asn_MBR_other_9[] = {
.name = "b"
},
};
-static asn_TYPE_tag2member_t asn_MAP_other_tag2el_9[] = {
+static const asn_TYPE_tag2member_t asn_MAP_other_tag2el_9[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* b */
};
@@ -468,21 +468,21 @@ static asn_TYPE_member_t asn_MBR_Stuff_1[] = {
.name = "other"
},
};
-static ber_tlv_tag_t asn_DEF_Stuff_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_1[] = {
{ (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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_cxer_1[] = {
{ (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] = {
+static const uint8_t asn_MAP_Stuff_mmap_1[(3 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(0 << 7) | (0 << 6) | (0 << 5)
};
static asn_SET_specifics_t asn_SPC_Stuff_specs_1 = {
diff --git a/tests/32-sequence-of-OK.asn1.-P b/tests/32-sequence-of-OK.asn1.-P
index 901026c7..a6c31067 100644
--- a/tests/32-sequence-of-OK.asn1.-P
+++ b/tests/32-sequence-of-OK.asn1.-P
@@ -38,7 +38,7 @@ static asn_TYPE_member_t asn_MBR_Programming_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_Programming_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Programming_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_Programming_specs_1 = {
@@ -110,7 +110,7 @@ static asn_TYPE_member_t asn_MBR_Fault_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_Fault_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Fault_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_Fault_specs_1 = {
@@ -165,7 +165,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Error;
/*** <<< STAT-DEFS [Error] >>> ***/
-static ber_tlv_tag_t asn_DEF_Error_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Error_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SEQUENCE_specifics_t asn_SPC_Error_specs_1 = {
@@ -248,7 +248,7 @@ static asn_TYPE_member_t asn_MBR_seqOfMan_3[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_seqOfMan_tags_3[] = {
+static const ber_tlv_tag_t asn_DEF_seqOfMan_tags_3[] = {
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
@@ -302,10 +302,10 @@ static asn_TYPE_member_t asn_MBR_SeqWithMandatory_1[] = {
.name = "seqOfMan"
},
};
-static ber_tlv_tag_t asn_DEF_SeqWithMandatory_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_SeqWithMandatory_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString */
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfMan */
};
@@ -390,7 +390,7 @@ static asn_TYPE_member_t asn_MBR_seqOfOpt_3[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_seqOfOpt_tags_3[] = {
+static const ber_tlv_tag_t asn_DEF_seqOfOpt_tags_3[] = {
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
@@ -444,10 +444,10 @@ static asn_TYPE_member_t asn_MBR_SeqWithOptional_1[] = {
.name = "seqOfOpt"
},
};
-static ber_tlv_tag_t asn_DEF_SeqWithOptional_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_SeqWithOptional_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString */
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfOpt */
};
diff --git a/tests/37-indirect-choice-OK.asn1.-Pfwide-types b/tests/37-indirect-choice-OK.asn1.-Pfwide-types
index e1c9ed10..88b7ca66 100644
--- a/tests/37-indirect-choice-OK.asn1.-Pfwide-types
+++ b/tests/37-indirect-choice-OK.asn1.-Pfwide-types
@@ -76,7 +76,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
.name = "t-d"
},
};
-static asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
{ (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 */
@@ -168,7 +168,7 @@ static asn_TYPE_member_t asn_MBR_Choice1_1[] = {
.name = "c-b"
},
};
-static asn_TYPE_tag2member_t asn_MAP_Choice1_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice1_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* c-b */
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* c-a */
};
@@ -281,10 +281,10 @@ static asn_TYPE_member_t asn_MBR_Choice2_1[] = {
.name = "c-e"
},
};
-static ber_tlv_tag_t asn_DEF_Choice2_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = {
{ (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 */
@@ -423,7 +423,7 @@ Choice3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Choice3] >>> ***/
-static ber_tlv_tag_t asn_DEF_Choice3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Choice3_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (2 << 2))
};
@@ -549,7 +549,7 @@ Choice4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Choice4] >>> ***/
-static ber_tlv_tag_t asn_DEF_Choice4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Choice4_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (2 << 2))
};
@@ -675,7 +675,7 @@ Choice5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Choice5] >>> ***/
-static ber_tlv_tag_t asn_DEF_Choice5_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Choice5_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Choice5 = {
diff --git a/tests/39-sequence-of-OK.asn1.-Pfwide-types b/tests/39-sequence-of-OK.asn1.-Pfwide-types
index f4dff372..1a47de9c 100644
--- a/tests/39-sequence-of-OK.asn1.-Pfwide-types
+++ b/tests/39-sequence-of-OK.asn1.-Pfwide-types
@@ -46,7 +46,7 @@ static asn_TYPE_member_t asn_MBR_collection_3[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_collection_tags_3[] = {
+static const ber_tlv_tag_t asn_DEF_collection_tags_3[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_collection_specs_3 = {
@@ -99,10 +99,10 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
.name = "collection"
},
};
-static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* int */
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* collection */
};
@@ -182,10 +182,10 @@ static asn_TYPE_member_t asn_MBR_T2_1[] = {
.name = "str"
},
};
-static ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T2_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* flag */
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* str */
};
diff --git a/tests/42-real-life-OK.asn1.-PR b/tests/42-real-life-OK.asn1.-PR
index d0588c31..a379cdd2 100644
--- a/tests/42-real-life-OK.asn1.-PR
+++ b/tests/42-real-life-OK.asn1.-PR
@@ -79,7 +79,7 @@ static asn_TYPE_member_t asn_MBR_varsets_3[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_varsets_tags_3[] = {
+static const ber_tlv_tag_t asn_DEF_varsets_tags_3[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_varsets_specs_3 = {
@@ -132,10 +132,10 @@ static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
.name = "varsets"
},
};
-static ber_tlv_tag_t asn_DEF_LogLine_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_LogLine_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets */
{ (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 } /* line-digest */
};
@@ -246,7 +246,7 @@ static asn_TYPE_member_t asn_MBR_vparts_2[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_vparts_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_vparts_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_vparts_specs_2 = {
@@ -299,10 +299,10 @@ static asn_TYPE_member_t asn_MBR_VariablePartSet_1[] = {
.name = "resolution"
},
};
-static ber_tlv_tag_t asn_DEF_VariablePartSet_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_VariablePartSet_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts */
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* resolution */
};
@@ -436,7 +436,7 @@ static asn_TYPE_member_t asn_MBR_vset_2[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_vset_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_vset_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_vset_specs_2 = {
@@ -489,10 +489,10 @@ static asn_TYPE_member_t asn_MBR_vrange_4[] = {
.name = "to"
},
};
-static ber_tlv_tag_t asn_DEF_vrange_tags_4[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_vrange_tag2el_4[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from */
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to */
};
@@ -550,7 +550,7 @@ static asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
.name = "vrange"
},
};
-static asn_TYPE_tag2member_t asn_MAP_VariablePart_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_VariablePart_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* vset */
};
@@ -720,19 +720,19 @@ accept_as_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [ActionItem] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_accept_as_value2enum_2[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_accept_as_value2enum_2[] = {
{ 0, 7, "unknown" },
{ 1, 4, "safe" },
{ 2, 6, "unsafe" }
/* This list is extensible */
};
-static unsigned int asn_MAP_accept_as_enum2value_2[] = {
+static const unsigned int asn_MAP_accept_as_enum2value_2[] = {
1, /* safe(1) */
0, /* unknown(0) */
2 /* unsafe(2) */
/* This list is extensible */
};
-static asn_INTEGER_specifics_t asn_SPC_accept_as_specs_2 = {
+static const asn_INTEGER_specifics_t asn_SPC_accept_as_specs_2 = {
asn_MAP_accept_as_value2enum_2, /* "tag" => N; sorted by tag */
asn_MAP_accept_as_enum2value_2, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
@@ -741,7 +741,7 @@ static asn_INTEGER_specifics_t asn_SPC_accept_as_specs_2 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_accept_as_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_accept_as_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
static /* Use -fall-defs-global to expose */
@@ -779,7 +779,7 @@ static asn_TYPE_member_t asn_MBR_email_9[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_email_tags_9[] = {
+static const ber_tlv_tag_t asn_DEF_email_tags_9[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_email_specs_9 = {
@@ -832,10 +832,10 @@ static asn_TYPE_member_t asn_MBR_notify_7[] = {
.name = "email"
},
};
-static ber_tlv_tag_t asn_DEF_notify_tags_7[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_notify_tag2el_7[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email */
};
@@ -893,10 +893,10 @@ static asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
.name = "notify"
},
};
-static ber_tlv_tag_t asn_DEF_ActionItem_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_ActionItem_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as */
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* notify */
};
diff --git a/tests/43-recursion-OK.asn1.-Pfwide-types b/tests/43-recursion-OK.asn1.-Pfwide-types
index 0e2b6de8..6ea4bb9d 100644
--- a/tests/43-recursion-OK.asn1.-Pfwide-types
+++ b/tests/43-recursion-OK.asn1.-Pfwide-types
@@ -55,7 +55,7 @@ static asn_TYPE_member_t asn_MBR_t_member1_2[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_t_member1_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_t_member1_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_t_member1_specs_2 = {
@@ -99,7 +99,7 @@ static asn_TYPE_member_t asn_MBR_t_member2_4[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_t_member2_tags_4[] = {
+static const ber_tlv_tag_t asn_DEF_t_member2_tags_4[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_t_member2_specs_4 = {
@@ -170,10 +170,10 @@ static asn_TYPE_member_t asn_MBR_Test_structure_1_1[] = {
.name = "t-member4"
},
};
-static ber_tlv_tag_t asn_DEF_Test_structure_1_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Test_structure_1_tag2el_1[] = {
{ (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 */
@@ -275,7 +275,7 @@ static asn_TYPE_member_t asn_MBR_or_3[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_or_tags_3[] = {
+static const ber_tlv_tag_t asn_DEF_or_tags_3[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
@@ -347,7 +347,7 @@ static asn_TYPE_member_t asn_MBR_Choice_1_1[] = {
.name = "other"
},
};
-static asn_TYPE_tag2member_t asn_MAP_Choice_1_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice_1_tag2el_1[] = {
{ (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 */
@@ -438,13 +438,13 @@ static asn_TYPE_member_t asn_MBR_Test_structure_2_1[] = {
.name = "m1"
},
};
-static ber_tlv_tag_t asn_DEF_Test_structure_2_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Test_structure_2_tag2el_1[] = {
{ (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] = {
+static const uint8_t asn_MAP_Test_structure_2_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(0 << 7)
};
static asn_SET_specifics_t asn_SPC_Test_structure_2_specs_1 = {
@@ -535,13 +535,13 @@ static asn_TYPE_member_t asn_MBR_Test_structure_3_1[] = {
.name = "m1"
},
};
-static ber_tlv_tag_t asn_DEF_Test_structure_3_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Test_structure_3_tag2el_1[] = {
{ (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] = {
+static const uint8_t asn_MAP_Test_structure_3_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(0 << 7)
};
static asn_SET_specifics_t asn_SPC_Test_structure_3_specs_1 = {
diff --git a/tests/44-choice-in-sequence-OK.asn1.-P b/tests/44-choice-in-sequence-OK.asn1.-P
index 2cb124c0..1c5e4c22 100644
--- a/tests/44-choice-in-sequence-OK.asn1.-P
+++ b/tests/44-choice-in-sequence-OK.asn1.-P
@@ -90,7 +90,7 @@ static asn_TYPE_member_t asn_MBR_e_6[] = {
.name = "g"
},
};
-static asn_TYPE_tag2member_t asn_MAP_e_tag2el_6[] = {
+static const asn_TYPE_tag2member_t asn_MAP_e_tag2el_6[] = {
{ (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 0, 0, 0 }, /* f */
{ (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 } /* g */
};
@@ -147,7 +147,7 @@ static asn_TYPE_member_t asn_MBR_h_9[] = {
.name = "j"
},
};
-static asn_TYPE_tag2member_t asn_MAP_h_tag2el_9[] = {
+static const asn_TYPE_tag2member_t asn_MAP_h_tag2el_9[] = {
{ (ASN_TAG_CLASS_PRIVATE | (1 << 2)), 0, 0, 0 }, /* i */
{ (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 1, 0, 0 } /* j */
};
@@ -222,7 +222,7 @@ static asn_TYPE_member_t asn_MBR_b_3[] = {
.name = "h"
},
};
-static asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = {
+static const asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = {
{ (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 */
@@ -282,11 +282,11 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
.name = "b"
},
};
-static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
(ASN_TAG_CLASS_PRIVATE | (1 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
{ (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 */
diff --git a/tests/46-redefine-OK.asn1.-PR b/tests/46-redefine-OK.asn1.-PR
index e4a98077..23475b40 100644
--- a/tests/46-redefine-OK.asn1.-PR
+++ b/tests/46-redefine-OK.asn1.-PR
@@ -97,7 +97,7 @@ PrimitiveType_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [PrimitiveType] >>> ***/
-static ber_tlv_tag_t asn_DEF_PrimitiveType_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_PrimitiveType_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
};
asn_TYPE_descriptor_t asn_DEF_PrimitiveType = {
@@ -155,10 +155,10 @@ static asn_TYPE_member_t asn_MBR_ConstructedType_1[] = {
.name = "field"
},
};
-static ber_tlv_tag_t asn_DEF_ConstructedType_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_ConstructedType_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 0, 0, 0 } /* field */
};
static asn_SEQUENCE_specifics_t asn_SPC_ConstructedType_specs_1 = {
@@ -293,7 +293,7 @@ T_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T] >>> ***/
-static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
diff --git a/tests/47-set-ext-OK.asn1.-Pfwide-types b/tests/47-set-ext-OK.asn1.-Pfwide-types
index 8abf6bb6..c2c9dfb7 100644
--- a/tests/47-set-ext-OK.asn1.-Pfwide-types
+++ b/tests/47-set-ext-OK.asn1.-Pfwide-types
@@ -48,13 +48,13 @@ static asn_TYPE_member_t asn_MBR_T1_1[] = {
.name = "i"
},
};
-static ber_tlv_tag_t asn_DEF_T1_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T1_tag2el_1[] = {
{ (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] = {
+static const uint8_t asn_MAP_T1_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7)
};
static asn_SET_specifics_t asn_SPC_T1_specs_1 = {
@@ -142,13 +142,13 @@ static asn_TYPE_member_t asn_MBR_T2_1[] = {
.name = "i"
},
};
-static ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T2_tag2el_1[] = {
{ (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] = {
+static const uint8_t asn_MAP_T2_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7)
};
static asn_SET_specifics_t asn_SPC_T2_specs_1 = {
@@ -234,7 +234,7 @@ static asn_TYPE_member_t asn_MBR_T3_1[] = {
.name = "i"
},
};
-static asn_TYPE_tag2member_t asn_MAP_T3_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T3_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i */
};
static asn_CHOICE_specifics_t asn_SPC_T3_specs_1 = {
@@ -317,7 +317,7 @@ static asn_TYPE_member_t asn_MBR_T4_1[] = {
.name = "i"
},
};
-static asn_TYPE_tag2member_t asn_MAP_T4_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T4_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i */
};
static asn_CHOICE_specifics_t asn_SPC_T4_specs_1 = {
diff --git a/tests/50-constraint-OK.asn1.-Pfwide-types b/tests/50-constraint-OK.asn1.-Pfwide-types
index c47e9beb..80c6fc82 100644
--- a/tests/50-constraint-OK.asn1.-Pfwide-types
+++ b/tests/50-constraint-OK.asn1.-Pfwide-types
@@ -97,7 +97,7 @@ Int1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Int1] >>> ***/
-static ber_tlv_tag_t asn_DEF_Int1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Int1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Int1 = {
@@ -241,7 +241,7 @@ Int2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Int2] >>> ***/
-static ber_tlv_tag_t asn_DEF_Int2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Int2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Int2 = {
@@ -389,7 +389,7 @@ Int3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Int3] >>> ***/
-static ber_tlv_tag_t asn_DEF_Int3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Int3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Int3 = {
@@ -537,7 +537,7 @@ Int4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Int4] >>> ***/
-static ber_tlv_tag_t asn_DEF_Int4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Int4_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Int4 = {
@@ -685,7 +685,7 @@ Int5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Int5] >>> ***/
-static ber_tlv_tag_t asn_DEF_Int5_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Int5_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Int5 = {
@@ -833,7 +833,7 @@ ExtensibleExtensions_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [ExtensibleExtensions] >>> ***/
-static ber_tlv_tag_t asn_DEF_ExtensibleExtensions_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_ExtensibleExtensions_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_ExtensibleExtensions = {
@@ -958,7 +958,7 @@ Str1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Str1] >>> ***/
-static ber_tlv_tag_t asn_DEF_Str1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Str1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Str1 = {
@@ -1118,7 +1118,7 @@ Str2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Str2] >>> ***/
-static ber_tlv_tag_t asn_DEF_Str2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Str2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Str2 = {
@@ -1166,7 +1166,7 @@ xer_type_encoder_f Str3_encode_xer;
/*** <<< CTABLES [Str3] >>> ***/
-static int permitted_alphabet_table_1[256] = {
+static const int permitted_alphabet_table_1[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
@@ -1177,7 +1177,7 @@ static int permitted_alphabet_table_1[256] = {
};
static int check_permitted_alphabet_1(const void *sptr) {
- int *table = permitted_alphabet_table_1;
+ const int *table = permitted_alphabet_table_1;
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
@@ -1289,7 +1289,7 @@ Str3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Str3] >>> ***/
-static ber_tlv_tag_t asn_DEF_Str3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Str3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Str3 = {
@@ -1446,7 +1446,7 @@ Str4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Str4] >>> ***/
-static ber_tlv_tag_t asn_DEF_Str4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Str4_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Str4 = {
@@ -1603,7 +1603,7 @@ PER_Visible_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [PER-Visible] >>> ***/
-static ber_tlv_tag_t asn_DEF_PER_Visible_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_PER_Visible_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_PER_Visible = {
@@ -1760,7 +1760,7 @@ PER_Visible_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [PER-Visible-2] >>> ***/
-static ber_tlv_tag_t asn_DEF_PER_Visible_2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_PER_Visible_2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_PER_Visible_2 = {
@@ -1917,7 +1917,7 @@ Not_PER_Visible_1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Not-PER-Visible-1] >>> ***/
-static ber_tlv_tag_t asn_DEF_Not_PER_Visible_1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Not_PER_Visible_1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_1 = {
@@ -2074,7 +2074,7 @@ Not_PER_Visible_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Not-PER-Visible-2] >>> ***/
-static ber_tlv_tag_t asn_DEF_Not_PER_Visible_2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Not_PER_Visible_2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_2 = {
@@ -2231,7 +2231,7 @@ Not_PER_Visible_3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Not-PER-Visible-3] >>> ***/
-static ber_tlv_tag_t asn_DEF_Not_PER_Visible_3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Not_PER_Visible_3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_3 = {
@@ -2391,7 +2391,7 @@ SIZE_but_not_FROM_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [SIZE-but-not-FROM] >>> ***/
-static ber_tlv_tag_t asn_DEF_SIZE_but_not_FROM_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SIZE_but_not_FROM_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_SIZE_but_not_FROM = {
@@ -2551,7 +2551,7 @@ SIZE_and_FROM_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [SIZE-and-FROM] >>> ***/
-static ber_tlv_tag_t asn_DEF_SIZE_and_FROM_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SIZE_and_FROM_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_SIZE_and_FROM = {
@@ -2708,7 +2708,7 @@ Neither_SIZE_nor_FROM_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Neither-SIZE-nor-FROM] >>> ***/
-static ber_tlv_tag_t asn_DEF_Neither_SIZE_nor_FROM_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Neither_SIZE_nor_FROM_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Neither_SIZE_nor_FROM = {
@@ -2859,7 +2859,7 @@ Utf8_4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Utf8-4] >>> ***/
-static ber_tlv_tag_t asn_DEF_Utf8_4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Utf8_4_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Utf8_4 = {
@@ -2907,7 +2907,7 @@ xer_type_encoder_f Utf8_3_encode_xer;
/*** <<< CTABLES [Utf8-3] >>> ***/
-static int permitted_alphabet_table_1[128] = {
+static const int permitted_alphabet_table_1[128] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
@@ -2919,7 +2919,7 @@ static int permitted_alphabet_table_1[128] = {
};
static int check_permitted_alphabet_1(const void *sptr) {
- int *table = permitted_alphabet_table_1;
+ const int *table = permitted_alphabet_table_1;
/* The underlying type is UTF8String */
const UTF8String_t *st = (const UTF8String_t *)sptr;
const uint8_t *ch = st->buf;
@@ -3038,7 +3038,7 @@ Utf8_3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Utf8-3] >>> ***/
-static ber_tlv_tag_t asn_DEF_Utf8_3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Utf8_3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Utf8_3 = {
@@ -3187,7 +3187,7 @@ Utf8_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Utf8-2] >>> ***/
-static ber_tlv_tag_t asn_DEF_Utf8_2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Utf8_2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Utf8_2 = {
@@ -3312,7 +3312,7 @@ Utf8_1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Utf8-1] >>> ***/
-static ber_tlv_tag_t asn_DEF_Utf8_1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Utf8_1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Utf8_1 = {
@@ -3360,7 +3360,7 @@ xer_type_encoder_f VisibleIdentifier_encode_xer;
/*** <<< CTABLES [VisibleIdentifier] >>> ***/
-static int permitted_alphabet_table_1[256] = {
+static const int permitted_alphabet_table_1[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* $ */
@@ -3372,7 +3372,7 @@ static int permitted_alphabet_table_1[256] = {
};
static int check_permitted_alphabet_1(const void *sptr) {
- int *table = permitted_alphabet_table_1;
+ const int *table = permitted_alphabet_table_1;
/* The underlying type is VisibleString */
const VisibleString_t *st = (const VisibleString_t *)sptr;
const uint8_t *ch = st->buf;
@@ -3484,7 +3484,7 @@ VisibleIdentifier_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [VisibleIdentifier] >>> ***/
-static ber_tlv_tag_t asn_DEF_VisibleIdentifier_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_VisibleIdentifier_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (26 << 2))
};
asn_TYPE_descriptor_t asn_DEF_VisibleIdentifier = {
@@ -3766,19 +3766,19 @@ static int asn_DFL_5_set_1(int set_value, void **sptr) {
return (*st == 1);
}
}
-static asn_INTEGER_enum_map_t asn_MAP_enum_c_value2enum_6[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_enum_c_value2enum_6[] = {
{ 1, 3, "one" },
{ 2, 3, "two" },
{ 3, 5, "three" }
/* This list is extensible */
};
-static unsigned int asn_MAP_enum_c_enum2value_6[] = {
+static const unsigned int asn_MAP_enum_c_enum2value_6[] = {
0, /* one(1) */
2, /* three(3) */
1 /* two(2) */
/* This list is extensible */
};
-static asn_INTEGER_specifics_t asn_SPC_enum_c_specs_6 = {
+static const asn_INTEGER_specifics_t asn_SPC_enum_c_specs_6 = {
asn_MAP_enum_c_value2enum_6, /* "tag" => N; sorted by tag */
asn_MAP_enum_c_enum2value_6, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
@@ -3787,7 +3787,7 @@ static asn_INTEGER_specifics_t asn_SPC_enum_c_specs_6 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_enum_c_tags_6[] = {
+static const ber_tlv_tag_t asn_DEF_enum_c_tags_6[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
static /* Use -fall-defs-global to expose */
@@ -3879,10 +3879,10 @@ static asn_TYPE_member_t asn_MBR_Sequence_1[] = {
.name = "int5-c"
},
};
-static ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 3, 0, 0 }, /* bool */
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 2 }, /* int1-c */
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 1 }, /* int4-c */
@@ -3964,7 +3964,7 @@ static asn_TYPE_member_t asn_MBR_SequenceOf_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1 = {
@@ -4102,15 +4102,15 @@ Enum0_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Enum0] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_Enum0_value2enum_1[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_Enum0_value2enum_1[] = {
{ 0, 3, "one" },
{ 1, 3, "two" }
};
-static unsigned int asn_MAP_Enum0_enum2value_1[] = {
+static const unsigned int asn_MAP_Enum0_enum2value_1[] = {
0, /* one(0) */
1 /* two(1) */
};
-static asn_INTEGER_specifics_t asn_SPC_Enum0_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_Enum0_specs_1 = {
asn_MAP_Enum0_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_Enum0_enum2value_1, /* N => "tag"; sorted by N */
2, /* Number of elements in the maps */
@@ -4119,7 +4119,7 @@ static asn_INTEGER_specifics_t asn_SPC_Enum0_specs_1 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_Enum0_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Enum0_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Enum0 = {
@@ -4268,15 +4268,15 @@ Enum1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Enum1] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_Enum1_value2enum_1[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_Enum1_value2enum_1[] = {
{ 0, 3, "one" },
{ 1, 3, "two" }
};
-static unsigned int asn_MAP_Enum1_enum2value_1[] = {
+static const unsigned int asn_MAP_Enum1_enum2value_1[] = {
0, /* one(0) */
1 /* two(1) */
};
-static asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = {
asn_MAP_Enum1_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_Enum1_enum2value_1, /* N => "tag"; sorted by N */
2, /* Number of elements in the maps */
@@ -4285,7 +4285,7 @@ static asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_Enum1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Enum1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Enum1 = {
@@ -4333,7 +4333,7 @@ xer_type_encoder_f Identifier_encode_xer;
/*** <<< CTABLES [Identifier] >>> ***/
-static int permitted_alphabet_table_1[256] = {
+static const int permitted_alphabet_table_1[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* $ */
@@ -4345,7 +4345,7 @@ static int permitted_alphabet_table_1[256] = {
};
static int check_permitted_alphabet_1(const void *sptr) {
- int *table = permitted_alphabet_table_1;
+ const int *table = permitted_alphabet_table_1;
/* The underlying type is VisibleString */
const VisibleString_t *st = (const VisibleString_t *)sptr;
const uint8_t *ch = st->buf;
@@ -4457,7 +4457,7 @@ Identifier_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [Identifier] >>> ***/
-static ber_tlv_tag_t asn_DEF_Identifier_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Identifier_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (26 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Identifier = {
diff --git a/tests/50-constraint-OK.asn1.-Pgen-PER b/tests/50-constraint-OK.asn1.-Pgen-PER
index 28b8f5c6..f006a747 100644
--- a/tests/50-constraint-OK.asn1.-Pgen-PER
+++ b/tests/50-constraint-OK.asn1.-Pgen-PER
@@ -114,7 +114,7 @@ Int1_encode_uper(asn_TYPE_descriptor_t *td,
/*** <<< STAT-DEFS [Int1] >>> ***/
-static ber_tlv_tag_t asn_DEF_Int1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Int1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Int1 = {
@@ -282,7 +282,7 @@ static asn_per_constraints_t asn_PER_type_Int2_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [Int2] >>> ***/
-static ber_tlv_tag_t asn_DEF_Int2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Int2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Int2 = {
@@ -450,7 +450,7 @@ static asn_per_constraints_t asn_PER_type_Int3_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [Int3] >>> ***/
-static ber_tlv_tag_t asn_DEF_Int3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Int3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Int3 = {
@@ -618,7 +618,7 @@ static asn_per_constraints_t asn_PER_type_Int4_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [Int4] >>> ***/
-static ber_tlv_tag_t asn_DEF_Int4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Int4_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Int4 = {
@@ -786,7 +786,7 @@ static asn_per_constraints_t asn_PER_type_Int5_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [Int5] >>> ***/
-static ber_tlv_tag_t asn_DEF_Int5_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Int5_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Int5 = {
@@ -954,7 +954,7 @@ static asn_per_constraints_t asn_PER_type_ExtensibleExtensions_constr_1 GCC_NOTU
/*** <<< STAT-DEFS [ExtensibleExtensions] >>> ***/
-static ber_tlv_tag_t asn_DEF_ExtensibleExtensions_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_ExtensibleExtensions_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_ExtensibleExtensions = {
@@ -1097,7 +1097,7 @@ Str1_encode_uper(asn_TYPE_descriptor_t *td,
/*** <<< STAT-DEFS [Str1] >>> ***/
-static ber_tlv_tag_t asn_DEF_Str1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Str1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Str1 = {
@@ -1283,7 +1283,7 @@ static asn_per_constraints_t asn_PER_type_Str2_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [Str2] >>> ***/
-static ber_tlv_tag_t asn_DEF_Str2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Str2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Str2 = {
@@ -1334,7 +1334,7 @@ per_type_encoder_f Str3_encode_uper;
/*** <<< CTABLES [Str3] >>> ***/
-static int permitted_alphabet_table_1[256] = {
+static const int permitted_alphabet_table_1[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
@@ -1343,12 +1343,12 @@ static int permitted_alphabet_table_1[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 4, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* def */
};
-static int permitted_alphabet_code2value_1[6] = {
+static const int permitted_alphabet_code2value_1[6] = {
65,66,67,100,101,102,};
static int check_permitted_alphabet_1(const void *sptr) {
- int *table = permitted_alphabet_table_1;
+ const int *table = permitted_alphabet_table_1;
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
@@ -1494,7 +1494,7 @@ static asn_per_constraints_t asn_PER_type_Str3_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [Str3] >>> ***/
-static ber_tlv_tag_t asn_DEF_Str3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Str3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Str3 = {
@@ -1677,7 +1677,7 @@ static asn_per_constraints_t asn_PER_type_Str4_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [Str4] >>> ***/
-static ber_tlv_tag_t asn_DEF_Str4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Str4_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Str4 = {
@@ -1860,7 +1860,7 @@ static asn_per_constraints_t asn_PER_type_PER_Visible_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [PER-Visible] >>> ***/
-static ber_tlv_tag_t asn_DEF_PER_Visible_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_PER_Visible_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_PER_Visible = {
@@ -2043,7 +2043,7 @@ static asn_per_constraints_t asn_PER_type_PER_Visible_2_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [PER-Visible-2] >>> ***/
-static ber_tlv_tag_t asn_DEF_PER_Visible_2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_PER_Visible_2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_PER_Visible_2 = {
@@ -2226,7 +2226,7 @@ static asn_per_constraints_t asn_PER_type_Not_PER_Visible_1_constr_1 GCC_NOTUSED
/*** <<< STAT-DEFS [Not-PER-Visible-1] >>> ***/
-static ber_tlv_tag_t asn_DEF_Not_PER_Visible_1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Not_PER_Visible_1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_1 = {
@@ -2409,7 +2409,7 @@ static asn_per_constraints_t asn_PER_type_Not_PER_Visible_2_constr_1 GCC_NOTUSED
/*** <<< STAT-DEFS [Not-PER-Visible-2] >>> ***/
-static ber_tlv_tag_t asn_DEF_Not_PER_Visible_2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Not_PER_Visible_2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_2 = {
@@ -2592,7 +2592,7 @@ static asn_per_constraints_t asn_PER_type_Not_PER_Visible_3_constr_1 GCC_NOTUSED
/*** <<< STAT-DEFS [Not-PER-Visible-3] >>> ***/
-static ber_tlv_tag_t asn_DEF_Not_PER_Visible_3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Not_PER_Visible_3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_3 = {
@@ -2778,7 +2778,7 @@ static asn_per_constraints_t asn_PER_type_SIZE_but_not_FROM_constr_1 GCC_NOTUSED
/*** <<< STAT-DEFS [SIZE-but-not-FROM] >>> ***/
-static ber_tlv_tag_t asn_DEF_SIZE_but_not_FROM_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SIZE_but_not_FROM_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_SIZE_but_not_FROM = {
@@ -2964,7 +2964,7 @@ static asn_per_constraints_t asn_PER_type_SIZE_and_FROM_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [SIZE-and-FROM] >>> ***/
-static ber_tlv_tag_t asn_DEF_SIZE_and_FROM_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SIZE_and_FROM_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_SIZE_and_FROM = {
@@ -3147,7 +3147,7 @@ static asn_per_constraints_t asn_PER_type_Neither_SIZE_nor_FROM_constr_1 GCC_NOT
/*** <<< STAT-DEFS [Neither-SIZE-nor-FROM] >>> ***/
-static ber_tlv_tag_t asn_DEF_Neither_SIZE_nor_FROM_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Neither_SIZE_nor_FROM_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Neither_SIZE_nor_FROM = {
@@ -3324,7 +3324,7 @@ static asn_per_constraints_t asn_PER_type_Utf8_4_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [Utf8-4] >>> ***/
-static ber_tlv_tag_t asn_DEF_Utf8_4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Utf8_4_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Utf8_4 = {
@@ -3375,7 +3375,7 @@ per_type_encoder_f Utf8_3_encode_uper;
/*** <<< CTABLES [Utf8-3] >>> ***/
-static int permitted_alphabet_table_1[128] = {
+static const int permitted_alphabet_table_1[128] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
@@ -3387,7 +3387,7 @@ static int permitted_alphabet_table_1[128] = {
};
static int check_permitted_alphabet_1(const void *sptr) {
- int *table = permitted_alphabet_table_1;
+ const int *table = permitted_alphabet_table_1;
/* The underlying type is UTF8String */
const UTF8String_t *st = (const UTF8String_t *)sptr;
const uint8_t *ch = st->buf;
@@ -3529,7 +3529,7 @@ static asn_per_constraints_t asn_PER_type_Utf8_3_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [Utf8-3] >>> ***/
-static ber_tlv_tag_t asn_DEF_Utf8_3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Utf8_3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Utf8_3 = {
@@ -3704,7 +3704,7 @@ static asn_per_constraints_t asn_PER_type_Utf8_2_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [Utf8-2] >>> ***/
-static ber_tlv_tag_t asn_DEF_Utf8_2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Utf8_2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Utf8_2 = {
@@ -3847,7 +3847,7 @@ Utf8_1_encode_uper(asn_TYPE_descriptor_t *td,
/*** <<< STAT-DEFS [Utf8-1] >>> ***/
-static ber_tlv_tag_t asn_DEF_Utf8_1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Utf8_1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Utf8_1 = {
@@ -3898,7 +3898,7 @@ per_type_encoder_f VisibleIdentifier_encode_uper;
/*** <<< CTABLES [VisibleIdentifier] >>> ***/
-static int permitted_alphabet_table_1[256] = {
+static const int permitted_alphabet_table_1[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* $ */
@@ -3908,7 +3908,7 @@ static int permitted_alphabet_table_1[256] = {
0,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53, /* abcdefghijklmno */
54,55,56,57,58,59,60,61,62,63,64, 0, 0, 0, 0, 0, /* pqrstuvwxyz */
};
-static int permitted_alphabet_code2value_1[64] = {
+static const int permitted_alphabet_code2value_1[64] = {
36,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,
70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,
86,87,88,89,90,95,97,98,99,100,101,102,103,104,105,106,
@@ -3917,7 +3917,7 @@ static int permitted_alphabet_code2value_1[64] = {
static int check_permitted_alphabet_1(const void *sptr) {
- int *table = permitted_alphabet_table_1;
+ const int *table = permitted_alphabet_table_1;
/* The underlying type is VisibleString */
const VisibleString_t *st = (const VisibleString_t *)sptr;
const uint8_t *ch = st->buf;
@@ -4044,7 +4044,7 @@ VisibleIdentifier_encode_uper(asn_TYPE_descriptor_t *td,
/*** <<< STAT-DEFS [VisibleIdentifier] >>> ***/
-static ber_tlv_tag_t asn_DEF_VisibleIdentifier_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_VisibleIdentifier_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (26 << 2))
};
asn_TYPE_descriptor_t asn_DEF_VisibleIdentifier = {
@@ -4345,19 +4345,19 @@ static int asn_DFL_5_set_1(int set_value, void **sptr) {
return (*st == 1);
}
}
-static asn_INTEGER_enum_map_t asn_MAP_enum_c_value2enum_6[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_enum_c_value2enum_6[] = {
{ 1, 3, "one" },
{ 2, 3, "two" },
{ 3, 5, "three" }
/* This list is extensible */
};
-static unsigned int asn_MAP_enum_c_enum2value_6[] = {
+static const unsigned int asn_MAP_enum_c_enum2value_6[] = {
0, /* one(1) */
2, /* three(3) */
1 /* two(2) */
/* This list is extensible */
};
-static asn_INTEGER_specifics_t asn_SPC_enum_c_specs_6 = {
+static const asn_INTEGER_specifics_t asn_SPC_enum_c_specs_6 = {
asn_MAP_enum_c_value2enum_6, /* "tag" => N; sorted by tag */
asn_MAP_enum_c_enum2value_6, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
@@ -4366,7 +4366,7 @@ static asn_INTEGER_specifics_t asn_SPC_enum_c_specs_6 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_enum_c_tags_6[] = {
+static const ber_tlv_tag_t asn_DEF_enum_c_tags_6[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
static /* Use -fall-defs-global to expose */
@@ -4459,11 +4459,11 @@ static asn_TYPE_member_t asn_MBR_Sequence_1[] = {
.name = "int5-c"
},
};
-static int asn_MAP_Sequence_oms_1[] = { 0, 3, 5, 6 };
-static ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
+static const int asn_MAP_Sequence_oms_1[] = { 0, 3, 5, 6 };
+static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 3, 0, 0 }, /* bool */
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 2 }, /* int1-c */
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 1 }, /* int4-c */
@@ -4555,7 +4555,7 @@ static asn_TYPE_member_t asn_MBR_SequenceOf_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1 = {
@@ -4719,15 +4719,15 @@ static asn_per_constraints_t asn_PER_type_Enum0_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [Enum0] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_Enum0_value2enum_1[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_Enum0_value2enum_1[] = {
{ 0, 3, "one" },
{ 1, 3, "two" }
};
-static unsigned int asn_MAP_Enum0_enum2value_1[] = {
+static const unsigned int asn_MAP_Enum0_enum2value_1[] = {
0, /* one(0) */
1 /* two(1) */
};
-static asn_INTEGER_specifics_t asn_SPC_Enum0_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_Enum0_specs_1 = {
asn_MAP_Enum0_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_Enum0_enum2value_1, /* N => "tag"; sorted by N */
2, /* Number of elements in the maps */
@@ -4736,7 +4736,7 @@ static asn_INTEGER_specifics_t asn_SPC_Enum0_specs_1 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_Enum0_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Enum0_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Enum0 = {
@@ -4911,15 +4911,15 @@ static asn_per_constraints_t asn_PER_type_Enum1_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [Enum1] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_Enum1_value2enum_1[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_Enum1_value2enum_1[] = {
{ 0, 3, "one" },
{ 1, 3, "two" }
};
-static unsigned int asn_MAP_Enum1_enum2value_1[] = {
+static const unsigned int asn_MAP_Enum1_enum2value_1[] = {
0, /* one(0) */
1 /* two(1) */
};
-static asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = {
asn_MAP_Enum1_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_Enum1_enum2value_1, /* N => "tag"; sorted by N */
2, /* Number of elements in the maps */
@@ -4928,7 +4928,7 @@ static asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_Enum1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Enum1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Enum1 = {
@@ -4979,7 +4979,7 @@ per_type_encoder_f Identifier_encode_uper;
/*** <<< CTABLES [Identifier] >>> ***/
-static int permitted_alphabet_table_1[256] = {
+static const int permitted_alphabet_table_1[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* $ */
@@ -4989,7 +4989,7 @@ static int permitted_alphabet_table_1[256] = {
0,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53, /* abcdefghijklmno */
54,55,56,57,58,59,60,61,62,63,64, 0, 0, 0, 0, 0, /* pqrstuvwxyz */
};
-static int permitted_alphabet_code2value_1[64] = {
+static const int permitted_alphabet_code2value_1[64] = {
36,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,
70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,
86,87,88,89,90,95,97,98,99,100,101,102,103,104,105,106,
@@ -4998,7 +4998,7 @@ static int permitted_alphabet_code2value_1[64] = {
static int check_permitted_alphabet_1(const void *sptr) {
- int *table = permitted_alphabet_table_1;
+ const int *table = permitted_alphabet_table_1;
/* The underlying type is VisibleString */
const VisibleString_t *st = (const VisibleString_t *)sptr;
const uint8_t *ch = st->buf;
@@ -5144,7 +5144,7 @@ static asn_per_constraints_t asn_PER_type_Identifier_constr_1 GCC_NOTUSED = {
/*** <<< STAT-DEFS [Identifier] >>> ***/
-static ber_tlv_tag_t asn_DEF_Identifier_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Identifier_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (26 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Identifier = {
diff --git a/tests/59-choice-extended-OK.asn1.-Pfwide-types b/tests/59-choice-extended-OK.asn1.-Pfwide-types
index 803aa314..246a0cdf 100644
--- a/tests/59-choice-extended-OK.asn1.-Pfwide-types
+++ b/tests/59-choice-extended-OK.asn1.-Pfwide-types
@@ -75,10 +75,10 @@ static asn_TYPE_member_t asn_MBR_Choice_1[] = {
.name = "c"
},
};
-static ber_tlv_tag_t asn_DEF_Choice_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Choice_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (123 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = {
{ (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 */
diff --git a/tests/60-any-OK.asn1.-Pfwide-types b/tests/60-any-OK.asn1.-Pfwide-types
index 8f41a61b..ea10d245 100644
--- a/tests/60-any-OK.asn1.-Pfwide-types
+++ b/tests/60-any-OK.asn1.-Pfwide-types
@@ -41,10 +41,10 @@ static asn_TYPE_member_t asn_MBR_T1_1[] = {
.name = "any"
},
};
-static ber_tlv_tag_t asn_DEF_T1_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T1_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i */
};
static asn_SEQUENCE_specifics_t asn_SPC_T1_specs_1 = {
@@ -123,10 +123,10 @@ static asn_TYPE_member_t asn_MBR_T2_1[] = {
.name = "any"
},
};
-static ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T2_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* i */
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* any */
};
@@ -205,7 +205,7 @@ static asn_TYPE_member_t asn_MBR_T3_1[] = {
.name = "any2"
},
};
-static ber_tlv_tag_t asn_DEF_T3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SEQUENCE_specifics_t asn_SPC_T3_specs_1 = {
diff --git a/tests/65-multi-tag-OK.asn1.-Pfnative-types b/tests/65-multi-tag-OK.asn1.-Pfnative-types
index fb214c31..df1e4b7f 100644
--- a/tests/65-multi-tag-OK.asn1.-Pfnative-types
+++ b/tests/65-multi-tag-OK.asn1.-Pfnative-types
@@ -97,13 +97,13 @@ T1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T1] >>> ***/
-static ber_tlv_tag_t asn_DEF_T1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T1_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
};
-static ber_tlv_tag_t asn_DEF_T1_all_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T1_all_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
@@ -233,12 +233,12 @@ T2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T2] >>> ***/
-static ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
};
-static ber_tlv_tag_t asn_DEF_T2_all_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T2_all_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
@@ -367,11 +367,11 @@ T3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T3] >>> ***/
-static ber_tlv_tag_t asn_DEF_T3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T3_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
};
-static ber_tlv_tag_t asn_DEF_T3_all_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T3_all_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
@@ -499,7 +499,7 @@ T4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T4] >>> ***/
-static ber_tlv_tag_t asn_DEF_T4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T4_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
@@ -626,7 +626,7 @@ T5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T5] >>> ***/
-static ber_tlv_tag_t asn_DEF_T5_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T5_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
};
@@ -752,7 +752,7 @@ T6_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T6] >>> ***/
-static ber_tlv_tag_t asn_DEF_T6_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T6_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
};
asn_TYPE_descriptor_t asn_DEF_T6 = {
@@ -877,7 +877,7 @@ T_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T] >>> ***/
-static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
(ASN_TAG_CLASS_CONTEXT | (123 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
@@ -958,11 +958,11 @@ static asn_TYPE_member_t asn_MBR_Ts_1[] = {
.name = "m3"
},
};
-static ber_tlv_tag_t asn_DEF_Ts_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Ts_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (123 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Ts_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Ts_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* m1 */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* m2 */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 } /* m3 */
diff --git a/tests/65-multi-tag-OK.asn1.-Pfwide-types b/tests/65-multi-tag-OK.asn1.-Pfwide-types
index d234553b..1ef1cd94 100644
--- a/tests/65-multi-tag-OK.asn1.-Pfwide-types
+++ b/tests/65-multi-tag-OK.asn1.-Pfwide-types
@@ -97,13 +97,13 @@ T1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T1] >>> ***/
-static ber_tlv_tag_t asn_DEF_T1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T1_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
};
-static ber_tlv_tag_t asn_DEF_T1_all_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T1_all_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
@@ -233,12 +233,12 @@ T2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T2] >>> ***/
-static ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
};
-static ber_tlv_tag_t asn_DEF_T2_all_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T2_all_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
@@ -367,11 +367,11 @@ T3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T3] >>> ***/
-static ber_tlv_tag_t asn_DEF_T3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T3_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
};
-static ber_tlv_tag_t asn_DEF_T3_all_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T3_all_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
@@ -499,7 +499,7 @@ T4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T4] >>> ***/
-static ber_tlv_tag_t asn_DEF_T4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T4_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
@@ -626,7 +626,7 @@ T5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T5] >>> ***/
-static ber_tlv_tag_t asn_DEF_T5_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T5_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
};
@@ -752,7 +752,7 @@ T6_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T6] >>> ***/
-static ber_tlv_tag_t asn_DEF_T6_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T6_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
};
asn_TYPE_descriptor_t asn_DEF_T6 = {
@@ -877,7 +877,7 @@ T_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T] >>> ***/
-static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
(ASN_TAG_CLASS_CONTEXT | (123 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
@@ -958,11 +958,11 @@ static asn_TYPE_member_t asn_MBR_Ts_1[] = {
.name = "m3"
},
};
-static ber_tlv_tag_t asn_DEF_Ts_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Ts_tags_1[] = {
(ASN_TAG_CLASS_CONTEXT | (123 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Ts_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Ts_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* m1 */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* m2 */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 } /* m3 */
diff --git a/tests/66-ref-simple-OK.asn1.-Pfwide-types b/tests/66-ref-simple-OK.asn1.-Pfwide-types
index 8b4e5eee..c15eae2c 100644
--- a/tests/66-ref-simple-OK.asn1.-Pfwide-types
+++ b/tests/66-ref-simple-OK.asn1.-Pfwide-types
@@ -31,7 +31,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
.name = "named"
},
};
-static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_T_specs_1 = {
@@ -170,17 +170,17 @@ SimpleType_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [SimpleType] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_SimpleType_value2enum_1[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_SimpleType_value2enum_1[] = {
{ 0, 3, "one" },
{ 1, 3, "two" },
{ 2, 5, "three" }
};
-static unsigned int asn_MAP_SimpleType_enum2value_1[] = {
+static const unsigned int asn_MAP_SimpleType_enum2value_1[] = {
0, /* one(0) */
2, /* three(2) */
1 /* two(1) */
};
-static asn_INTEGER_specifics_t asn_SPC_SimpleType_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_SimpleType_specs_1 = {
asn_MAP_SimpleType_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_SimpleType_enum2value_1, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
@@ -189,7 +189,7 @@ static asn_INTEGER_specifics_t asn_SPC_SimpleType_specs_1 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_SimpleType_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SimpleType_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_SimpleType = {
diff --git a/tests/69-reserved-words-OK.asn1.-Pfwide-types b/tests/69-reserved-words-OK.asn1.-Pfwide-types
index ee0c2486..d3b454f7 100644
--- a/tests/69-reserved-words-OK.asn1.-Pfwide-types
+++ b/tests/69-reserved-words-OK.asn1.-Pfwide-types
@@ -75,10 +75,10 @@ memb_char_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
/*** <<< STAT-DEFS [T] >>> ***/
-static ber_tlv_tag_t asn_DEF_class_tags_4[] = {
+static const ber_tlv_tag_t asn_DEF_class_tags_4[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
-static uint8_t asn_MAP_class_mmap_4[(0 + (8 * sizeof(unsigned int)) - 1) / 8] = {
+static const uint8_t asn_MAP_class_mmap_4[(0 + (8 * sizeof(unsigned int)) - 1) / 8] = {
0
};
static asn_SET_specifics_t asn_SPC_class_specs_4 = {
@@ -154,10 +154,10 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
.name = "double"
},
};
-static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+static const 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[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* int */
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* char */
{ (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 3, 0, 0 }, /* double */
diff --git a/tests/70-xer-test-OK.asn1.-Pfwide-types b/tests/70-xer-test-OK.asn1.-Pfwide-types
index 78e16b55..4d29ae02 100644
--- a/tests/70-xer-test-OK.asn1.-Pfwide-types
+++ b/tests/70-xer-test-OK.asn1.-Pfwide-types
@@ -214,7 +214,7 @@ static asn_TYPE_member_t asn_MBR_PDU_1[] = {
.name = "namedSetOfChoice"
},
};
-static asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sequence */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sequenceOf */
@@ -335,10 +335,10 @@ static asn_TYPE_member_t asn_MBR_Sequence_1[] = {
.name = "string"
},
};
-static ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits */
@@ -435,14 +435,14 @@ static asn_TYPE_member_t asn_MBR_Set_1[] = {
.name = "opaque"
},
};
-static ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* opaque */
};
-static uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
+static const uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7) | (0 << 6)
};
static asn_SET_specifics_t asn_SPC_Set_specs_1 = {
@@ -604,15 +604,15 @@ enum_4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [ExtensibleSet] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_enum_value2enum_4[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_enum_value2enum_4[] = {
{ 0, 1, "b" },
{ 1, 1, "a" }
};
-static unsigned int asn_MAP_enum_enum2value_4[] = {
+static const unsigned int asn_MAP_enum_enum2value_4[] = {
1, /* a(1) */
0 /* b(0) */
};
-static asn_INTEGER_specifics_t asn_SPC_enum_specs_4 = {
+static const asn_INTEGER_specifics_t asn_SPC_enum_specs_4 = {
asn_MAP_enum_value2enum_4, /* "tag" => N; sorted by tag */
asn_MAP_enum_enum2value_4, /* N => "tag"; sorted by N */
2, /* Number of elements in the maps */
@@ -621,7 +621,7 @@ static asn_INTEGER_specifics_t asn_SPC_enum_specs_4 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_enum_tags_4[] = {
+static const ber_tlv_tag_t asn_DEF_enum_tags_4[] = {
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
@@ -669,14 +669,14 @@ static asn_TYPE_member_t asn_MBR_ExtensibleSet_1[] = {
.name = "enum"
},
};
-static ber_tlv_tag_t asn_DEF_ExtensibleSet_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_ExtensibleSet_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_ExtensibleSet_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSet_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* enum */
};
-static uint8_t asn_MAP_ExtensibleSet_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
+static const uint8_t asn_MAP_ExtensibleSet_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(0 << 7) | (0 << 6)
};
static asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1 = {
@@ -772,10 +772,10 @@ static asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[] = {
.name = "gtime"
},
};
-static ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* integer */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gtime */
@@ -860,10 +860,10 @@ static asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[] = {
.name = "integer"
},
};
-static ber_tlv_tag_t asn_DEF_ExtensibleSequence2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_ExtensibleSequence2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence2_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence2_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integer */
};
@@ -933,7 +933,7 @@ static asn_TYPE_member_t asn_MBR_SetOfNULL_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_SetOfNULL_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SetOfNULL_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1 = {
@@ -998,7 +998,7 @@ static asn_TYPE_member_t asn_MBR_SetOfREAL_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_SetOfREAL_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SetOfREAL_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1 = {
@@ -1137,15 +1137,15 @@ Member_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [SetOfEnums] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_Member_value2enum_2[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_Member_value2enum_2[] = {
{ 0, 3, "one" },
{ 1, 7, "oneMore" }
};
-static unsigned int asn_MAP_Member_enum2value_2[] = {
+static const unsigned int asn_MAP_Member_enum2value_2[] = {
0, /* one(0) */
1 /* oneMore(1) */
};
-static asn_INTEGER_specifics_t asn_SPC_Member_specs_2 = {
+static const asn_INTEGER_specifics_t asn_SPC_Member_specs_2 = {
asn_MAP_Member_value2enum_2, /* "tag" => N; sorted by tag */
asn_MAP_Member_enum2value_2, /* N => "tag"; sorted by N */
2, /* Number of elements in the maps */
@@ -1154,7 +1154,7 @@ static asn_INTEGER_specifics_t asn_SPC_Member_specs_2 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
static /* Use -fall-defs-global to expose */
@@ -1192,7 +1192,7 @@ static asn_TYPE_member_t asn_MBR_SetOfEnums_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_SetOfEnums_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SetOfEnums_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1 = {
@@ -1257,7 +1257,7 @@ static asn_TYPE_member_t asn_MBR_NamedSetOfNULL_1[] = {
.name = "y"
},
};
-static ber_tlv_tag_t asn_DEF_NamedSetOfNULL_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NamedSetOfNULL_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1 = {
@@ -1322,7 +1322,7 @@ static asn_TYPE_member_t asn_MBR_NamedSetOfREAL_1[] = {
.name = "name"
},
};
-static ber_tlv_tag_t asn_DEF_NamedSetOfREAL_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NamedSetOfREAL_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1 = {
@@ -1461,15 +1461,15 @@ name_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NamedSetOfEnums] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_name_value2enum_2[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_name_value2enum_2[] = {
{ 0, 3, "one" },
{ 1, 7, "oneMore" }
};
-static unsigned int asn_MAP_name_enum2value_2[] = {
+static const unsigned int asn_MAP_name_enum2value_2[] = {
0, /* one(0) */
1 /* oneMore(1) */
};
-static asn_INTEGER_specifics_t asn_SPC_name_specs_2 = {
+static const asn_INTEGER_specifics_t asn_SPC_name_specs_2 = {
asn_MAP_name_value2enum_2, /* "tag" => N; sorted by tag */
asn_MAP_name_enum2value_2, /* N => "tag"; sorted by N */
2, /* Number of elements in the maps */
@@ -1478,7 +1478,7 @@ static asn_INTEGER_specifics_t asn_SPC_name_specs_2 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_name_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_name_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
static /* Use -fall-defs-global to expose */
@@ -1516,7 +1516,7 @@ static asn_TYPE_member_t asn_MBR_NamedSetOfEnums_1[] = {
.name = "name"
},
};
-static ber_tlv_tag_t asn_DEF_NamedSetOfEnums_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NamedSetOfEnums_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1 = {
@@ -1581,7 +1581,7 @@ static asn_TYPE_member_t asn_MBR_SequenceOf_1[] = {
.name = "id"
},
};
-static ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1 = {
@@ -1646,7 +1646,7 @@ static asn_TYPE_member_t asn_MBR_SeqOfZuka_1[] = {
.name = "zuka"
},
};
-static ber_tlv_tag_t asn_DEF_SeqOfZuka_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SeqOfZuka_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1 = {
@@ -1718,7 +1718,7 @@ static asn_TYPE_member_t asn_MBR_SetOfChoice_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_SetOfChoice_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_SetOfChoice_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1 = {
@@ -1790,7 +1790,7 @@ static asn_TYPE_member_t asn_MBR_NamedSetOfChoice_1[] = {
.name = "whatever"
},
};
-static ber_tlv_tag_t asn_DEF_NamedSetOfChoice_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NamedSetOfChoice_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1 = {
@@ -1876,7 +1876,7 @@ static asn_TYPE_member_t asn_MBR_SimpleChoice_1[] = {
.name = "b"
},
};
-static asn_TYPE_tag2member_t asn_MAP_SimpleChoice_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_SimpleChoice_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */
};
diff --git a/tests/72-same-names-OK.asn1.-Pfwide-types b/tests/72-same-names-OK.asn1.-Pfwide-types
index 09d96b8a..51c474b3 100644
--- a/tests/72-same-names-OK.asn1.-Pfwide-types
+++ b/tests/72-same-names-OK.asn1.-Pfwide-types
@@ -48,10 +48,10 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = {
.name = "t2"
},
};
-static ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* t1 */
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 }, /* one-name */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* two-name */
@@ -101,7 +101,7 @@ static asn_TYPE_member_t asn_MBR_Type_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_Type_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Type_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_Type_specs_1 = {
@@ -196,10 +196,10 @@ static asn_TYPE_member_t asn_MBR_another_name_3[] = {
.name = "b"
},
};
-static ber_tlv_tag_t asn_DEF_another_name_tags_3[] = {
+static const ber_tlv_tag_t asn_DEF_another_name_tags_3[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_another_name_tag2el_3[] = {
+static const asn_TYPE_tag2member_t asn_MAP_another_name_tag2el_3[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* a */
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* b */
};
@@ -248,7 +248,7 @@ static asn_TYPE_member_t asn_MBR_one_name_2[] = {
.name = "another-name"
},
};
-static asn_TYPE_tag2member_t asn_MAP_one_name_tag2el_2[] = {
+static const asn_TYPE_tag2member_t asn_MAP_one_name_tag2el_2[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* another-name */
};
static asn_CHOICE_specifics_t asn_SPC_one_name_specs_2 = {
@@ -295,10 +295,10 @@ static asn_TYPE_member_t asn_MBR_Type1_1[] = {
.name = "one-name"
},
};
-static ber_tlv_tag_t asn_DEF_Type1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Type1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Type1_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Type1_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* another-name */
};
static asn_SEQUENCE_specifics_t asn_SPC_Type1_specs_1 = {
@@ -494,10 +494,10 @@ static asn_TYPE_member_t asn_MBR_another_name_3[] = {
.name = "b"
},
};
-static ber_tlv_tag_t asn_DEF_another_name_tags_3[] = {
+static const ber_tlv_tag_t asn_DEF_another_name_tags_3[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_another_name_tag2el_3[] = {
+static const asn_TYPE_tag2member_t asn_MAP_another_name_tag2el_3[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* b */
{ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* a */
};
@@ -546,10 +546,10 @@ static asn_TYPE_member_t asn_MBR_one_name_2[] = {
.name = "another-name"
},
};
-static ber_tlv_tag_t asn_DEF_one_name_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_one_name_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_one_name_tag2el_2[] = {
+static const asn_TYPE_tag2member_t asn_MAP_one_name_tag2el_2[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* another-name */
};
static asn_SEQUENCE_specifics_t asn_SPC_one_name_specs_2 = {
@@ -606,10 +606,10 @@ static asn_TYPE_member_t asn_MBR_another_name_8[] = {
.name = "b"
},
};
-static ber_tlv_tag_t asn_DEF_another_name_tags_8[] = {
+static const ber_tlv_tag_t asn_DEF_another_name_tags_8[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_another_name_tag2el_8[] = {
+static const asn_TYPE_tag2member_t asn_MAP_another_name_tag2el_8[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* b */
{ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* a */
};
@@ -658,13 +658,13 @@ static asn_TYPE_member_t asn_MBR_two_name_7[] = {
.name = "another-name"
},
};
-static ber_tlv_tag_t asn_DEF_two_name_tags_7[] = {
+static const ber_tlv_tag_t asn_DEF_two_name_tags_7[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_two_name_tag2el_7[] = {
+static const asn_TYPE_tag2member_t asn_MAP_two_name_tag2el_7[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* another-name */
};
-static uint8_t asn_MAP_two_name_mmap_7[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
+static const uint8_t asn_MAP_two_name_mmap_7[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7)
};
static asn_SET_specifics_t asn_SPC_two_name_specs_7 = {
@@ -723,7 +723,7 @@ static asn_TYPE_member_t asn_MBR_Type2_1[] = {
.name = "two-name"
},
};
-static asn_TYPE_tag2member_t asn_MAP_Type2_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Type2_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 }, /* one-name */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* two-name */
};
diff --git a/tests/73-circular-OK.asn1.-Pfwide-types b/tests/73-circular-OK.asn1.-Pfwide-types
index 0fc65831..eabc0332 100644
--- a/tests/73-circular-OK.asn1.-Pfwide-types
+++ b/tests/73-circular-OK.asn1.-Pfwide-types
@@ -44,7 +44,7 @@ static asn_TYPE_member_t asn_MBR_data_2[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_data_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_data_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_data_specs_2 = {
@@ -88,10 +88,10 @@ static asn_TYPE_member_t asn_MBR_Type_1[] = {
.name = "data"
},
};
-static ber_tlv_tag_t asn_DEF_Type_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Type_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Type_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Type_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* data */
};
static asn_SEQUENCE_specifics_t asn_SPC_Type_specs_1 = {
@@ -226,7 +226,7 @@ EpytRef_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [EpytRef] >>> ***/
-static ber_tlv_tag_t asn_DEF_EpytRef_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_EpytRef_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_TYPE_descriptor_t asn_DEF_EpytRef = {
@@ -302,7 +302,7 @@ static asn_TYPE_member_t asn_MBR_stype_2[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_stype_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_stype_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_stype_specs_2 = {
@@ -364,10 +364,10 @@ static asn_TYPE_member_t asn_MBR_Epyt_1[] = {
.name = "ypet"
},
};
-static ber_tlv_tag_t asn_DEF_Epyt_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Epyt_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Epyt_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Epyt_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* type */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 1 }, /* stype */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 2, -1, 0 } /* ypet */
@@ -576,7 +576,7 @@ static asn_TYPE_member_t asn_MBR_senums_4[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_senums_tags_4[] = {
+static const ber_tlv_tag_t asn_DEF_senums_tags_4[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_senums_specs_4 = {
@@ -656,17 +656,17 @@ static asn_TYPE_member_t asn_MBR_Ypet_1[] = {
.name = "patest2"
},
};
-static ber_tlv_tag_t asn_DEF_Ypet_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Ypet_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Ypet_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Ypet_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* plain */
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 }, /* epyt */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 2, 0, 0 }, /* senums */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 3, 0, 0 }, /* patest1 */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 4, 0, 0 } /* patest2 */
};
-static uint8_t asn_MAP_Ypet_mmap_1[(5 + (8 * sizeof(unsigned int)) - 1) / 8] = {
+static const uint8_t asn_MAP_Ypet_mmap_1[(5 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7) | (0 << 6) | (1 << 5) | (1 << 4) | (1 << 3)
};
static asn_SET_specifics_t asn_SPC_Ypet_specs_1 = {
@@ -810,15 +810,15 @@ EnumType_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [EnumType] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_EnumType_value2enum_1[] = {
+static const asn_INTEGER_enum_map_t asn_MAP_EnumType_value2enum_1[] = {
{ 0, 3, "one" },
{ 1, 3, "two" }
};
-static unsigned int asn_MAP_EnumType_enum2value_1[] = {
+static const unsigned int asn_MAP_EnumType_enum2value_1[] = {
0, /* one(0) */
1 /* two(1) */
};
-static asn_INTEGER_specifics_t asn_SPC_EnumType_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_EnumType_specs_1 = {
asn_MAP_EnumType_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_EnumType_enum2value_1, /* N => "tag"; sorted by N */
2, /* Number of elements in the maps */
@@ -827,7 +827,7 @@ static asn_INTEGER_specifics_t asn_SPC_EnumType_specs_1 = {
0, /* Native long size */
0
};
-static ber_tlv_tag_t asn_DEF_EnumType_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_EnumType_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_EnumType = {
diff --git a/tests/84-param-tags-OK.asn1.-Pfwide-types b/tests/84-param-tags-OK.asn1.-Pfwide-types
index 45c27995..32e7ec38 100644
--- a/tests/84-param-tags-OK.asn1.-Pfwide-types
+++ b/tests/84-param-tags-OK.asn1.-Pfwide-types
@@ -84,10 +84,10 @@ static asn_TYPE_member_t asn_MBR_TestType_16P0_1[] = {
.name = "common"
},
};
-static ber_tlv_tag_t asn_DEF_TestType_16P0_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_TestType_16P0_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_TestType_16P0_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_TestType_16P0_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* common */
};
static asn_SEQUENCE_specifics_t asn_SPC_TestType_16P0_specs_1 = {
@@ -152,10 +152,10 @@ static asn_TYPE_member_t asn_MBR_TestType_16P1_3[] = {
.name = "common"
},
};
-static ber_tlv_tag_t asn_DEF_TestType_16P1_tags_3[] = {
+static const ber_tlv_tag_t asn_DEF_TestType_16P1_tags_3[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_TestType_16P1_tag2el_3[] = {
+static const asn_TYPE_tag2member_t asn_MAP_TestType_16P1_tag2el_3[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 } /* common */
};
static asn_SEQUENCE_specifics_t asn_SPC_TestType_16P1_specs_3 = {
@@ -244,7 +244,7 @@ static asn_TYPE_member_t asn_MBR_TestChoice_1[] = {
.name = "type2"
},
};
-static asn_TYPE_tag2member_t asn_MAP_TestChoice_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_TestChoice_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 }, /* type1 */
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* type2 */
};
@@ -373,10 +373,10 @@ static asn_TYPE_member_t asn_MBR_AutoType_34P0_1[] = {
.name = "common"
},
};
-static ber_tlv_tag_t asn_DEF_AutoType_34P0_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_AutoType_34P0_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_AutoType_34P0_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_AutoType_34P0_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* common */
};
static asn_SEQUENCE_specifics_t asn_SPC_AutoType_34P0_specs_1 = {
@@ -423,10 +423,10 @@ static asn_TYPE_member_t asn_MBR_AutoType_34P1_3[] = {
.name = "common"
},
};
-static ber_tlv_tag_t asn_DEF_AutoType_34P1_tags_3[] = {
+static const ber_tlv_tag_t asn_DEF_AutoType_34P1_tags_3[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_AutoType_34P1_tag2el_3[] = {
+static const asn_TYPE_tag2member_t asn_MAP_AutoType_34P1_tag2el_3[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* common */
};
static asn_SEQUENCE_specifics_t asn_SPC_AutoType_34P1_specs_3 = {
@@ -515,7 +515,7 @@ static asn_TYPE_member_t asn_MBR_AutoChoice_1[] = {
.name = "type2"
},
};
-static asn_TYPE_tag2member_t asn_MAP_AutoChoice_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_AutoChoice_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* type1 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* type2 */
};
diff --git a/tests/88-integer-enum-OK.asn1.-Pfwide-types b/tests/88-integer-enum-OK.asn1.-Pfwide-types
index 50e96aff..9b19c156 100644
--- a/tests/88-integer-enum-OK.asn1.-Pfwide-types
+++ b/tests/88-integer-enum-OK.asn1.-Pfwide-types
@@ -104,7 +104,7 @@ T_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [T] >>> ***/
-static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_T = {
diff --git a/tests/89-bit-string-enum-OK.asn1.-Pfcompound-names b/tests/89-bit-string-enum-OK.asn1.-Pfcompound-names
index 51e98fa1..cbd2b96a 100644
--- a/tests/89-bit-string-enum-OK.asn1.-Pfcompound-names
+++ b/tests/89-bit-string-enum-OK.asn1.-Pfcompound-names
@@ -44,7 +44,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
.name = "bs"
},
};
-static asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* bs */
};
static asn_CHOICE_specifics_t asn_SPC_T_specs_1 = {
diff --git a/tests/89-bit-string-enum-OK.asn1.-Pfwide-types b/tests/89-bit-string-enum-OK.asn1.-Pfwide-types
index 3fca9389..3c4ea404 100644
--- a/tests/89-bit-string-enum-OK.asn1.-Pfwide-types
+++ b/tests/89-bit-string-enum-OK.asn1.-Pfwide-types
@@ -44,7 +44,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
.name = "bs"
},
};
-static asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* bs */
};
static asn_CHOICE_specifics_t asn_SPC_T_specs_1 = {
diff --git a/tests/90-cond-int-type-OK.asn1.-P b/tests/90-cond-int-type-OK.asn1.-P
index c4967083..175eacc4 100644
--- a/tests/90-cond-int-type-OK.asn1.-P
+++ b/tests/90-cond-int-type-OK.asn1.-P
@@ -97,7 +97,7 @@ CN_IntegerUnlimited_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [CN-IntegerUnlimited] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerUnlimited_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerUnlimited_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerUnlimited = {
@@ -235,7 +235,7 @@ CN_IntegerMinMax_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [CN-IntegerMinMax] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerMinMax_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerMinMax_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax = {
@@ -377,7 +377,7 @@ CN_IntegerMinLow_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [CN-IntegerMinLow] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerMinLow_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerMinLow_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow = {
@@ -525,7 +525,7 @@ NO_IntegerMinHigh_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerMinHigh] >>> ***/
-static ber_tlv_tag_t asn_DEF_NO_IntegerMinHigh_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerMinHigh_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh = {
@@ -667,12 +667,12 @@ NO_IntegerLowHigh_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerLowHigh] >>> ***/
-static asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_NO_IntegerLowHigh_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerLowHigh_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh = {
@@ -814,7 +814,7 @@ CN_IntegerLowMax_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [CN-IntegerLowMax] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax = {
@@ -962,7 +962,7 @@ NO_IntegerHighMax_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerHighMax] >>> ***/
-static ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax = {
@@ -1110,7 +1110,7 @@ NO_IntegerLowestMax_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerLowestMax] >>> ***/
-static ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax = {
@@ -1252,12 +1252,12 @@ NO_IntegerOutRange_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
-static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange = {
@@ -1399,12 +1399,12 @@ NO_IntegerOutValue_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
-static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue = {
@@ -1546,7 +1546,7 @@ OK_IntegerInRange1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-IntegerInRange1] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1 = {
@@ -1688,7 +1688,7 @@ OK_IntegerInRange2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-IntegerInRange2] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2 = {
@@ -1830,7 +1830,7 @@ OK_IntegerInRange3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-IntegerInRange3] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3 = {
@@ -1972,7 +1972,7 @@ OK_IntegerInRange4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-IntegerInRange4] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4 = {
@@ -2114,7 +2114,7 @@ OK_IntegerInRange5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-IntegerInRange5] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5 = {
@@ -2247,12 +2247,12 @@ NO_IntegerInRange6_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
-static asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6 = {
@@ -2384,7 +2384,7 @@ CN_IntegerEnumerated1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [CN-IntegerEnumerated1] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1 = {
@@ -2516,7 +2516,7 @@ NO_IntegerEnumerated2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerEnumerated2] >>> ***/
-static ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2 = {
diff --git a/tests/90-cond-int-type-OK.asn1.-Pfwide-types b/tests/90-cond-int-type-OK.asn1.-Pfwide-types
index 6c615e8c..ca7fb6ea 100644
--- a/tests/90-cond-int-type-OK.asn1.-Pfwide-types
+++ b/tests/90-cond-int-type-OK.asn1.-Pfwide-types
@@ -97,7 +97,7 @@ CN_IntegerUnlimited_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [CN-IntegerUnlimited] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerUnlimited_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerUnlimited_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerUnlimited = {
@@ -236,7 +236,7 @@ CN_IntegerMinMax_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [CN-IntegerMinMax] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerMinMax_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerMinMax_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax = {
@@ -384,7 +384,7 @@ CN_IntegerMinLow_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [CN-IntegerMinLow] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerMinLow_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerMinLow_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow = {
@@ -532,7 +532,7 @@ NO_IntegerMinHigh_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerMinHigh] >>> ***/
-static ber_tlv_tag_t asn_DEF_NO_IntegerMinHigh_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerMinHigh_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh = {
@@ -674,12 +674,12 @@ NO_IntegerLowHigh_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerLowHigh] >>> ***/
-static asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_NO_IntegerLowHigh_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerLowHigh_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh = {
@@ -827,7 +827,7 @@ CN_IntegerLowMax_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [CN-IntegerLowMax] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax = {
@@ -975,7 +975,7 @@ NO_IntegerHighMax_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerHighMax] >>> ***/
-static ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax = {
@@ -1123,7 +1123,7 @@ NO_IntegerLowestMax_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerLowestMax] >>> ***/
-static ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax = {
@@ -1265,12 +1265,12 @@ NO_IntegerOutRange_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
-static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange = {
@@ -1412,12 +1412,12 @@ NO_IntegerOutValue_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
-static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue = {
@@ -1559,7 +1559,7 @@ OK_IntegerInRange1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-IntegerInRange1] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1 = {
@@ -1701,7 +1701,7 @@ OK_IntegerInRange2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-IntegerInRange2] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2 = {
@@ -1843,7 +1843,7 @@ OK_IntegerInRange3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-IntegerInRange3] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3 = {
@@ -1985,7 +1985,7 @@ OK_IntegerInRange4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-IntegerInRange4] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4 = {
@@ -2133,7 +2133,7 @@ OK_IntegerInRange5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-IntegerInRange5] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5 = {
@@ -2266,12 +2266,12 @@ NO_IntegerInRange6_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
-static asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6 = {
@@ -2403,7 +2403,7 @@ CN_IntegerEnumerated1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [CN-IntegerEnumerated1] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1 = {
@@ -2535,7 +2535,7 @@ NO_IntegerEnumerated2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerEnumerated2] >>> ***/
-static ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2 = {
diff --git a/tests/90-cond-int-type-OK.asn1.-Pgen-PER b/tests/90-cond-int-type-OK.asn1.-Pgen-PER
index 1056c6a1..57461071 100644
--- a/tests/90-cond-int-type-OK.asn1.-Pgen-PER
+++ b/tests/90-cond-int-type-OK.asn1.-Pgen-PER
@@ -114,7 +114,7 @@ CN_IntegerUnlimited_encode_uper(asn_TYPE_descriptor_t *td,
/*** <<< STAT-DEFS [CN-IntegerUnlimited] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerUnlimited_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerUnlimited_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerUnlimited = {
@@ -278,7 +278,7 @@ static asn_per_constraints_t asn_PER_type_CN_IntegerMinMax_constr_1 GCC_NOTUSED
/*** <<< STAT-DEFS [CN-IntegerMinMax] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerMinMax_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerMinMax_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax = {
@@ -446,7 +446,7 @@ static asn_per_constraints_t asn_PER_type_CN_IntegerMinLow_constr_1 GCC_NOTUSED
/*** <<< STAT-DEFS [CN-IntegerMinLow] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerMinLow_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerMinLow_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow = {
@@ -620,7 +620,7 @@ static asn_per_constraints_t asn_PER_type_NO_IntegerMinHigh_constr_1 GCC_NOTUSED
/*** <<< STAT-DEFS [NO-IntegerMinHigh] >>> ***/
-static ber_tlv_tag_t asn_DEF_NO_IntegerMinHigh_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerMinHigh_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh = {
@@ -788,12 +788,12 @@ static asn_per_constraints_t asn_PER_type_NO_IntegerLowHigh_constr_1 GCC_NOTUSED
/*** <<< STAT-DEFS [NO-IntegerLowHigh] >>> ***/
-static asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_NO_IntegerLowHigh_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerLowHigh_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh = {
@@ -961,7 +961,7 @@ static asn_per_constraints_t asn_PER_type_CN_IntegerLowMax_constr_1 GCC_NOTUSED
/*** <<< STAT-DEFS [CN-IntegerLowMax] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax = {
@@ -1135,7 +1135,7 @@ static asn_per_constraints_t asn_PER_type_NO_IntegerHighMax_constr_1 GCC_NOTUSED
/*** <<< STAT-DEFS [NO-IntegerHighMax] >>> ***/
-static ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax = {
@@ -1309,7 +1309,7 @@ static asn_per_constraints_t asn_PER_type_NO_IntegerLowestMax_constr_1 GCC_NOTUS
/*** <<< STAT-DEFS [NO-IntegerLowestMax] >>> ***/
-static ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax = {
@@ -1477,12 +1477,12 @@ static asn_per_constraints_t asn_PER_type_NO_IntegerOutRange_constr_1 GCC_NOTUSE
/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
-static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange = {
@@ -1650,12 +1650,12 @@ static asn_per_constraints_t asn_PER_type_NO_IntegerOutValue_constr_1 GCC_NOTUSE
/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
-static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue = {
@@ -1823,7 +1823,7 @@ static asn_per_constraints_t asn_PER_type_OK_IntegerInRange1_constr_1 GCC_NOTUSE
/*** <<< STAT-DEFS [OK-IntegerInRange1] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1 = {
@@ -1991,7 +1991,7 @@ static asn_per_constraints_t asn_PER_type_OK_IntegerInRange2_constr_1 GCC_NOTUSE
/*** <<< STAT-DEFS [OK-IntegerInRange2] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2 = {
@@ -2159,7 +2159,7 @@ static asn_per_constraints_t asn_PER_type_OK_IntegerInRange3_constr_1 GCC_NOTUSE
/*** <<< STAT-DEFS [OK-IntegerInRange3] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3 = {
@@ -2327,7 +2327,7 @@ static asn_per_constraints_t asn_PER_type_OK_IntegerInRange4_constr_1 GCC_NOTUSE
/*** <<< STAT-DEFS [OK-IntegerInRange4] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4 = {
@@ -2495,7 +2495,7 @@ static asn_per_constraints_t asn_PER_type_OK_IntegerInRange5_constr_1 GCC_NOTUSE
/*** <<< STAT-DEFS [OK-IntegerInRange5] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5 = {
@@ -2654,12 +2654,12 @@ static asn_per_constraints_t asn_PER_type_NO_IntegerInRange6_constr_1 GCC_NOTUSE
/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
-static asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
+static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
};
-static ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6 = {
@@ -2809,7 +2809,7 @@ CN_IntegerEnumerated1_encode_uper(asn_TYPE_descriptor_t *td,
/*** <<< STAT-DEFS [CN-IntegerEnumerated1] >>> ***/
-static ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1 = {
@@ -2959,7 +2959,7 @@ NO_IntegerEnumerated2_encode_uper(asn_TYPE_descriptor_t *td,
/*** <<< STAT-DEFS [NO-IntegerEnumerated2] >>> ***/
-static ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2 = {
diff --git a/tests/91-cond-int-blessSize-OK.asn1.-Pfbless-SIZE b/tests/91-cond-int-blessSize-OK.asn1.-Pfbless-SIZE
index 33befbc7..9d3fbe68 100644
--- a/tests/91-cond-int-blessSize-OK.asn1.-Pfbless-SIZE
+++ b/tests/91-cond-int-blessSize-OK.asn1.-Pfbless-SIZE
@@ -110,7 +110,7 @@ OK_Integer1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-Integer1] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_Integer1_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_Integer1_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_Integer1 = {
@@ -248,7 +248,7 @@ OK_Integer2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-Integer2] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_Integer2_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_Integer2_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_Integer2 = {
@@ -386,7 +386,7 @@ OK_Integer3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-Integer3] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_Integer3_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_Integer3_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_Integer3 = {
@@ -524,7 +524,7 @@ OK_Integer4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [OK-Integer4] >>> ***/
-static ber_tlv_tag_t asn_DEF_OK_Integer4_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OK_Integer4_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_OK_Integer4 = {
@@ -662,7 +662,7 @@ NO_Integer5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-Integer5] >>> ***/
-static ber_tlv_tag_t asn_DEF_NO_Integer5_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_NO_Integer5_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NO_Integer5 = {
diff --git a/tests/92-circular-loops-OK.asn1.-Pfindirect-choice b/tests/92-circular-loops-OK.asn1.-Pfindirect-choice
index baae875b..6695a411 100644
--- a/tests/92-circular-loops-OK.asn1.-Pfindirect-choice
+++ b/tests/92-circular-loops-OK.asn1.-Pfindirect-choice
@@ -138,10 +138,10 @@ static asn_TYPE_member_t asn_MBR_Everything_1[] = {
.name = "to"
},
};
-static ber_tlv_tag_t asn_DEF_Everything_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Everything_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Everything_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Everything_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch1 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch2 */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch3 */
@@ -251,7 +251,7 @@ static asn_TYPE_member_t asn_MBR_Choice1_1[] = {
.name = "some2"
},
};
-static asn_TYPE_tag2member_t asn_MAP_Choice1_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice1_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* something */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some2 */
};
@@ -354,7 +354,7 @@ static asn_TYPE_member_t asn_MBR_Choice2_1[] = {
.name = "some3"
},
};
-static asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* typeref */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some3 */
};
@@ -458,11 +458,11 @@ static asn_TYPE_member_t asn_MBR_a_2[] = {
.name = "aa"
},
};
-static ber_tlv_tag_t asn_DEF_a_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_a_tags_2[] = {
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_a_tag2el_2[] = {
+static const asn_TYPE_tag2member_t asn_MAP_a_tag2el_2[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* aa */
};
static asn_SEQUENCE_specifics_t asn_SPC_a_specs_2 = {
@@ -510,7 +510,7 @@ static asn_TYPE_member_t asn_MBR_c_5[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_c_tags_5[] = {
+static const ber_tlv_tag_t asn_DEF_c_tags_5[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
@@ -573,7 +573,7 @@ static asn_TYPE_member_t asn_MBR_Choice3_1[] = {
.name = "c"
},
};
-static asn_TYPE_tag2member_t asn_MAP_Choice3_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice3_tag2el_1[] = {
{ (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 */
@@ -703,10 +703,10 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = {
.name = "set3"
},
};
-static ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* int */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* seq */
@@ -758,7 +758,7 @@ static asn_TYPE_member_t asn_MBR_Set_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_Set_specs_1 = {
@@ -866,10 +866,10 @@ static asn_TYPE_member_t asn_MBR_Sequence_1[] = {
.name = "set"
},
};
-static ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* seq */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* b */
@@ -1007,7 +1007,7 @@ TypeRef_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [TypeRef] >>> ***/
-static ber_tlv_tag_t asn_DEF_TypeRef_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_TypeRef_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_TYPE_descriptor_t asn_DEF_TypeRef = {
@@ -1078,11 +1078,11 @@ static asn_TYPE_member_t asn_MBR_b_3[] = {
.name = "b"
},
};
-static ber_tlv_tag_t asn_DEF_b_tags_3[] = {
+static const ber_tlv_tag_t asn_DEF_b_tags_3[] = {
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = {
+static const asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* b */
};
static asn_SEQUENCE_specifics_t asn_SPC_b_specs_3 = {
@@ -1139,10 +1139,10 @@ static asn_TYPE_member_t asn_MBR_Alpha_1[] = {
.name = "b"
},
};
-static ber_tlv_tag_t asn_DEF_Alpha_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Alpha_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Alpha_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Alpha_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */
};
@@ -1230,10 +1230,10 @@ static asn_TYPE_member_t asn_MBR_Beta_1[] = {
.name = "g"
},
};
-static ber_tlv_tag_t asn_DEF_Beta_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Beta_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Beta_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Beta_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* b */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g */
};
@@ -1333,10 +1333,10 @@ static asn_TYPE_member_t asn_MBR_Gamma_1[] = {
.name = "b"
},
};
-static ber_tlv_tag_t asn_DEF_Gamma_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Gamma_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Gamma_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Gamma_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* o */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* b */
@@ -1427,13 +1427,13 @@ static asn_TYPE_member_t asn_MBR_OneTwo_1[] = {
.name = "m12"
},
};
-static ber_tlv_tag_t asn_DEF_OneTwo_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OneTwo_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_OneTwo_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_OneTwo_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m12 */
};
-static uint8_t asn_MAP_OneTwo_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
+static const uint8_t asn_MAP_OneTwo_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7)
};
static asn_SET_specifics_t asn_SPC_OneTwo_specs_1 = {
@@ -1524,13 +1524,13 @@ static asn_TYPE_member_t asn_MBR_TwoThree_1[] = {
.name = "m23"
},
};
-static ber_tlv_tag_t asn_DEF_TwoThree_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_TwoThree_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_TwoThree_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_TwoThree_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m23 */
};
-static uint8_t asn_MAP_TwoThree_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
+static const uint8_t asn_MAP_TwoThree_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7)
};
static asn_SET_specifics_t asn_SPC_TwoThree_specs_1 = {
@@ -1634,14 +1634,14 @@ static asn_TYPE_member_t asn_MBR_ThreeOne_1[] = {
.name = "g"
},
};
-static ber_tlv_tag_t asn_DEF_ThreeOne_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_ThreeOne_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_ThreeOne_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_ThreeOne_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* m31 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g */
};
-static uint8_t asn_MAP_ThreeOne_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
+static const uint8_t asn_MAP_ThreeOne_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7) | (1 << 6)
};
static asn_SET_specifics_t asn_SPC_ThreeOne_specs_1 = {
diff --git a/tests/92-circular-loops-OK.asn1.-Pfwide-types b/tests/92-circular-loops-OK.asn1.-Pfwide-types
index 05d0db0c..21918d91 100644
--- a/tests/92-circular-loops-OK.asn1.-Pfwide-types
+++ b/tests/92-circular-loops-OK.asn1.-Pfwide-types
@@ -138,10 +138,10 @@ static asn_TYPE_member_t asn_MBR_Everything_1[] = {
.name = "to"
},
};
-static ber_tlv_tag_t asn_DEF_Everything_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Everything_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Everything_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Everything_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch1 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch2 */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch3 */
@@ -251,7 +251,7 @@ static asn_TYPE_member_t asn_MBR_Choice1_1[] = {
.name = "some2"
},
};
-static asn_TYPE_tag2member_t asn_MAP_Choice1_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice1_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* something */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some2 */
};
@@ -353,7 +353,7 @@ static asn_TYPE_member_t asn_MBR_Choice2_1[] = {
.name = "some3"
},
};
-static asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* typeref */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some3 */
};
@@ -457,11 +457,11 @@ static asn_TYPE_member_t asn_MBR_a_2[] = {
.name = "aa"
},
};
-static ber_tlv_tag_t asn_DEF_a_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_a_tags_2[] = {
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_a_tag2el_2[] = {
+static const asn_TYPE_tag2member_t asn_MAP_a_tag2el_2[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* aa */
};
static asn_SEQUENCE_specifics_t asn_SPC_a_specs_2 = {
@@ -509,7 +509,7 @@ static asn_TYPE_member_t asn_MBR_c_5[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_c_tags_5[] = {
+static const ber_tlv_tag_t asn_DEF_c_tags_5[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
@@ -572,7 +572,7 @@ static asn_TYPE_member_t asn_MBR_Choice3_1[] = {
.name = "c"
},
};
-static asn_TYPE_tag2member_t asn_MAP_Choice3_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice3_tag2el_1[] = {
{ (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 */
@@ -702,10 +702,10 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = {
.name = "set3"
},
};
-static ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* int */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* seq */
@@ -757,7 +757,7 @@ static asn_TYPE_member_t asn_MBR_Set_1[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_Set_specs_1 = {
@@ -865,10 +865,10 @@ static asn_TYPE_member_t asn_MBR_Sequence_1[] = {
.name = "set"
},
};
-static ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* seq */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* b */
@@ -1006,7 +1006,7 @@ TypeRef_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [TypeRef] >>> ***/
-static ber_tlv_tag_t asn_DEF_TypeRef_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_TypeRef_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_TYPE_descriptor_t asn_DEF_TypeRef = {
@@ -1077,11 +1077,11 @@ static asn_TYPE_member_t asn_MBR_b_3[] = {
.name = "b"
},
};
-static ber_tlv_tag_t asn_DEF_b_tags_3[] = {
+static const ber_tlv_tag_t asn_DEF_b_tags_3[] = {
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = {
+static const asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* b */
};
static asn_SEQUENCE_specifics_t asn_SPC_b_specs_3 = {
@@ -1138,10 +1138,10 @@ static asn_TYPE_member_t asn_MBR_Alpha_1[] = {
.name = "b"
},
};
-static ber_tlv_tag_t asn_DEF_Alpha_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Alpha_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Alpha_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Alpha_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */
};
@@ -1229,10 +1229,10 @@ static asn_TYPE_member_t asn_MBR_Beta_1[] = {
.name = "g"
},
};
-static ber_tlv_tag_t asn_DEF_Beta_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Beta_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Beta_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Beta_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* b */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g */
};
@@ -1332,10 +1332,10 @@ static asn_TYPE_member_t asn_MBR_Gamma_1[] = {
.name = "b"
},
};
-static ber_tlv_tag_t asn_DEF_Gamma_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Gamma_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Gamma_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Gamma_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* o */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* b */
@@ -1426,13 +1426,13 @@ static asn_TYPE_member_t asn_MBR_OneTwo_1[] = {
.name = "m12"
},
};
-static ber_tlv_tag_t asn_DEF_OneTwo_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_OneTwo_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_OneTwo_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_OneTwo_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m12 */
};
-static uint8_t asn_MAP_OneTwo_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
+static const uint8_t asn_MAP_OneTwo_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7)
};
static asn_SET_specifics_t asn_SPC_OneTwo_specs_1 = {
@@ -1523,13 +1523,13 @@ static asn_TYPE_member_t asn_MBR_TwoThree_1[] = {
.name = "m23"
},
};
-static ber_tlv_tag_t asn_DEF_TwoThree_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_TwoThree_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_TwoThree_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_TwoThree_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m23 */
};
-static uint8_t asn_MAP_TwoThree_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
+static const uint8_t asn_MAP_TwoThree_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7)
};
static asn_SET_specifics_t asn_SPC_TwoThree_specs_1 = {
@@ -1633,14 +1633,14 @@ static asn_TYPE_member_t asn_MBR_ThreeOne_1[] = {
.name = "g"
},
};
-static ber_tlv_tag_t asn_DEF_ThreeOne_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_ThreeOne_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_ThreeOne_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_ThreeOne_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* m31 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g */
};
-static uint8_t asn_MAP_ThreeOne_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
+static const uint8_t asn_MAP_ThreeOne_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7) | (1 << 6)
};
static asn_SET_specifics_t asn_SPC_ThreeOne_specs_1 = {
diff --git a/tests/93-asn1c-controls-OK.asn1.-Pfwide-types b/tests/93-asn1c-controls-OK.asn1.-Pfwide-types
index ddd88e9d..41c92044 100644
--- a/tests/93-asn1c-controls-OK.asn1.-Pfwide-types
+++ b/tests/93-asn1c-controls-OK.asn1.-Pfwide-types
@@ -40,10 +40,10 @@ static asn_TYPE_member_t asn_MBR_Sequence_1[] = {
.name = "aptr"
},
};
-static ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ainl */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* aptr */
};
@@ -145,14 +145,14 @@ static asn_TYPE_member_t asn_MBR_Set_1[] = {
.name = "aptr"
},
};
-static ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ainl */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* aptr */
};
-static uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
+static const uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7) | (1 << 6)
};
static asn_SET_specifics_t asn_SPC_Set_specs_1 = {
@@ -252,7 +252,7 @@ static asn_TYPE_member_t asn_MBR_setof_2[] = {
.name = ""
},
};
-static ber_tlv_tag_t asn_DEF_setof_tags_2[] = {
+static const ber_tlv_tag_t asn_DEF_setof_tags_2[] = {
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
@@ -315,7 +315,7 @@ static asn_TYPE_member_t asn_MBR_Choice_1[] = {
.name = "ainl"
},
};
-static asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* setof */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* aptr */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ainl */
diff --git a/tests/94-set-optionals-OK.asn1.-P b/tests/94-set-optionals-OK.asn1.-P
index 862a5bb4..cd099c08 100644
--- a/tests/94-set-optionals-OK.asn1.-P
+++ b/tests/94-set-optionals-OK.asn1.-P
@@ -147,10 +147,10 @@ static asn_TYPE_member_t asn_MBR_TestSet_1[] = {
.name = "m9"
},
};
-static ber_tlv_tag_t asn_DEF_TestSet_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_TestSet_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_TestSet_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_TestSet_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* m0 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* m1 */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* m2 */
@@ -162,7 +162,7 @@ static asn_TYPE_tag2member_t asn_MAP_TestSet_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* m8 */
{ (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* m9 */
};
-static uint8_t asn_MAP_TestSet_mmap_1[(10 + (8 * sizeof(unsigned int)) - 1) / 8] = {
+static const uint8_t asn_MAP_TestSet_mmap_1[(10 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7) | (0 << 6) | (1 << 5) | (1 << 4) | (0 << 3) | (1 << 2) | (1 << 1) | (1 << 0),
(0 << 7) | (1 << 6)
};
diff --git a/tests/95-choice-per-order-OK.asn1.-Pfwide-types b/tests/95-choice-per-order-OK.asn1.-Pfwide-types
index 92158bb0..c4c2d6bb 100644
--- a/tests/95-choice-per-order-OK.asn1.-Pfwide-types
+++ b/tests/95-choice-per-order-OK.asn1.-Pfwide-types
@@ -78,7 +78,7 @@ static asn_TYPE_member_t asn_MBR_ch_4[] = {
.name = "int"
},
};
-static asn_TYPE_tag2member_t asn_MAP_ch_tag2el_4[] = {
+static const asn_TYPE_tag2member_t asn_MAP_ch_tag2el_4[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* int */
{ (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 0, 0, 0 } /* null */
};
@@ -153,7 +153,7 @@ static asn_TYPE_member_t asn_MBR_Choice_1[] = {
.name = "bool"
},
};
-static asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 3, 0, 0 }, /* bool */
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, 0, 0 }, /* int */
{ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 1, 0, 0 }, /* bitstr */
@@ -246,7 +246,7 @@ static asn_TYPE_member_t asn_MBR_Choice2_1[] = {
.name = "roid"
},
};
-static asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bitstr */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* roid */
};
diff --git a/tests/95-choice-per-order-OK.asn1.-Pgen-PER b/tests/95-choice-per-order-OK.asn1.-Pgen-PER
index cb97ccd4..c658e4c3 100644
--- a/tests/95-choice-per-order-OK.asn1.-Pgen-PER
+++ b/tests/95-choice-per-order-OK.asn1.-Pgen-PER
@@ -91,8 +91,8 @@ static asn_TYPE_member_t asn_MBR_ch_4[] = {
.name = "int"
},
};
-static int asn_MAP_ch_cmap_4[] = { 1, 0 };
-static asn_TYPE_tag2member_t asn_MAP_ch_tag2el_4[] = {
+static const int asn_MAP_ch_cmap_4[] = { 1, 0 };
+static const asn_TYPE_tag2member_t asn_MAP_ch_tag2el_4[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* int */
{ (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 0, 0, 0 } /* null */
};
@@ -168,8 +168,8 @@ static asn_TYPE_member_t asn_MBR_Choice_1[] = {
.name = "bool"
},
};
-static int asn_MAP_Choice_cmap_1[] = { 2, 1, 0, 3 };
-static asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = {
+static const int asn_MAP_Choice_cmap_1[] = { 2, 1, 0, 3 };
+static const asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 3, 0, 0 }, /* bool */
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, 0, 0 }, /* int */
{ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 1, 0, 0 }, /* bitstr */
@@ -271,7 +271,7 @@ static asn_TYPE_member_t asn_MBR_Choice2_1[] = {
.name = "roid"
},
};
-static asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bitstr */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* roid */
};
diff --git a/tests/98-attribute-class-OK.asn1.-P b/tests/98-attribute-class-OK.asn1.-P
index c38d55cf..dba5ed3e 100644
--- a/tests/98-attribute-class-OK.asn1.-P
+++ b/tests/98-attribute-class-OK.asn1.-P
@@ -63,10 +63,10 @@ static asn_TYPE_member_t asn_MBR_Attribute_1[] = {
.name = "siAttributeValue"
},
};
-static ber_tlv_tag_t asn_DEF_Attribute_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_Attribute_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static asn_TYPE_tag2member_t asn_MAP_Attribute_tag2el_1[] = {
+static const asn_TYPE_tag2member_t asn_MAP_Attribute_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (13 << 2)), 0, 0, 0 }, /* identifier */
{ (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 1, 0, 0 } /* siAttributeValue */
};