Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
protobuf-c
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
protobuf-c
Commits
bb3cf5a8
Commit
bb3cf5a8
authored
Feb 02, 2016
by
Robert Edmonds
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'branches/pulls/205' into next
parents
1d4aff96
58b03b6b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ChangeLog
ChangeLog
+6
-0
protoc-c/c_message.cc
protoc-c/c_message.cc
+2
-2
No files found.
ChangeLog
View file @
bb3cf5a8
protobuf-c (1.2.1) UNRELEASED
[ Paolo Borelli ]
* protoc-c: Generate code that uses the universal zero initializer {0} when
initializing a oneof union.
protobuf-c (1.2.0)
[ Robert Edmonds ]
...
...
protoc-c/c_message.cc
View file @
bb3cf5a8
...
...
@@ -236,8 +236,8 @@ GenerateStructDefinition(io::Printer* printer) {
vars
[
"foneofname"
]
=
FullNameToUpper
(
oneof
->
full_name
());
// Initialize the case enum
printer
->
Print
(
vars
,
", $foneofname$__NOT_SET"
);
// Initialize the
enum
printer
->
Print
(
", {}"
);
// Initialize the
union
printer
->
Print
(
", {
0
}"
);
}
printer
->
Print
(
" }
\n\n\n
"
);
...
...
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