mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-26 21:04:23 +08:00
protoc-c: Rename 'legacy_name' to 'standalone_name'
This commit is contained in:
parent
de5ea41b4f
commit
5312647592
@ -9,9 +9,9 @@ int main(int argc, char* argv[]) {
|
|||||||
|
|
||||||
std::string invocation_name = argv[0];
|
std::string invocation_name = argv[0];
|
||||||
std::string invocation_basename = invocation_name.substr(invocation_name.find_last_of("/") + 1);
|
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;
|
google::protobuf::compiler::CommandLineInterface cli;
|
||||||
cli.RegisterGenerator("--c_out", &c_generator, "Generate C/H files.");
|
cli.RegisterGenerator("--c_out", &c_generator, "Generate C/H files.");
|
||||||
cli.SetVersionInfo(PACKAGE_STRING);
|
cli.SetVersionInfo(PACKAGE_STRING);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user