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
spbro
protobuf-c
Commits
53126475
Commit
53126475
authored
Sep 02, 2018
by
Robert Edmonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protoc-c: Rename 'legacy_name' to 'standalone_name'
parent
de5ea41b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
protoc-c/main.cc
protoc-c/main.cc
+2
-2
No files found.
protoc-c/main.cc
View file @
53126475
...
...
@@ -9,9 +9,9 @@ int main(int argc, char* argv[]) {
std
::
string
invocation_name
=
argv
[
0
];
std
::
string
invocation_basename
=
invocation_name
.
substr
(
invocation_name
.
find_last_of
(
"/"
)
+
1
);
const
std
::
string
legacy
_name
=
"protoc-c"
;
const
std
::
string
standalone
_name
=
"protoc-c"
;
if
(
invocation_basename
==
legacy
_name
)
{
if
(
invocation_basename
==
standalone
_name
)
{
google
::
protobuf
::
compiler
::
CommandLineInterface
cli
;
cli
.
RegisterGenerator
(
"--c_out"
,
&
c_generator
,
"Generate C/H files."
);
cli
.
SetVersionInfo
(
PACKAGE_STRING
);
...
...
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