Commit 46ef3f33 authored by Lev Walkin's avatar Lev Walkin

retain constness of maps

parent 80334ed5
...@@ -730,7 +730,7 @@ asn1c_lang_C_type_SET_def(arg_t *arg) { ...@@ -730,7 +730,7 @@ asn1c_lang_C_type_SET_def(arg_t *arg) {
tag2el_cxer_count); tag2el_cxer_count);
OUT("%d,\t/* Whether extensible */\n", OUT("%d,\t/* Whether extensible */\n",
compute_extensions_start(expr) == -1 ? 0 : 1); compute_extensions_start(expr) == -1 ? 0 : 1);
OUT("(unsigned int *)asn_MAP_%s_mmap_%d\t/* Mandatory elements map */\n", OUT("(const unsigned int *)asn_MAP_%s_mmap_%d\t/* Mandatory elements map */\n",
p, expr->_type_unique_index); p, expr->_type_unique_index);
); );
OUT("};\n"); OUT("};\n");
......
...@@ -126,7 +126,7 @@ static asn_SET_specifics_t asn_SPC_signed_specs_4 = { ...@@ -126,7 +126,7 @@ static asn_SET_specifics_t asn_SPC_signed_specs_4 = {
asn_MAP_signed_tag2el_4, /* Same as above */ asn_MAP_signed_tag2el_4, /* Same as above */
1, /* Count of tags in the CXER map */ 1, /* Count of tags in the CXER map */
0, /* Whether extensible */ 0, /* Whether extensible */
(unsigned int *)asn_MAP_signed_mmap_4 /* Mandatory elements map */ (const unsigned int *)asn_MAP_signed_mmap_4 /* Mandatory elements map */
}; };
static /* Use -fall-defs-global to expose */ static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_signed_4 = { asn_TYPE_descriptor_t asn_DEF_signed_4 = {
......
...@@ -92,7 +92,7 @@ static asn_SET_specifics_t asn_SPC_T_specs_1 = { ...@@ -92,7 +92,7 @@ static asn_SET_specifics_t asn_SPC_T_specs_1 = {
asn_MAP_T_tag2el_1, /* Same as above */ asn_MAP_T_tag2el_1, /* Same as above */
3, /* Count of tags in the CXER map */ 3, /* Count of tags in the CXER map */
1, /* Whether extensible */ 1, /* Whether extensible */
(unsigned int *)asn_MAP_T_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_T_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_T = { asn_TYPE_descriptor_t asn_DEF_T = {
"T", "T",
......
...@@ -498,7 +498,7 @@ static asn_SET_specifics_t asn_SPC_Stuff_specs_1 = { ...@@ -498,7 +498,7 @@ static asn_SET_specifics_t asn_SPC_Stuff_specs_1 = {
asn_MAP_Stuff_tag2el_cxer_1, asn_MAP_Stuff_tag2el_cxer_1,
3, /* Count of tags in the CXER map */ 3, /* Count of tags in the CXER map */
1, /* Whether extensible */ 1, /* Whether extensible */
(unsigned int *)asn_MAP_Stuff_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_Stuff_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_Stuff = { asn_TYPE_descriptor_t asn_DEF_Stuff = {
"Stuff", "Stuff",
......
...@@ -456,7 +456,7 @@ static asn_SET_specifics_t asn_SPC_Test_structure_2_specs_1 = { ...@@ -456,7 +456,7 @@ static asn_SET_specifics_t asn_SPC_Test_structure_2_specs_1 = {
asn_MAP_Test_structure_2_tag2el_1, /* Same as above */ asn_MAP_Test_structure_2_tag2el_1, /* Same as above */
1, /* Count of tags in the CXER map */ 1, /* Count of tags in the CXER map */
0, /* Whether extensible */ 0, /* Whether extensible */
(unsigned int *)asn_MAP_Test_structure_2_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_Test_structure_2_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_Test_structure_2 = { asn_TYPE_descriptor_t asn_DEF_Test_structure_2 = {
"Test-structure-2", "Test-structure-2",
...@@ -553,7 +553,7 @@ static asn_SET_specifics_t asn_SPC_Test_structure_3_specs_1 = { ...@@ -553,7 +553,7 @@ static asn_SET_specifics_t asn_SPC_Test_structure_3_specs_1 = {
asn_MAP_Test_structure_3_tag2el_1, /* Same as above */ asn_MAP_Test_structure_3_tag2el_1, /* Same as above */
1, /* Count of tags in the CXER map */ 1, /* Count of tags in the CXER map */
0, /* Whether extensible */ 0, /* Whether extensible */
(unsigned int *)asn_MAP_Test_structure_3_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_Test_structure_3_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_Test_structure_3 = { asn_TYPE_descriptor_t asn_DEF_Test_structure_3 = {
"Test-structure-3", "Test-structure-3",
......
...@@ -66,7 +66,7 @@ static asn_SET_specifics_t asn_SPC_T1_specs_1 = { ...@@ -66,7 +66,7 @@ static asn_SET_specifics_t asn_SPC_T1_specs_1 = {
asn_MAP_T1_tag2el_1, /* Same as above */ asn_MAP_T1_tag2el_1, /* Same as above */
1, /* Count of tags in the CXER map */ 1, /* Count of tags in the CXER map */
1, /* Whether extensible */ 1, /* Whether extensible */
(unsigned int *)asn_MAP_T1_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_T1_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_T1 = { asn_TYPE_descriptor_t asn_DEF_T1 = {
"T1", "T1",
...@@ -160,7 +160,7 @@ static asn_SET_specifics_t asn_SPC_T2_specs_1 = { ...@@ -160,7 +160,7 @@ static asn_SET_specifics_t asn_SPC_T2_specs_1 = {
asn_MAP_T2_tag2el_1, /* Same as above */ asn_MAP_T2_tag2el_1, /* Same as above */
1, /* Count of tags in the CXER map */ 1, /* Count of tags in the CXER map */
1, /* Whether extensible */ 1, /* Whether extensible */
(unsigned int *)asn_MAP_T2_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_T2_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_T2 = { asn_TYPE_descriptor_t asn_DEF_T2 = {
"T2", "T2",
......
...@@ -90,7 +90,7 @@ static asn_SET_specifics_t asn_SPC_class_specs_4 = { ...@@ -90,7 +90,7 @@ static asn_SET_specifics_t asn_SPC_class_specs_4 = {
asn_MAP_class_tag2el_4, /* Same as above */ asn_MAP_class_tag2el_4, /* Same as above */
0, /* Count of tags in the CXER map */ 0, /* Count of tags in the CXER map */
1, /* Whether extensible */ 1, /* Whether extensible */
(unsigned int *)asn_MAP_class_mmap_4 /* Mandatory elements map */ (const unsigned int *)asn_MAP_class_mmap_4 /* Mandatory elements map */
}; };
static /* Use -fall-defs-global to expose */ static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_class_4 = { asn_TYPE_descriptor_t asn_DEF_class_4 = {
......
...@@ -454,7 +454,7 @@ static asn_SET_specifics_t asn_SPC_Set_specs_1 = { ...@@ -454,7 +454,7 @@ static asn_SET_specifics_t asn_SPC_Set_specs_1 = {
asn_MAP_Set_tag2el_1, /* Same as above */ asn_MAP_Set_tag2el_1, /* Same as above */
2, /* Count of tags in the CXER map */ 2, /* Count of tags in the CXER map */
0, /* Whether extensible */ 0, /* Whether extensible */
(unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_Set = { asn_TYPE_descriptor_t asn_DEF_Set = {
"Set", "Set",
...@@ -688,7 +688,7 @@ static asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1 = { ...@@ -688,7 +688,7 @@ static asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1 = {
asn_MAP_ExtensibleSet_tag2el_1, /* Same as above */ asn_MAP_ExtensibleSet_tag2el_1, /* Same as above */
2, /* Count of tags in the CXER map */ 2, /* Count of tags in the CXER map */
1, /* Whether extensible */ 1, /* Whether extensible */
(unsigned int *)asn_MAP_ExtensibleSet_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_ExtensibleSet_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = { asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = {
"ExtensibleSet", "ExtensibleSet",
......
...@@ -680,7 +680,7 @@ static asn_SET_specifics_t asn_SPC_two_name_specs_7 = { ...@@ -680,7 +680,7 @@ static asn_SET_specifics_t asn_SPC_two_name_specs_7 = {
asn_MAP_two_name_tag2el_7, /* Same as above */ asn_MAP_two_name_tag2el_7, /* Same as above */
1, /* Count of tags in the CXER map */ 1, /* Count of tags in the CXER map */
0, /* Whether extensible */ 0, /* Whether extensible */
(unsigned int *)asn_MAP_two_name_mmap_7 /* Mandatory elements map */ (const unsigned int *)asn_MAP_two_name_mmap_7 /* Mandatory elements map */
}; };
static /* Use -fall-defs-global to expose */ static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_two_name_7 = { asn_TYPE_descriptor_t asn_DEF_two_name_7 = {
......
...@@ -678,7 +678,7 @@ static asn_SET_specifics_t asn_SPC_Ypet_specs_1 = { ...@@ -678,7 +678,7 @@ static asn_SET_specifics_t asn_SPC_Ypet_specs_1 = {
asn_MAP_Ypet_tag2el_1, /* Same as above */ asn_MAP_Ypet_tag2el_1, /* Same as above */
5, /* Count of tags in the CXER map */ 5, /* Count of tags in the CXER map */
0, /* Whether extensible */ 0, /* Whether extensible */
(unsigned int *)asn_MAP_Ypet_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_Ypet_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_Ypet = { asn_TYPE_descriptor_t asn_DEF_Ypet = {
"Ypet", "Ypet",
......
...@@ -1449,7 +1449,7 @@ static asn_SET_specifics_t asn_SPC_OneTwo_specs_1 = { ...@@ -1449,7 +1449,7 @@ static asn_SET_specifics_t asn_SPC_OneTwo_specs_1 = {
asn_MAP_OneTwo_tag2el_1, /* Same as above */ asn_MAP_OneTwo_tag2el_1, /* Same as above */
1, /* Count of tags in the CXER map */ 1, /* Count of tags in the CXER map */
0, /* Whether extensible */ 0, /* Whether extensible */
(unsigned int *)asn_MAP_OneTwo_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_OneTwo_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_OneTwo = { asn_TYPE_descriptor_t asn_DEF_OneTwo = {
"OneTwo", "OneTwo",
...@@ -1546,7 +1546,7 @@ static asn_SET_specifics_t asn_SPC_TwoThree_specs_1 = { ...@@ -1546,7 +1546,7 @@ static asn_SET_specifics_t asn_SPC_TwoThree_specs_1 = {
asn_MAP_TwoThree_tag2el_1, /* Same as above */ asn_MAP_TwoThree_tag2el_1, /* Same as above */
1, /* Count of tags in the CXER map */ 1, /* Count of tags in the CXER map */
0, /* Whether extensible */ 0, /* Whether extensible */
(unsigned int *)asn_MAP_TwoThree_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_TwoThree_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_TwoThree = { asn_TYPE_descriptor_t asn_DEF_TwoThree = {
"TwoThree", "TwoThree",
...@@ -1657,7 +1657,7 @@ static asn_SET_specifics_t asn_SPC_ThreeOne_specs_1 = { ...@@ -1657,7 +1657,7 @@ static asn_SET_specifics_t asn_SPC_ThreeOne_specs_1 = {
asn_MAP_ThreeOne_tag2el_1, /* Same as above */ asn_MAP_ThreeOne_tag2el_1, /* Same as above */
2, /* Count of tags in the CXER map */ 2, /* Count of tags in the CXER map */
0, /* Whether extensible */ 0, /* Whether extensible */
(unsigned int *)asn_MAP_ThreeOne_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_ThreeOne_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_ThreeOne = { asn_TYPE_descriptor_t asn_DEF_ThreeOne = {
"ThreeOne", "ThreeOne",
......
...@@ -1448,7 +1448,7 @@ static asn_SET_specifics_t asn_SPC_OneTwo_specs_1 = { ...@@ -1448,7 +1448,7 @@ static asn_SET_specifics_t asn_SPC_OneTwo_specs_1 = {
asn_MAP_OneTwo_tag2el_1, /* Same as above */ asn_MAP_OneTwo_tag2el_1, /* Same as above */
1, /* Count of tags in the CXER map */ 1, /* Count of tags in the CXER map */
0, /* Whether extensible */ 0, /* Whether extensible */
(unsigned int *)asn_MAP_OneTwo_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_OneTwo_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_OneTwo = { asn_TYPE_descriptor_t asn_DEF_OneTwo = {
"OneTwo", "OneTwo",
...@@ -1545,7 +1545,7 @@ static asn_SET_specifics_t asn_SPC_TwoThree_specs_1 = { ...@@ -1545,7 +1545,7 @@ static asn_SET_specifics_t asn_SPC_TwoThree_specs_1 = {
asn_MAP_TwoThree_tag2el_1, /* Same as above */ asn_MAP_TwoThree_tag2el_1, /* Same as above */
1, /* Count of tags in the CXER map */ 1, /* Count of tags in the CXER map */
0, /* Whether extensible */ 0, /* Whether extensible */
(unsigned int *)asn_MAP_TwoThree_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_TwoThree_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_TwoThree = { asn_TYPE_descriptor_t asn_DEF_TwoThree = {
"TwoThree", "TwoThree",
...@@ -1656,7 +1656,7 @@ static asn_SET_specifics_t asn_SPC_ThreeOne_specs_1 = { ...@@ -1656,7 +1656,7 @@ static asn_SET_specifics_t asn_SPC_ThreeOne_specs_1 = {
asn_MAP_ThreeOne_tag2el_1, /* Same as above */ asn_MAP_ThreeOne_tag2el_1, /* Same as above */
2, /* Count of tags in the CXER map */ 2, /* Count of tags in the CXER map */
0, /* Whether extensible */ 0, /* Whether extensible */
(unsigned int *)asn_MAP_ThreeOne_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_ThreeOne_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_ThreeOne = { asn_TYPE_descriptor_t asn_DEF_ThreeOne = {
"ThreeOne", "ThreeOne",
......
...@@ -164,7 +164,7 @@ static asn_SET_specifics_t asn_SPC_Set_specs_1 = { ...@@ -164,7 +164,7 @@ static asn_SET_specifics_t asn_SPC_Set_specs_1 = {
asn_MAP_Set_tag2el_1, /* Same as above */ asn_MAP_Set_tag2el_1, /* Same as above */
2, /* Count of tags in the CXER map */ 2, /* Count of tags in the CXER map */
0, /* Whether extensible */ 0, /* Whether extensible */
(unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_Set = { asn_TYPE_descriptor_t asn_DEF_Set = {
"Set", "Set",
......
...@@ -175,7 +175,7 @@ static asn_SET_specifics_t asn_SPC_TestSet_specs_1 = { ...@@ -175,7 +175,7 @@ static asn_SET_specifics_t asn_SPC_TestSet_specs_1 = {
asn_MAP_TestSet_tag2el_1, /* Same as above */ asn_MAP_TestSet_tag2el_1, /* Same as above */
10, /* Count of tags in the CXER map */ 10, /* Count of tags in the CXER map */
1, /* Whether extensible */ 1, /* Whether extensible */
(unsigned int *)asn_MAP_TestSet_mmap_1 /* Mandatory elements map */ (const unsigned int *)asn_MAP_TestSet_mmap_1 /* Mandatory elements map */
}; };
asn_TYPE_descriptor_t asn_DEF_TestSet = { asn_TYPE_descriptor_t asn_DEF_TestSet = {
"TestSet", "TestSet",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment