Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
46ef3f33
Commit
46ef3f33
authored
Jul 06, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
retain constness of maps
parent
80334ed5
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
21 additions
and
21 deletions
+21
-21
libasn1compiler/asn1c_C.c
libasn1compiler/asn1c_C.c
+1
-1
tests/105-param-2-OK.asn1.-Pfwide-types
tests/105-param-2-OK.asn1.-Pfwide-types
+1
-1
tests/30-set-OK.asn1.-Pfwide-types
tests/30-set-OK.asn1.-Pfwide-types
+1
-1
tests/31-set-of-OK.asn1.-Pfwide-types
tests/31-set-of-OK.asn1.-Pfwide-types
+1
-1
tests/43-recursion-OK.asn1.-Pfwide-types
tests/43-recursion-OK.asn1.-Pfwide-types
+2
-2
tests/47-set-ext-OK.asn1.-Pfwide-types
tests/47-set-ext-OK.asn1.-Pfwide-types
+2
-2
tests/69-reserved-words-OK.asn1.-Pfwide-types
tests/69-reserved-words-OK.asn1.-Pfwide-types
+1
-1
tests/70-xer-test-OK.asn1.-Pfwide-types
tests/70-xer-test-OK.asn1.-Pfwide-types
+2
-2
tests/72-same-names-OK.asn1.-Pfwide-types
tests/72-same-names-OK.asn1.-Pfwide-types
+1
-1
tests/73-circular-OK.asn1.-Pfwide-types
tests/73-circular-OK.asn1.-Pfwide-types
+1
-1
tests/92-circular-loops-OK.asn1.-Pfindirect-choice
tests/92-circular-loops-OK.asn1.-Pfindirect-choice
+3
-3
tests/92-circular-loops-OK.asn1.-Pfwide-types
tests/92-circular-loops-OK.asn1.-Pfwide-types
+3
-3
tests/93-asn1c-controls-OK.asn1.-Pfwide-types
tests/93-asn1c-controls-OK.asn1.-Pfwide-types
+1
-1
tests/94-set-optionals-OK.asn1.-P
tests/94-set-optionals-OK.asn1.-P
+1
-1
No files found.
libasn1compiler/asn1c_C.c
View file @
46ef3f33
...
@@ -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
"
);
...
...
tests/105-param-2-OK.asn1.-Pfwide-types
View file @
46ef3f33
...
@@ -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 = {
...
...
tests/30-set-OK.asn1.-Pfwide-types
View file @
46ef3f33
...
@@ -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",
...
...
tests/31-set-of-OK.asn1.-Pfwide-types
View file @
46ef3f33
...
@@ -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",
...
...
tests/43-recursion-OK.asn1.-Pfwide-types
View file @
46ef3f33
...
@@ -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",
...
...
tests/47-set-ext-OK.asn1.-Pfwide-types
View file @
46ef3f33
...
@@ -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",
...
...
tests/69-reserved-words-OK.asn1.-Pfwide-types
View file @
46ef3f33
...
@@ -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 = {
...
...
tests/70-xer-test-OK.asn1.-Pfwide-types
View file @
46ef3f33
...
@@ -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",
...
...
tests/72-same-names-OK.asn1.-Pfwide-types
View file @
46ef3f33
...
@@ -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 = {
...
...
tests/73-circular-OK.asn1.-Pfwide-types
View file @
46ef3f33
...
@@ -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",
...
...
tests/92-circular-loops-OK.asn1.-Pfindirect-choice
View file @
46ef3f33
...
@@ -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",
...
...
tests/92-circular-loops-OK.asn1.-Pfwide-types
View file @
46ef3f33
...
@@ -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",
...
...
tests/93-asn1c-controls-OK.asn1.-Pfwide-types
View file @
46ef3f33
...
@@ -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",
...
...
tests/94-set-optionals-OK.asn1.-P
View file @
46ef3f33
...
@@ -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",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment