diff options
author | babenko <babenko@yandex-team.ru> | 2022-02-10 16:49:19 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:19 +0300 |
commit | cec37806d8847aa3db53bafc9e251d4aaf325c12 (patch) | |
tree | 4a61c191e93e31d9ab423e258c71ab43550ee3d2 /library/cpp/yt/malloc | |
parent | 58cd0b86ed99a72df22479e26a20bc1c1e57e65e (diff) | |
download | ydb-cec37806d8847aa3db53bafc9e251d4aaf325c12.tar.gz |
Restoring authorship annotation for <babenko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/malloc')
-rw-r--r-- | library/cpp/yt/malloc/malloc.cpp | 38 | ||||
-rw-r--r-- | library/cpp/yt/malloc/malloc.h | 16 | ||||
-rw-r--r-- | library/cpp/yt/malloc/ya.make | 14 |
3 files changed, 34 insertions, 34 deletions
diff --git a/library/cpp/yt/malloc/malloc.cpp b/library/cpp/yt/malloc/malloc.cpp index 808afacdfb..e43a96f2ac 100644 --- a/library/cpp/yt/malloc/malloc.cpp +++ b/library/cpp/yt/malloc/malloc.cpp @@ -1,19 +1,19 @@ -#include "malloc.h" - -#include <util/system/compiler.h> - -//////////////////////////////////////////////////////////////////////////////// - -Y_WEAK extern "C" size_t nallocx(size_t size, int /* flags */) noexcept -{ - return size; -} - -#ifndef _win_ -Y_WEAK extern "C" size_t malloc_usable_size(void* /* ptr */) noexcept -{ - return 0; -} -#endif - -//////////////////////////////////////////////////////////////////////////////// +#include "malloc.h" + +#include <util/system/compiler.h> + +//////////////////////////////////////////////////////////////////////////////// + +Y_WEAK extern "C" size_t nallocx(size_t size, int /* flags */) noexcept +{ + return size; +} + +#ifndef _win_ +Y_WEAK extern "C" size_t malloc_usable_size(void* /* ptr */) noexcept +{ + return 0; +} +#endif + +//////////////////////////////////////////////////////////////////////////////// diff --git a/library/cpp/yt/malloc/malloc.h b/library/cpp/yt/malloc/malloc.h index b3c16d7849..592d4dbe29 100644 --- a/library/cpp/yt/malloc/malloc.h +++ b/library/cpp/yt/malloc/malloc.h @@ -1,8 +1,8 @@ -#include <cstddef> - -//////////////////////////////////////////////////////////////////////////////// - -extern "C" size_t malloc_usable_size(void* ptr) noexcept; -extern "C" size_t nallocx(size_t size, int flags) noexcept; - -//////////////////////////////////////////////////////////////////////////////// +#include <cstddef> + +//////////////////////////////////////////////////////////////////////////////// + +extern "C" size_t malloc_usable_size(void* ptr) noexcept; +extern "C" size_t nallocx(size_t size, int flags) noexcept; + +//////////////////////////////////////////////////////////////////////////////// diff --git a/library/cpp/yt/malloc/ya.make b/library/cpp/yt/malloc/ya.make index 0a07d93b36..8e36a95292 100644 --- a/library/cpp/yt/malloc/ya.make +++ b/library/cpp/yt/malloc/ya.make @@ -1,7 +1,7 @@ -LIBRARY() - -SRCS( - malloc.cpp -) - -END() +LIBRARY() + +SRCS( + malloc.cpp +) + +END() |