protoc-c: Rename 'legacy_name' to 'standalone_name'

This commit is contained in:
Robert Edmonds 2018-09-02 18:03:48 -04:00
parent de5ea41b4f
commit 5312647592

View File

@ -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);