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
efcc3670
Commit
efcc3670
authored
Sep 29, 2021
by
Senthil Prabakaran
Committed by
Mouse
May 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix file dependencies for JER encoding
parent
a7cca246
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
3 deletions
+32
-3
libasn1compiler/asn1c_fdeps.c
libasn1compiler/asn1c_fdeps.c
+4
-0
libasn1compiler/asn1c_fdeps.h
libasn1compiler/asn1c_fdeps.h
+1
-0
skeletons/file-dependencies
skeletons/file-dependencies
+26
-0
skeletons/jer_encoder.c
skeletons/jer_encoder.c
+1
-1
skeletons/jer_encoder.h
skeletons/jer_encoder.h
+0
-2
No files found.
libasn1compiler/asn1c_fdeps.c
View file @
efcc3670
...
...
@@ -124,6 +124,10 @@ asn1c_read_file_dependencies(arg_t *arg, const char *datadir) {
&&
strcmp
(
p
,
"CODEC-XER:"
)
==
0
)
{
activate
=
0
;
section
=
FDEP_CODEC_XER
;
}
else
if
((
arg
->
flags
&
A1C_GEN_JER
)
&&
strcmp
(
p
,
"CODEC-JER:"
)
==
0
)
{
activate
=
0
;
section
=
FDEP_CODEC_JER
;
}
else
if
((
arg
->
flags
&
A1C_GEN_OER
)
&&
strcmp
(
p
,
"CODEC-OER:"
)
==
0
)
{
activate
=
0
;
...
...
libasn1compiler/asn1c_fdeps.h
View file @
efcc3670
...
...
@@ -34,6 +34,7 @@ typedef struct {
FDEP_CODEC_XER
=
(
1
<<
9
),
/* Use contents only if not -no-gen-XER */
FDEP_PRINT
=
(
1
<<
10
),
/* Use contents only if not -no-gen-print */
FDEP_RFILL
=
(
1
<<
11
),
/* Use contents only if not -no-gen-random-fill */
FDEP_CODEC_JER
=
(
1
<<
12
),
/* Use contents only if not -no-gen-JER */
}
section
;
/* Some file refers to it */
/* Whether this chain is alive and has to be present in the output */
...
...
skeletons/file-dependencies
View file @
efcc3670
...
...
@@ -244,3 +244,29 @@ constr_SEQUENCE.h constr_SEQUENCE_rfill.c
constr_SET_OF.h constr_SET_OF_rfill.c
constr_SET.h constr_SET_rfill.c
CODEC-JER: # THIS IS A SPECIAL SECTION
jer_encoder.h
jer_encoder.h jer_encoder.c
ANY.h ANY_jer.c
BIT_STRING.h BIT_STRING_jer.c
BMPString.h BMPString_jer.c
BOOLEAN.h BOOLEAN_jer.c
GeneralizedTime.h GeneralizedTime_jer.c
INTEGER.h INTEGER_jer.c
NULL.h NULL_jer.c
NativeEnumerated.h NativeEnumerated_jer.c
NativeInteger.h NativeInteger_jer.c
NativeReal.h NativeReal_jer.c
OBJECT_IDENTIFIER.h OBJECT_IDENTIFIER_jer.c
OCTET_STRING.h OCTET_STRING_jer.c
OPEN_TYPE.h OPEN_TYPE_jer.c
REAL.h REAL_jer.c
RELATIVE-OID.h RELATIVE-OID_jer.c
UTCTime.h UTCTime_jer.c
UniversalString.h UniversalString_jer.c
asn_codecs_prim.h asn_codecs_prim_jer.c
constr_CHOICE.h constr_CHOICE_jer.c
constr_SEQUENCE_OF.h constr_SEQUENCE_OF_jer.c
constr_SEQUENCE.h constr_SEQUENCE_jer.c
constr_SET_OF.h constr_SET_OF_jer.c
constr_SET.h constr_SET_jer.c
skeletons/jer_encoder.c
View file @
efcc3670
...
...
@@ -11,7 +11,7 @@
*/
asn_enc_rval_t
jer_encode
(
const
asn_TYPE_descriptor_t
*
td
,
const
void
*
sptr
,
enum
jer_encoder_flags_e
jer_flags
,
asn_app_consume_bytes_f
*
cb
,
asn_app_consume_bytes_f
*
cb
,
void
*
app_key
)
{
asn_enc_rval_t
er
=
{
0
,
0
,
0
};
asn_enc_rval_t
tmper
;
...
...
skeletons/jer_encoder.h
View file @
efcc3670
...
...
@@ -17,7 +17,6 @@ struct asn_TYPE_descriptor_s; /* Forward declaration */
enum
jer_encoder_flags_e
{
/* Mode of encoding */
JER_F_BASIC
=
0x01
,
/* BASIC-JER (pretty-printing) */
JER_F_CANONICAL
=
0x02
/* Canonical JER (strict rules) */
};
/*
...
...
@@ -26,7 +25,6 @@ enum jer_encoder_flags_e {
*/
asn_enc_rval_t
jer_encode
(
const
struct
asn_TYPE_descriptor_s
*
type_descriptor
,
const
void
*
struct_ptr
,
/* Structure to be encoded */
enum
jer_encoder_flags_e
jer_flags
,
asn_app_consume_bytes_f
*
consume_bytes_cb
,
void
*
app_key
/* Arbitrary callback argument */
);
...
...
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