diff options
author | maximm <maximm@yandex-team.ru> | 2022-02-10 16:49:58 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:58 +0300 |
commit | 5c9752479158f30423a691a606b83df9fcb86ff3 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp | |
parent | 5183541d46a8a69d1c5cb30f16332b274981add4 (diff) | |
download | ydb-5c9752479158f30423a691a606b83df9fcb86ff3.tar.gz |
Restoring authorship annotation for <maximm@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/svnversion/svnversion.cpp | 20 | ||||
-rw-r--r-- | library/cpp/svnversion/svnversion.h | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/svnversion/svnversion.cpp b/library/cpp/svnversion/svnversion.cpp index 3d381c8a62..4c9761fa75 100644 --- a/library/cpp/svnversion/svnversion.cpp +++ b/library/cpp/svnversion/svnversion.cpp @@ -5,8 +5,8 @@ #define FROM_IMPL #include "svnversion.h" -#include <util/generic/strbuf.h> - +#include <util/generic/strbuf.h> + extern "C" void PrintProgramSvnVersion() { puts(GetProgramSvnVersion()); } @@ -17,17 +17,17 @@ extern "C" void PrintSvnVersionAndExit0() { } extern "C" void PrintSvnVersionAndExitEx(int argc, char* argv[], const char* opts) { - if (2 == argc) { + if (2 == argc) { for (TStringBuf all = opts, versionOpt; all.NextTok(';', versionOpt);) { - if (versionOpt == argv[1]) { - PrintSvnVersionAndExit0(); - } - } + if (versionOpt == argv[1]) { + PrintSvnVersionAndExit0(); + } + } } } extern "C" void PrintSvnVersionAndExit(int argc, char* argv[]) { - PrintSvnVersionAndExitEx(argc, argv, "--version"); -} - + PrintSvnVersionAndExitEx(argc, argv, "--version"); +} + #undef FROM_IMPL diff --git a/library/cpp/svnversion/svnversion.h b/library/cpp/svnversion/svnversion.h index 5b947cad33..b99615daa9 100644 --- a/library/cpp/svnversion/svnversion.h +++ b/library/cpp/svnversion/svnversion.h @@ -4,7 +4,7 @@ #define PROGRAM_VERSION GetProgramSvnVersion() #define ARCADIA_SOURCE_PATH GetArcadiaSourcePath() #define PRINT_VERSION PrintSvnVersionAndExit(argc, (char**)argv) -#define PRINT_VERSION_EX(opts) PrintSvnVersionAndExitEx(argc, (char**)argv, opts) +#define PRINT_VERSION_EX(opts) PrintSvnVersionAndExitEx(argc, (char**)argv, opts) #endif #include <util/system/compiler.h> |