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
b2d208ab
Commit
b2d208ab
authored
Mar 02, 2022
by
Mark
Committed by
Mouse
May 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert script debugging & change copied comments to JER
parent
0ecd5e2e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
11 deletions
+6
-11
skeletons/GeneralizedTime.c
skeletons/GeneralizedTime.c
+1
-1
skeletons/asn_application.c
skeletons/asn_application.c
+1
-1
skeletons/constr_CHOICE.c
skeletons/constr_CHOICE.c
+1
-1
skeletons/constr_TYPE.h
skeletons/constr_TYPE.h
+1
-1
tests/tests-asn1c-compiler/check-parsing.sh
tests/tests-asn1c-compiler/check-parsing.sh
+2
-7
No files found.
skeletons/GeneralizedTime.c
View file @
b2d208ab
...
...
@@ -200,7 +200,7 @@ asn_TYPE_operation_t asn_OP_GeneralizedTime = {
GeneralizedTime_encode_jer
,
#else
0
,
#endif
/* !defined(ASN_DISABLE_
X
ER_SUPPORT) */
#endif
/* !defined(ASN_DISABLE_
J
ER_SUPPORT) */
#if !defined(ASN_DISABLE_OER_SUPPORT)
OCTET_STRING_decode_oer
,
OCTET_STRING_encode_oer
,
...
...
skeletons/asn_application.c
View file @
b2d208ab
...
...
@@ -439,7 +439,7 @@ asn_encode_internal(const asn_codec_ctx_t *opt_codec_ctx,
if
(
er
.
failed_type
&&
er
.
failed_type
->
op
->
jer_encoder
)
{
errno
=
EBADF
;
/* Structure has incorrect form. */
}
else
{
errno
=
ENOENT
;
/*
X
ER is not defined for this type. */
errno
=
ENOENT
;
/*
J
ER is not defined for this type. */
}
}
}
else
{
...
...
skeletons/constr_CHOICE.c
View file @
b2d208ab
...
...
@@ -31,7 +31,7 @@ asn_TYPE_operation_t asn_OP_CHOICE = {
CHOICE_encode_jer
,
#else
0
,
#endif
/* !defined(ASN_DISABLE_
X
ER_SUPPORT) */
#endif
/* !defined(ASN_DISABLE_
J
ER_SUPPORT) */
#if !defined(ASN_DISABLE_OER_SUPPORT)
CHOICE_decode_oer
,
CHOICE_encode_oer
,
...
...
skeletons/constr_TYPE.h
View file @
b2d208ab
...
...
@@ -51,7 +51,7 @@ typedef void (xer_type_encoder_f)(void);
#endif
/* !defined(ASN_DISABLE_XER_SUPPORT) */
#if !defined(ASN_DISABLE_JER_SUPPORT)
#include <jer_encoder.h>
/* Encoder into JER (
XML
, text) */
#include <jer_encoder.h>
/* Encoder into JER (
JSON
, text) */
#else
typedef
void
(
jer_type_encoder_f
)(
void
);
#endif
/* !defined(ASN_DISABLE_JER_SUPPORT) */
...
...
tests/tests-asn1c-compiler/check-parsing.sh
View file @
b2d208ab
...
...
@@ -35,23 +35,18 @@ for ref in ${top_srcdir}/tests/tests-asn1c-compiler/*.asn1.+*; do
PROCESSING
=
"
$ref
(from
$src
)"
LC_ALL
=
C
sed
-e
's/^found in .*/found in .../'
<
"
$ref
"
>
"
$oldversion
"
ec
=
0
echo
${
template
}
echo
"
${
top_builddir
}
/asn1c/asn1c -S
${
top_srcdir
}
/skeletons -no-gen-OER -no-gen-UPER -no-gen-APER
$flags
$src
>
$ref
"
(
${
top_builddir
}
/asn1c/asn1c
-S
${
top_srcdir
}
/skeletons
-no-gen-OER
-no-gen-UPER
-no-gen-APER
$flags
"
$src
"
|
LC_ALL
=
C
sed
-e
's/^found in .*/found in .../'
>
"
$newversion
"
)
||
ec
=
$?
if
[
$?
=
0
]
;
then
echo
"diffing"
diff
$diffArgs
"
$oldversion
"
"
$newversion
"
||
ec
=
$?
fi
if
[
$ec
!=
0
]
;
then
echo
"check diffing"
LAST_FAILED
=
"
$ref
(from
$src
)"
finalExitCode
=
$ec
fi
#
rm -f $oldversion $newversion
rm
-f
$oldversion
$newversion
if
[
"
$1
"
=
"regenerate"
]
;
then
echo
"regenerate"
${
top_builddir
}
/asn1c/asn1c
-S
${
top_srcdir
}
/skeletons
-no-gen-OER
-no-gen-UPER
-no-gen-APER
$flags
"
$src
"
>
"
$ref
"
fi
done
echo
"final"
exit
$finalExitCode
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