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
4021e4ba
Commit
4021e4ba
authored
May 07, 2017
by
Lev Walkin
Committed by
GitHub
May 07, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #145 from johvik/master
Skip last comma when there are no extensions
parents
bfa08659
792216e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
libasn1compiler/asn1c_C.c
libasn1compiler/asn1c_C.c
+1
-0
tests/42-real-life-OK.asn1.-PR
tests/42-real-life-OK.asn1.-PR
+1
-1
tests/47-set-ext-OK.asn1.-Pfwide-types
tests/47-set-ext-OK.asn1.-Pfwide-types
+2
-2
tests/70-xer-test-OK.asn1.-Pfwide-types
tests/70-xer-test-OK.asn1.-Pfwide-types
+1
-1
No files found.
libasn1compiler/asn1c_C.c
View file @
4021e4ba
...
...
@@ -938,6 +938,7 @@ asn1c_lang_C_type_CHOICE(arg_t *arg) {
OUT
(
"_PR_NOTHING,
\t
/* No components present */
\n
"
);
TQ_FOR
(
v
,
&
(
expr
->
members
),
next
)
{
if
(
skipComma
)
skipComma
=
0
;
else
if
(
v
->
expr_type
==
A1TC_EXTENSIBLE
&&
!
TQ_NEXT
(
v
,
next
))
OUT
(
"
\n
"
);
else
OUT
(
",
\n
"
);
if
(
v
->
expr_type
==
A1TC_EXTENSIBLE
)
{
OUT
(
"/* Extensions may appear below */
\n
"
);
...
...
tests/42-real-life-OK.asn1.-PR
View file @
4021e4ba
...
...
@@ -353,7 +353,7 @@ asn_TYPE_descriptor_t asn_DEF_VariablePartSet = {
typedef enum VariablePart_PR {
VariablePart_PR_NOTHING, /* No components present */
VariablePart_PR_vset,
VariablePart_PR_vrange
,
VariablePart_PR_vrange
/* Extensions may appear below */
} VariablePart_PR;
...
...
tests/47-set-ext-OK.asn1.-Pfwide-types
View file @
4021e4ba
...
...
@@ -196,7 +196,7 @@ asn_TYPE_descriptor_t asn_DEF_T2 = {
typedef enum T3_PR {
T3_PR_NOTHING, /* No components present */
T3_PR_i
,
T3_PR_i
/* Extensions may appear below */
} T3_PR;
...
...
@@ -279,7 +279,7 @@ asn_TYPE_descriptor_t asn_DEF_T3 = {
typedef enum T4_PR {
T4_PR_NOTHING, /* No components present */
T4_PR_i
,
T4_PR_i
/* Extensions may appear below */
} T4_PR;
...
...
tests/70-xer-test-OK.asn1.-Pfwide-types
View file @
4021e4ba
...
...
@@ -36,7 +36,7 @@ typedef enum PDU_PR {
PDU_PR_namedSetOfEnums,
PDU_PR_seqOfZuka,
PDU_PR_setOfChoice,
PDU_PR_namedSetOfChoice
,
PDU_PR_namedSetOfChoice
/* Extensions may appear below */
} PDU_PR;
...
...
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