Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
lizhongxiao
OpenXG-RAN
Commits
f514c065
Commit
f514c065
authored
Mar 27, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more warning removals: add const to asn1cpatch_3.p0 and update fix_asn1
parent
20b6fee6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
41 deletions
+41
-41
cmake_targets/tools/fix_asn1
cmake_targets/tools/fix_asn1
+4
-4
openair3/S1AP/MESSAGES/ASN1/asn1cpatch_3.p0
openair3/S1AP/MESSAGES/ASN1/asn1cpatch_3.p0
+37
-37
No files found.
cmake_targets/tools/fix_asn1
View file @
f514c065
...
@@ -9,13 +9,13 @@ RRC_Rel10=(
...
@@ -9,13 +9,13 @@ RRC_Rel10=(
X2AP_Rel11_2
=(
X2AP_Rel11_2
=(
"X2ap-CriticalityDiagnostics-IE-List.h"
ae96308b37fcbcbf39da5012e42968135fc5f27b
"fix_asn1.data/X2AP.rel11.2/X2ap-CriticalityDiagnostics-IE-List.h.diff"
"X2ap-CriticalityDiagnostics-IE-List.h"
ae96308b37fcbcbf39da5012e42968135fc5f27b
"fix_asn1.data/X2AP.rel11.2/X2ap-CriticalityDiagnostics-IE-List.h.diff"
"NativeInteger.c"
9f173e87daa1e7378618dbb060a10aae752d74be
"fix_asn1.data/X2AP.rel11.2/NativeInteger.c.diff"
"NativeInteger.c"
1a55f5402fd363318cf5444ffe1f67530dcf66ff
"fix_asn1.data/X2AP.rel11.2/NativeInteger.c.diff"
"constr_SET_OF.c"
5352abd70c1784a0a2ef3c2e287b30ea3cdcf760
"fix_asn1.data/X2AP.rel11.2/constr_SET_OF.c.diff"
"constr_SET_OF.c"
808cbbdf19b118c0bdb04e3acf2cbe6e4133be2b
"fix_asn1.data/X2AP.rel11.2/constr_SET_OF.c.diff"
)
)
S1AP_Rel10_5
=(
S1AP_Rel10_5
=(
"NativeInteger.c"
9f173e87daa1e7378618dbb060a10aae752d74be
"fix_asn1.data/S1AP.rel10.5/NativeInteger.c.diff"
"NativeInteger.c"
1a55f5402fd363318cf5444ffe1f67530dcf66ff
"fix_asn1.data/S1AP.rel10.5/NativeInteger.c.diff"
"constr_SET_OF.c"
5352abd70c1784a0a2ef3c2e287b30ea3cdcf760
"fix_asn1.data/S1AP.rel10.5/constr_SET_OF.c.diff"
"constr_SET_OF.c"
808cbbdf19b118c0bdb04e3acf2cbe6e4133be2b
"fix_asn1.data/S1AP.rel10.5/constr_SET_OF.c.diff"
)
)
red_color
=
"
$(
tput setaf 1
)
"
red_color
=
"
$(
tput setaf 1
)
"
...
...
openair3/S1AP/MESSAGES/ASN1/asn1cpatch_3.p0
View file @
f514c065
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
asn_enc_rval_t OCTET_STRING_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *cts, void *sptr, asn_per_outp_t *po) { asn_enc_rval_t er = { 0, 0, 0 }; (void)td; (void)cts; (void)sptr; (void)po; return er; }
asn_enc_rval_t OCTET_STRING_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *cts, void *sptr, asn_per_outp_t *po) { asn_enc_rval_t er = { 0, 0, 0 }; (void)td; (void)cts; (void)sptr; (void)po; return er; }
+asn_comp_rval_t * OCTET_STRING_compare(asn_TYPE_descriptor_t *td1,
void *sptr1, asn_TYPE_descriptor_t *td2,
void *sptr2) { (void)td1; (void)sptr1; (void)td2; (void)sptr2; return 0; }
+asn_comp_rval_t * OCTET_STRING_compare(asn_TYPE_descriptor_t *td1,
const void *sptr1, asn_TYPE_descriptor_t *td2, const
void *sptr2) { (void)td1; (void)sptr1; (void)td2; (void)sptr2; return 0; }
+
+
size_t xer_whitespace_span(const void *chunk_buf, size_t chunk_size) { (void)chunk_buf; (void)chunk_size; return 0; }
size_t xer_whitespace_span(const void *chunk_buf, size_t chunk_size) { (void)chunk_buf; (void)chunk_size; return 0; }
--- libasn1compiler/asn1c_C.c 2015-12-08 14:39:33.366543533 +0100
--- libasn1compiler/asn1c_C.c 2015-12-08 14:39:33.366543533 +0100
...
@@ -51,9 +51,9 @@
...
@@ -51,9 +51,9 @@
+ if(HIDE_INNER_DEFS) OUT("_%d", expr->_type_unique_index);
+ if(HIDE_INNER_DEFS) OUT("_%d", expr->_type_unique_index);
+ OUT("_compare(asn_TYPE_descriptor_t *td1,\n");
+ OUT("_compare(asn_TYPE_descriptor_t *td1,\n");
+ INDENTED(
+ INDENTED(
+ OUT("\tvoid *structure1,\n");
+ OUT("\t
const
void *structure1,\n");
+ OUT("\tasn_TYPE_descriptor_t *td2,\n");
+ OUT("\tasn_TYPE_descriptor_t *td2,\n");
+ OUT("\tvoid *structure2) {\n");
+ OUT("\t
const
void *structure2) {\n");
+ OUT("asn_comp_rval_t * res = NULL;\n");
+ OUT("asn_comp_rval_t * res = NULL;\n");
+ OUT("%s_%d_inherit_TYPE_descriptor(td1);\n",
+ OUT("%s_%d_inherit_TYPE_descriptor(td1);\n",
+ p, expr->_type_unique_index);
+ p, expr->_type_unique_index);
...
@@ -142,8 +142,8 @@
...
@@ -142,8 +142,8 @@
+typedef struct asn_comp_rval_s {
+typedef struct asn_comp_rval_s {
+ enum COMPARE_ERR_CODE_e err_code;
+ enum COMPARE_ERR_CODE_e err_code;
+ char *name; // e_S1ap_ProtocolIE_ID not available for all ASN1 use (RRC vs S1AP, X2AP)
+ char *name; // e_S1ap_ProtocolIE_ID not available for all ASN1 use (RRC vs S1AP, X2AP)
+
void
*structure1;
+
const void
*structure1;
+
void
*structure2;
+
const void
*structure2;
+ struct asn_comp_rval_s *next;
+ struct asn_comp_rval_s *next;
+} asn_comp_rval_t;
+} asn_comp_rval_t;
+
+
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
+
+
+asn_comp_rval_t *
+asn_comp_rval_t *
+BOOLEAN_compare(asn_TYPE_descriptor_t *td1,
+BOOLEAN_compare(asn_TYPE_descriptor_t *td1,
+
void *sptr1, asn_TYPE_descriptor_t *td2,
void *sptr2) {
+
const void *sptr1, asn_TYPE_descriptor_t *td2, const
void *sptr2) {
+ const BOOLEAN_t *st1 = (const BOOLEAN_t *)sptr1;
+ const BOOLEAN_t *st1 = (const BOOLEAN_t *)sptr1;
+ const BOOLEAN_t *st2 = (const BOOLEAN_t *)sptr2;
+ const BOOLEAN_t *st2 = (const BOOLEAN_t *)sptr2;
+ asn_comp_rval_t *res = NULL;
+ asn_comp_rval_t *res = NULL;
...
@@ -279,9 +279,9 @@
...
@@ -279,9 +279,9 @@
+
+
+typedef asn_comp_rval_t * (type_compare_f)(
+typedef asn_comp_rval_t * (type_compare_f)(
+ struct asn_TYPE_descriptor_s *type_descriptor1,
+ struct asn_TYPE_descriptor_s *type_descriptor1,
+ void *struct_ptr1,
+
const
void *struct_ptr1,
+ struct asn_TYPE_descriptor_s *type_descriptor2,
+ struct asn_TYPE_descriptor_s *type_descriptor2,
+ void *struct_ptr2
+
const
void *struct_ptr2
+);
+);
+
+
+
+
...
@@ -299,7 +299,7 @@
...
@@ -299,7 +299,7 @@
}
}
+
+
+asn_comp_rval_t *
+asn_comp_rval_t *
+CHOICE_compare(asn_TYPE_descriptor_t *td1,
void *sptr1, asn_TYPE_descriptor_t *td2,
void *sptr2)
+CHOICE_compare(asn_TYPE_descriptor_t *td1,
const void *sptr1, asn_TYPE_descriptor_t *td2, const
void *sptr2)
+{
+{
+ asn_CHOICE_specifics_t *specs1 = (asn_CHOICE_specifics_t *)td1->specifics;
+ asn_CHOICE_specifics_t *specs1 = (asn_CHOICE_specifics_t *)td1->specifics;
+ asn_CHOICE_specifics_t *specs2 = (asn_CHOICE_specifics_t *)td2->specifics;
+ asn_CHOICE_specifics_t *specs2 = (asn_CHOICE_specifics_t *)td2->specifics;
...
@@ -397,7 +397,7 @@
...
@@ -397,7 +397,7 @@
_ASN_ENCODED_OK(er);
_ASN_ENCODED_OK(er);
}
}
+
+
+asn_comp_rval_t * SEQUENCE_compare(asn_TYPE_descriptor_t *td1,
void *sptr1, asn_TYPE_descriptor_t *td2,
void *sptr2) {
+asn_comp_rval_t * SEQUENCE_compare(asn_TYPE_descriptor_t *td1,
const void *sptr1, asn_TYPE_descriptor_t *td2, const
void *sptr2) {
+ int edx;
+ int edx;
+ asn_comp_rval_t *res = NULL;
+ asn_comp_rval_t *res = NULL;
+ asn_comp_rval_t *res2 = NULL;
+ asn_comp_rval_t *res2 = NULL;
...
@@ -497,7 +497,7 @@
...
@@ -497,7 +497,7 @@
}
}
+
+
+asn_comp_rval_t *
+asn_comp_rval_t *
+SET_compare(asn_TYPE_descriptor_t *td1,
void *sptr1, asn_TYPE_descriptor_t *td2,
void *sptr2)
+SET_compare(asn_TYPE_descriptor_t *td1,
const void *sptr1, asn_TYPE_descriptor_t *td2, const
void *sptr2)
+{
+{
+ int edx;
+ int edx;
+ asn_comp_rval_t *res = NULL;
+ asn_comp_rval_t *res = NULL;
...
@@ -568,7 +568,7 @@
...
@@ -568,7 +568,7 @@
}
}
+
+
+asn_comp_rval_t *
+asn_comp_rval_t *
+SET_OF_compare(asn_TYPE_descriptor_t *td1,
void *sptr1, asn_TYPE_descriptor_t *td2,
void *sptr2)
+SET_OF_compare(asn_TYPE_descriptor_t *td1,
const void *sptr1, asn_TYPE_descriptor_t *td2, const
void *sptr2)
+{
+{
+ asn_TYPE_member_t *elm1 = td1->elements;
+ asn_TYPE_member_t *elm1 = td1->elements;
+ asn_TYPE_member_t *elm2 = td2->elements;
+ asn_TYPE_member_t *elm2 = td2->elements;
...
@@ -665,10 +665,10 @@
...
@@ -665,10 +665,10 @@
}
}
+
+
+asn_comp_rval_t *
+asn_comp_rval_t *
+ENUMERATED_compare(asn_TYPE_descriptor_t *td1, void *sptr1,
+ENUMERATED_compare(asn_TYPE_descriptor_t *td1,
const
void *sptr1,
+ asn_TYPE_descriptor_t *td2, void *sptr2) {
+ asn_TYPE_descriptor_t *td2,
const
void *sptr2) {
+
ENUMERATED_t *st1 = (
ENUMERATED_t *)sptr1;
+
const ENUMERATED_t *st1 = (const
ENUMERATED_t *)sptr1;
+
ENUMERATED_t *st2 = (
ENUMERATED_t *)sptr2;
+
const ENUMERATED_t *st2 = (const
ENUMERATED_t *)sptr2;
+ asn_comp_rval_t *res = NULL;
+ asn_comp_rval_t *res = NULL;
+
+
+ COMPARE_CHECK_ARGS(td1, td2, sptr1, sptr2, res)
+ COMPARE_CHECK_ARGS(td1, td2, sptr1, sptr2, res)
...
@@ -772,10 +772,10 @@
...
@@ -772,10 +772,10 @@
+asn_comp_rval_t *
+asn_comp_rval_t *
+INTEGER_compare(asn_TYPE_descriptor_t *td1, void *sptr1,
+INTEGER_compare(asn_TYPE_descriptor_t *td1,
const
void *sptr1,
+ asn_TYPE_descriptor_t *td2, void *sptr2) {
+ asn_TYPE_descriptor_t *td2,
const
void *sptr2) {
+
INTEGER_t *st1 = (
INTEGER_t *)sptr1;
+
const INTEGER_t *st1 = (const
INTEGER_t *)sptr1;
+
INTEGER_t *st2 = (
INTEGER_t *)sptr2;
+
const INTEGER_t *st2 = (const
INTEGER_t *)sptr2;
+ asn_comp_rval_t *res = NULL;
+ asn_comp_rval_t *res = NULL;
+
+
+ COMPARE_CHECK_ARGS(td1, td2, sptr1, sptr2, res)
+ COMPARE_CHECK_ARGS(td1, td2, sptr1, sptr2, res)
...
@@ -855,8 +855,8 @@
...
@@ -855,8 +855,8 @@
}
}
+
+
+asn_comp_rval_t *
+asn_comp_rval_t *
+NativeEnumerated_compare(asn_TYPE_descriptor_t *td1, void *sptr1,
+NativeEnumerated_compare(asn_TYPE_descriptor_t *td1,
const
void *sptr1,
+ asn_TYPE_descriptor_t *td2, void *sptr2) {
+ asn_TYPE_descriptor_t *td2,
const
void *sptr2) {
+ const asn_INTEGER_enum_map_t *a = sptr1;
+ const asn_INTEGER_enum_map_t *a = sptr1;
+ const asn_INTEGER_enum_map_t *b = sptr2;
+ const asn_INTEGER_enum_map_t *b = sptr2;
+ asn_comp_rval_t *res = NULL;
+ asn_comp_rval_t *res = NULL;
...
@@ -900,8 +900,8 @@
...
@@ -900,8 +900,8 @@
+
+
+asn_comp_rval_t *
+asn_comp_rval_t *
+NativeInteger_compare(asn_TYPE_descriptor_t *td1, void *sptr1,
+NativeInteger_compare(asn_TYPE_descriptor_t *td1,
const
void *sptr1,
+ asn_TYPE_descriptor_t *td2, void *sptr2) {
+ asn_TYPE_descriptor_t *td2,
const
void *sptr2) {
+ const long *native1 = (const long *)sptr1;
+ const long *native1 = (const long *)sptr1;
+ const long *native2 = (const long *)sptr2;
+ const long *native2 = (const long *)sptr2;
+ asn_comp_rval_t *res = NULL;
+ asn_comp_rval_t *res = NULL;
...
@@ -943,10 +943,10 @@
...
@@ -943,10 +943,10 @@
}
}
+asn_comp_rval_t *
+asn_comp_rval_t *
+NativeReal_compare(asn_TYPE_descriptor_t *td1, void *sptr1,
+NativeReal_compare(asn_TYPE_descriptor_t *td1,
const
void *sptr1,
+ asn_TYPE_descriptor_t *td2, void *sptr2) {
+ asn_TYPE_descriptor_t *td2,
const
void *sptr2) {
+
REAL_t *st1 = (
REAL_t *)sptr1;
+
const REAL_t *st1 = (const
REAL_t *)sptr1;
+
REAL_t *st2 = (
REAL_t *)sptr2;
+
const REAL_t *st2 = (const
REAL_t *)sptr2;
+ asn_comp_rval_t *res = NULL;
+ asn_comp_rval_t *res = NULL;
+
+
+ COMPARE_CHECK_ARGS(td1, td2, sptr1, sptr2, res)
+ COMPARE_CHECK_ARGS(td1, td2, sptr1, sptr2, res)
...
@@ -997,8 +997,8 @@
...
@@ -997,8 +997,8 @@
}
}
+
+
+asn_comp_rval_t *
+asn_comp_rval_t *
+NULL_compare(asn_TYPE_descriptor_t *td1, void *sptr1,
+NULL_compare(asn_TYPE_descriptor_t *td1,
const
void *sptr1,
+ asn_TYPE_descriptor_t *td2, void *sptr2) {
+ asn_TYPE_descriptor_t *td2,
const
void *sptr2) {
+
+
+ return NULL;
+ return NULL;
+}
+}
...
@@ -1066,9 +1066,9 @@
...
@@ -1066,9 +1066,9 @@
+asn_comp_rval_t *
+asn_comp_rval_t *
+OCTET_STRING_compare(asn_TYPE_descriptor_t *td1,
+OCTET_STRING_compare(asn_TYPE_descriptor_t *td1,
+
void *sptr1, asn_TYPE_descriptor_t *td2,
void *sptr2) {
+
const void *sptr1, asn_TYPE_descriptor_t *td2, const
void *sptr2) {
+
OCTET_STRING_t *st1 = (
OCTET_STRING_t *)sptr1;
+
const OCTET_STRING_t *st1 = (const
OCTET_STRING_t *)sptr1;
+
OCTET_STRING_t *st2 = (
OCTET_STRING_t *)sptr2;
+
const OCTET_STRING_t *st2 = (const
OCTET_STRING_t *)sptr2;
+ asn_comp_rval_t *res = NULL;
+ asn_comp_rval_t *res = NULL;
+
+
+ COMPARE_CHECK_ARGS(td1, td2, sptr1, sptr2, res)
+ COMPARE_CHECK_ARGS(td1, td2, sptr1, sptr2, res)
...
@@ -1132,10 +1132,10 @@
...
@@ -1132,10 +1132,10 @@
+
+
+
+
+asn_comp_rval_t *
+asn_comp_rval_t *
+REAL_compare(asn_TYPE_descriptor_t *td1, void *sptr1,
+REAL_compare(asn_TYPE_descriptor_t *td1,
const
void *sptr1,
+ asn_TYPE_descriptor_t *td2, void *sptr2) {
+ asn_TYPE_descriptor_t *td2,
const
void *sptr2) {
+
REAL_t *st1 = (
REAL_t *)sptr1;
+
const REAL_t *st1 = (const
REAL_t *)sptr1;
+
REAL_t *st2 = (
REAL_t *)sptr2;
+
const REAL_t *st2 = (const
REAL_t *)sptr2;
+ asn_comp_rval_t *res = NULL;
+ asn_comp_rval_t *res = NULL;
+
+
+ COMPARE_CHECK_ARGS(td1, td2, sptr1, sptr2, res)
+ COMPARE_CHECK_ARGS(td1, td2, sptr1, sptr2, res)
...
...
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