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
93afe2d5
Commit
93afe2d5
authored
May 12, 2020
by
Ilya Lipnitskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c_message.cc: Resolve name conflict (Fixes #389)
parent
39cd58f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
protoc-c/c_message.cc
protoc-c/c_message.cc
+1
-1
t/issue220/issue220.c
t/issue220/issue220.c
+1
-1
No files found.
protoc-c/c_message.cc
View file @
93afe2d5
...
...
@@ -169,7 +169,7 @@ GenerateStructDefinition(io::Printer* printer) {
}
printer
->
Print
(
vars
,
"$ucclassname$__$oneofname$_$fieldname$ = $fieldnum$$opt_comma$
\n
"
);
}
printer
->
Print
(
vars
,
" PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE($ucclassname$__$oneofname$)
\n
"
);
printer
->
Print
(
vars
,
" PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE($ucclassname$__$oneofname$
__CASE
)
\n
"
);
printer
->
Outdent
();
printer
->
Print
(
vars
,
"} $foneofname$Case;
\n\n
"
);
}
...
...
t/issue220/issue220.c
View file @
93afe2d5
...
...
@@ -8,6 +8,6 @@ int main(void)
{
assert
(
_MESSAGE_TYPE1__FLAG_IS_INT_SIZE
==
INT_MAX
);
assert
(
_MESSAGE_TYPE2__ANOTHER_FLAG_IS_INT_SIZE
==
INT_MAX
);
assert
(
_TOP_LEVEL__SUBMESSAGES_IS_INT_SIZE
==
INT_MAX
);
assert
(
_TOP_LEVEL__SUBMESSAGES_
_CASE_
IS_INT_SIZE
==
INT_MAX
);
return
EXIT_SUCCESS
;
}
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