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
9023deaf
Commit
9023deaf
authored
7 years ago
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
naming correctness fix
parent
c66ccbca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
libasn1compiler/asn1c_naming.c
libasn1compiler/asn1c_naming.c
+6
-4
No files found.
libasn1compiler/asn1c_naming.c
View file @
9023deaf
...
...
@@ -183,8 +183,9 @@ c_member_name(arg_t *arg, asn1p_expr_t *expr) {
abuf_clear
(
&
ab
);
abuf_printf
(
&
ab
,
"%s_%s"
,
c_name_impl
(
arg
,
0
).
base_name
,
asn1c_make_identifier
(
0
,
expr
,
0
));
abuf_str
(
&
ab
,
c_name_impl
(
arg
,
0
).
base_name
);
abuf_str
(
&
ab
,
"_"
);
abuf_str
(
&
ab
,
asn1c_make_identifier
(
0
,
expr
,
0
));
return
ab
.
buffer
;
}
...
...
@@ -197,8 +198,9 @@ c_presence_name(arg_t *arg, asn1p_expr_t *expr) {
abuf_clear
(
&
ab
);
if
(
expr
)
{
abuf_printf
(
&
ab
,
"%s_PR_"
,
c_name_impl
(
arg
,
0
).
base_name
);
abuf_printf
(
&
ab
,
"%s"
,
asn1c_make_identifier
(
0
,
expr
,
0
));
abuf_str
(
&
ab
,
c_name_impl
(
arg
,
0
).
base_name
);
abuf_str
(
&
ab
,
"_PR_"
);
abuf_str
(
&
ab
,
asn1c_make_identifier
(
0
,
expr
,
0
));
}
else
{
abuf_printf
(
&
ab
,
"%s_PR_NOTHING"
,
c_name_impl
(
arg
,
0
).
base_name
);
}
...
...
This diff is collapsed.
Click to expand it.
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