diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /library/cpp/svnversion | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/svnversion')
-rw-r--r-- | library/cpp/svnversion/svnversion.cpp | 14 | ||||
-rw-r--r-- | library/cpp/svnversion/svnversion.h | 4 | ||||
-rw-r--r-- | library/cpp/svnversion/ya.make | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/svnversion/svnversion.cpp b/library/cpp/svnversion/svnversion.cpp index 1e9fc97668..4c9761fa75 100644 --- a/library/cpp/svnversion/svnversion.cpp +++ b/library/cpp/svnversion/svnversion.cpp @@ -2,8 +2,8 @@ #include <stdlib.h> #include <stdio.h> -#define FROM_IMPL -#include "svnversion.h" +#define FROM_IMPL +#include "svnversion.h" #include <util/generic/strbuf.h> @@ -16,18 +16,18 @@ extern "C" void PrintSvnVersionAndExit0() { exit(0); } -extern "C" void PrintSvnVersionAndExitEx(int argc, char* argv[], const char* opts) { +extern "C" void PrintSvnVersionAndExitEx(int argc, char* argv[], const char* opts) { if (2 == argc) { - for (TStringBuf all = opts, versionOpt; all.NextTok(';', versionOpt);) { + for (TStringBuf all = opts, versionOpt; all.NextTok(';', versionOpt);) { if (versionOpt == argv[1]) { PrintSvnVersionAndExit0(); } } } } - -extern "C" void PrintSvnVersionAndExit(int argc, char* argv[]) { + +extern "C" void PrintSvnVersionAndExit(int argc, char* argv[]) { PrintSvnVersionAndExitEx(argc, argv, "--version"); } -#undef FROM_IMPL +#undef FROM_IMPL diff --git a/library/cpp/svnversion/svnversion.h b/library/cpp/svnversion/svnversion.h index 2ee308f91b..b99615daa9 100644 --- a/library/cpp/svnversion/svnversion.h +++ b/library/cpp/svnversion/svnversion.h @@ -1,11 +1,11 @@ #pragma once -#if !defined(FROM_IMPL) +#if !defined(FROM_IMPL) #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) -#endif +#endif #include <util/system/compiler.h> diff --git a/library/cpp/svnversion/ya.make b/library/cpp/svnversion/ya.make index 146a3e9408..04e1a4c4fd 100644 --- a/library/cpp/svnversion/ya.make +++ b/library/cpp/svnversion/ya.make @@ -1,6 +1,6 @@ OWNER(g:cpp-contrib) -LIBRARY() +LIBRARY() SRCS( svnversion.cpp |