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
d18a21d5
Unverified
Commit
d18a21d5
authored
Jun 20, 2020
by
Robert Edmonds
Committed by
GitHub
Jun 20, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #430 from protobuf-c/ilya-underscore
protoc-c: Remove leading underscores from structs
parents
cf04fa71
cd671dbc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
protobuf-c/protobuf-c.c
protobuf-c/protobuf-c.c
+2
-2
protoc-c/c_message.cc
protoc-c/c_message.cc
+2
-2
protoc-c/c_service.cc
protoc-c/c_service.cc
+2
-2
No files found.
protobuf-c/protobuf-c.c
View file @
d18a21d5
...
@@ -2095,9 +2095,9 @@ parse_tag_and_wiretype(size_t len,
...
@@ -2095,9 +2095,9 @@ parse_tag_and_wiretype(size_t len,
/* sizeof(ScannedMember) must be <= (1UL<<BOUND_SIZEOF_SCANNED_MEMBER_LOG2) */
/* sizeof(ScannedMember) must be <= (1UL<<BOUND_SIZEOF_SCANNED_MEMBER_LOG2) */
#define BOUND_SIZEOF_SCANNED_MEMBER_LOG2 5
#define BOUND_SIZEOF_SCANNED_MEMBER_LOG2 5
typedef
struct
_
ScannedMember
ScannedMember
;
typedef
struct
ScannedMember
ScannedMember
;
/** Field as it's being read. */
/** Field as it's being read. */
struct
_
ScannedMember
{
struct
ScannedMember
{
uint32_t
tag
;
/**< Field tag. */
uint32_t
tag
;
/**< Field tag. */
uint8_t
wire_type
;
/**< Field type. */
uint8_t
wire_type
;
/**< Field type. */
uint8_t
length_prefix_len
;
/**< Prefix length. */
uint8_t
length_prefix_len
;
/**< Prefix length. */
...
...
protoc-c/c_message.cc
View file @
d18a21d5
...
@@ -111,7 +111,7 @@ MessageGenerator::~MessageGenerator() {}
...
@@ -111,7 +111,7 @@ MessageGenerator::~MessageGenerator() {}
void
MessageGenerator
::
void
MessageGenerator
::
GenerateStructTypedef
(
io
::
Printer
*
printer
)
{
GenerateStructTypedef
(
io
::
Printer
*
printer
)
{
printer
->
Print
(
"typedef struct
_
$classname$ $classname$;
\n
"
,
printer
->
Print
(
"typedef struct $classname$ $classname$;
\n
"
,
"classname"
,
FullNameToC
(
descriptor_
->
full_name
()));
"classname"
,
FullNameToC
(
descriptor_
->
full_name
()));
for
(
int
i
=
0
;
i
<
descriptor_
->
nested_type_count
();
i
++
)
{
for
(
int
i
=
0
;
i
<
descriptor_
->
nested_type_count
();
i
++
)
{
...
@@ -179,7 +179,7 @@ GenerateStructDefinition(io::Printer* printer) {
...
@@ -179,7 +179,7 @@ GenerateStructDefinition(io::Printer* printer) {
PrintComment
(
printer
,
msgSourceLoc
.
leading_comments
);
PrintComment
(
printer
,
msgSourceLoc
.
leading_comments
);
printer
->
Print
(
vars
,
printer
->
Print
(
vars
,
"struct $dllexport$
_
$classname$
\n
"
"struct $dllexport$ $classname$
\n
"
"{
\n
"
"{
\n
"
" ProtobufCMessage base;
\n
"
);
" ProtobufCMessage base;
\n
"
);
...
...
protoc-c/c_service.cc
View file @
d18a21d5
...
@@ -98,8 +98,8 @@ void ServiceGenerator::GenerateMainHFile(io::Printer* printer)
...
@@ -98,8 +98,8 @@ void ServiceGenerator::GenerateMainHFile(io::Printer* printer)
void
ServiceGenerator
::
GenerateVfuncs
(
io
::
Printer
*
printer
)
void
ServiceGenerator
::
GenerateVfuncs
(
io
::
Printer
*
printer
)
{
{
printer
->
Print
(
vars_
,
printer
->
Print
(
vars_
,
"typedef struct
_
$cname$_Service $cname$_Service;
\n
"
"typedef struct $cname$_Service $cname$_Service;
\n
"
"struct
_
$cname$_Service
\n
"
"struct $cname$_Service
\n
"
"{
\n
"
"{
\n
"
" ProtobufCService base;
\n
"
);
" ProtobufCService base;
\n
"
);
for
(
int
i
=
0
;
i
<
descriptor_
->
method_count
();
i
++
)
{
for
(
int
i
=
0
;
i
<
descriptor_
->
method_count
();
i
++
)
{
...
...
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