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 | 5183541d46a8a69d1c5cb30f16332b274981add4 (patch) | |
tree | 683bc338c74b920cd4fb10e4e3066d59999bc26d /library | |
parent | a31ce856ad7b42f9fb7919b87cc1f22bc79fb9d0 (diff) | |
download | ydb-5183541d46a8a69d1c5cb30f16332b274981add4.tar.gz |
Restoring authorship annotation for <maximm@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library')
-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 4c9761fa75..3d381c8a62 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 b99615daa9..5b947cad33 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> |