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
4087683d
Commit
4087683d
authored
Jun 27, 2017
by
Lev Walkin
Committed by
GitHub
Jun 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #158 from johvik/duplicate_const
Fix duplicate 'const' warnings
parents
90024eef
e70c4072
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
34 additions
and
34 deletions
+34
-34
libasn1compiler/asn1c_C.c
libasn1compiler/asn1c_C.c
+2
-2
tests/03-enum-OK.asn1.-Pfwide-types
tests/03-enum-OK.asn1.-Pfwide-types
+5
-5
tests/110-param-3-OK.asn1.-Pfwide-types
tests/110-param-3-OK.asn1.-Pfwide-types
+1
-1
tests/127-per-long-OK.asn1.-Pgen-PER
tests/127-per-long-OK.asn1.-Pgen-PER
+2
-2
tests/42-real-life-OK.asn1.-PR
tests/42-real-life-OK.asn1.-PR
+1
-1
tests/50-constraint-OK.asn1.-Pfwide-types
tests/50-constraint-OK.asn1.-Pfwide-types
+3
-3
tests/50-constraint-OK.asn1.-Pgen-PER
tests/50-constraint-OK.asn1.-Pgen-PER
+3
-3
tests/66-ref-simple-OK.asn1.-Pfwide-types
tests/66-ref-simple-OK.asn1.-Pfwide-types
+1
-1
tests/70-xer-test-OK.asn1.-Pfwide-types
tests/70-xer-test-OK.asn1.-Pfwide-types
+3
-3
tests/73-circular-OK.asn1.-Pfwide-types
tests/73-circular-OK.asn1.-Pfwide-types
+1
-1
tests/90-cond-int-type-OK.asn1.-P
tests/90-cond-int-type-OK.asn1.-P
+4
-4
tests/90-cond-int-type-OK.asn1.-Pfwide-types
tests/90-cond-int-type-OK.asn1.-Pfwide-types
+4
-4
tests/90-cond-int-type-OK.asn1.-Pgen-PER
tests/90-cond-int-type-OK.asn1.-Pgen-PER
+4
-4
No files found.
libasn1compiler/asn1c_C.c
View file @
4087683d
...
...
@@ -203,7 +203,7 @@ asn1c_lang_C_type_common_INTEGER(arg_t *arg) {
OUT
(
"
\t
/* This list is extensible */
\n
"
);
OUT
(
"};
\n
"
);
OUT
(
"static
const
asn_INTEGER_specifics_t asn_SPC_%s_specs_%d = {
\n
"
,
OUT
(
"static asn_INTEGER_specifics_t asn_SPC_%s_specs_%d = {
\n
"
,
MKID
(
expr
),
expr
->
_type_unique_index
);
INDENT
(
+
1
);
OUT
(
"asn_MAP_%s_value2enum_%d,
\t
"
...
...
@@ -235,7 +235,7 @@ asn1c_lang_C_type_common_INTEGER(arg_t *arg) {
if
(
expr
->
expr_type
==
ASN_BASIC_INTEGER
&&
asn1c_type_fits_long
(
arg
,
expr
)
==
FL_FITS_UNSIGN
)
{
REDIR
(
OT_STAT_DEFS
);
OUT
(
"static
const
asn_INTEGER_specifics_t asn_SPC_%s_specs_%d = {
\n
"
,
OUT
(
"static asn_INTEGER_specifics_t asn_SPC_%s_specs_%d = {
\n
"
,
MKID
(
expr
),
expr
->
_type_unique_index
);
INDENT
(
+
1
);
OUT
(
"0,
\t
"
);
...
...
tests/03-enum-OK.asn1.-Pfwide-types
View file @
4087683d
...
...
@@ -123,7 +123,7 @@ static const unsigned int asn_MAP_Enum1_enum2value_1[] = {
0 /* red(0) */
/* This list is extensible */
};
static
const
asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = {
static 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 */
...
...
@@ -292,7 +292,7 @@ static const unsigned int asn_MAP_Enum2_enum2value_1[] = {
0 /* red(0) */
/* This list is extensible */
};
static
const
asn_INTEGER_specifics_t asn_SPC_Enum2_specs_1 = {
static 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 */
...
...
@@ -449,7 +449,7 @@ static const unsigned int asn_MAP_Enum3_enum2value_1[] = {
1 /* c(1) */
/* This list is extensible */
};
static
const
asn_INTEGER_specifics_t asn_SPC_Enum3_specs_1 = {
static 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 */
...
...
@@ -609,7 +609,7 @@ static const unsigned int asn_MAP_Enum4_enum2value_1[] = {
3 /* d(4) */
/* This list is extensible */
};
static
const
asn_INTEGER_specifics_t asn_SPC_Enum4_specs_1 = {
static 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 */
...
...
@@ -766,7 +766,7 @@ static const unsigned int asn_MAP_Enum5_enum2value_1[] = {
1 /* z(25) */
/* This list is extensible */
};
static
const
asn_INTEGER_specifics_t asn_SPC_Enum5_specs_1 = {
static 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 */
...
...
tests/110-param-3-OK.asn1.-Pfwide-types
View file @
4087683d
...
...
@@ -218,7 +218,7 @@ static const unsigned int asn_MAP_field_enum2value_7[] = {
1, /* green(4) */
0 /* red(3) */
};
static
const
asn_INTEGER_specifics_t asn_SPC_field_specs_7 = {
static 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 */
...
...
tests/127-per-long-OK.asn1.-Pgen-PER
View file @
4087683d
...
...
@@ -354,7 +354,7 @@ static asn_per_constraints_t asn_PER_memb_unsplit32_constr_5 GCC_NOTUSED = {
/*** <<< STAT-DEFS [T] >>> ***/
static
const
asn_INTEGER_specifics_t asn_SPC_unsigned32_specs_4 = {
static asn_INTEGER_specifics_t asn_SPC_unsigned32_specs_4 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
@@ -388,7 +388,7 @@ asn_TYPE_descriptor_t asn_DEF_unsigned32_4 = {
&asn_SPC_unsigned32_specs_4 /* Additional specs */
};
static
const
asn_INTEGER_specifics_t asn_SPC_unsplit32_specs_5 = {
static asn_INTEGER_specifics_t asn_SPC_unsplit32_specs_5 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
tests/42-real-life-OK.asn1.-PR
View file @
4087683d
...
...
@@ -732,7 +732,7 @@ static const unsigned int asn_MAP_accept_as_enum2value_2[] = {
2 /* unsafe(2) */
/* This list is extensible */
};
static
const
asn_INTEGER_specifics_t asn_SPC_accept_as_specs_2 = {
static 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 */
...
...
tests/50-constraint-OK.asn1.-Pfwide-types
View file @
4087683d
...
...
@@ -3778,7 +3778,7 @@ static const unsigned int asn_MAP_enum_c_enum2value_6[] = {
1 /* two(2) */
/* This list is extensible */
};
static
const
asn_INTEGER_specifics_t asn_SPC_enum_c_specs_6 = {
static 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 */
...
...
@@ -4110,7 +4110,7 @@ static const unsigned int asn_MAP_Enum0_enum2value_1[] = {
0, /* one(0) */
1 /* two(1) */
};
static
const
asn_INTEGER_specifics_t asn_SPC_Enum0_specs_1 = {
static 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 */
...
...
@@ -4276,7 +4276,7 @@ static const unsigned int asn_MAP_Enum1_enum2value_1[] = {
0, /* one(0) */
1 /* two(1) */
};
static
const
asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = {
static 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 */
...
...
tests/50-constraint-OK.asn1.-Pgen-PER
View file @
4087683d
...
...
@@ -4357,7 +4357,7 @@ static const unsigned int asn_MAP_enum_c_enum2value_6[] = {
1 /* two(2) */
/* This list is extensible */
};
static
const
asn_INTEGER_specifics_t asn_SPC_enum_c_specs_6 = {
static 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 */
...
...
@@ -4727,7 +4727,7 @@ static const unsigned int asn_MAP_Enum0_enum2value_1[] = {
0, /* one(0) */
1 /* two(1) */
};
static
const
asn_INTEGER_specifics_t asn_SPC_Enum0_specs_1 = {
static 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 */
...
...
@@ -4919,7 +4919,7 @@ static const unsigned int asn_MAP_Enum1_enum2value_1[] = {
0, /* one(0) */
1 /* two(1) */
};
static
const
asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = {
static 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 */
...
...
tests/66-ref-simple-OK.asn1.-Pfwide-types
View file @
4087683d
...
...
@@ -180,7 +180,7 @@ static const unsigned int asn_MAP_SimpleType_enum2value_1[] = {
2, /* three(2) */
1 /* two(1) */
};
static
const
asn_INTEGER_specifics_t asn_SPC_SimpleType_specs_1 = {
static 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 */
...
...
tests/70-xer-test-OK.asn1.-Pfwide-types
View file @
4087683d
...
...
@@ -612,7 +612,7 @@ static const unsigned int asn_MAP_enum_enum2value_4[] = {
1, /* a(1) */
0 /* b(0) */
};
static
const
asn_INTEGER_specifics_t asn_SPC_enum_specs_4 = {
static 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 */
...
...
@@ -1145,7 +1145,7 @@ static const unsigned int asn_MAP_Member_enum2value_2[] = {
0, /* one(0) */
1 /* oneMore(1) */
};
static
const
asn_INTEGER_specifics_t asn_SPC_Member_specs_2 = {
static 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 */
...
...
@@ -1469,7 +1469,7 @@ static const unsigned int asn_MAP_name_enum2value_2[] = {
0, /* one(0) */
1 /* oneMore(1) */
};
static
const
asn_INTEGER_specifics_t asn_SPC_name_specs_2 = {
static 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 */
...
...
tests/73-circular-OK.asn1.-Pfwide-types
View file @
4087683d
...
...
@@ -818,7 +818,7 @@ static const unsigned int asn_MAP_EnumType_enum2value_1[] = {
0, /* one(0) */
1 /* two(1) */
};
static
const
asn_INTEGER_specifics_t asn_SPC_EnumType_specs_1 = {
static 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 */
...
...
tests/90-cond-int-type-OK.asn1.-P
View file @
4087683d
...
...
@@ -667,7 +667,7 @@ NO_IntegerLowHigh_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerLowHigh] >>> ***/
static
const
asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
static asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
@@ -1252,7 +1252,7 @@ NO_IntegerOutRange_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
static
const
asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
@@ -1399,7 +1399,7 @@ NO_IntegerOutValue_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
static
const
asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
@@ -2247,7 +2247,7 @@ NO_IntegerInRange6_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
static
const
asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
static asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
tests/90-cond-int-type-OK.asn1.-Pfwide-types
View file @
4087683d
...
...
@@ -674,7 +674,7 @@ NO_IntegerLowHigh_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerLowHigh] >>> ***/
static
const
asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
static asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
@@ -1265,7 +1265,7 @@ NO_IntegerOutRange_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
static
const
asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
@@ -1412,7 +1412,7 @@ NO_IntegerOutValue_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
static
const
asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
@@ -2266,7 +2266,7 @@ NO_IntegerInRange6_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
static
const
asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
static asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
tests/90-cond-int-type-OK.asn1.-Pgen-PER
View file @
4087683d
...
...
@@ -788,7 +788,7 @@ static asn_per_constraints_t asn_PER_type_NO_IntegerLowHigh_constr_1 GCC_NOTUSED
/*** <<< STAT-DEFS [NO-IntegerLowHigh] >>> ***/
static
const
asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
static asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
@@ -1477,7 +1477,7 @@ static asn_per_constraints_t asn_PER_type_NO_IntegerOutRange_constr_1 GCC_NOTUSE
/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
static
const
asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
@@ -1650,7 +1650,7 @@ static asn_per_constraints_t asn_PER_type_NO_IntegerOutValue_constr_1 GCC_NOTUSE
/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
static
const
asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
@@ -2654,7 +2654,7 @@ static asn_per_constraints_t asn_PER_type_NO_IntegerInRange6_constr_1 GCC_NOTUSE
/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
static
const
asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
static asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
0, 0, 0, 0, 0,
0, /* Native long size */
1 /* Unsigned representation */
...
...
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