diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /contrib/libs/lz4 | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/lz4')
-rw-r--r-- | contrib/libs/lz4/generated/gen.py | 8 | ||||
-rw-r--r-- | contrib/libs/lz4/generated/iface.h | 30 | ||||
-rw-r--r-- | contrib/libs/lz4/generated/lz4_ns.h | 8 | ||||
-rw-r--r-- | contrib/libs/lz4/generated/ya.make | 4 | ||||
-rw-r--r-- | contrib/libs/lz4/lz4.c | 2 |
5 files changed, 26 insertions, 26 deletions
diff --git a/contrib/libs/lz4/generated/gen.py b/contrib/libs/lz4/generated/gen.py index 24dec0555c..6bee186e93 100644 --- a/contrib/libs/lz4/generated/gen.py +++ b/contrib/libs/lz4/generated/gen.py @@ -1,5 +1,5 @@ import os - + lz4 = ''' #define LZ4_MEMORY_USAGE {i} #define LZ4_NAMESPACE lz4_{i} @@ -32,14 +32,14 @@ cases = [] os.chdir(os.path.dirname(__file__)) -for i in range(10, 21): +for i in range(10, 21): name = 'lz4_{}.cpp'.format(i) namespaces.append(lz4_namespace.format(i=i)) cases.append(lz4_case.format(i=i)) print ' ' + name - + with open(name, 'w') as f: f.write(lz4.format(i=i)) - + with open('lz4methods.cpp', 'w') as f: f.write(lz4methods % ('\n'.join(namespaces), '\n'.join(cases))) diff --git a/contrib/libs/lz4/generated/iface.h b/contrib/libs/lz4/generated/iface.h index e299d44014..c30f2da853 100644 --- a/contrib/libs/lz4/generated/iface.h +++ b/contrib/libs/lz4/generated/iface.h @@ -1,15 +1,15 @@ -#pragma once - -#if defined(__cplusplus) -extern "C" { -#endif - -struct TLZ4Methods { - int (*LZ4CompressLimited)(const char* source, char* dest, int isize, int maxOut); -}; - -struct TLZ4Methods* LZ4Methods(int memory); - -#if defined(__cplusplus) -} -#endif +#pragma once + +#if defined(__cplusplus) +extern "C" { +#endif + +struct TLZ4Methods { + int (*LZ4CompressLimited)(const char* source, char* dest, int isize, int maxOut); +}; + +struct TLZ4Methods* LZ4Methods(int memory); + +#if defined(__cplusplus) +} +#endif diff --git a/contrib/libs/lz4/generated/lz4_ns.h b/contrib/libs/lz4/generated/lz4_ns.h index 2dfbbf8ccc..8da45bceb5 100644 --- a/contrib/libs/lz4/generated/lz4_ns.h +++ b/contrib/libs/lz4/generated/lz4_ns.h @@ -1,7 +1,7 @@ #pragma once - + #include "iface.h" - + #include <stddef.h> #include <stdint.h> #include <stdlib.h> @@ -14,6 +14,6 @@ namespace LZ4_NAMESPACE { struct TLZ4Methods ytbl = { LZ4_compress_default, -}; - +}; + } diff --git a/contrib/libs/lz4/generated/ya.make b/contrib/libs/lz4/generated/ya.make index f37d13bddb..ed4cb874d3 100644 --- a/contrib/libs/lz4/generated/ya.make +++ b/contrib/libs/lz4/generated/ya.make @@ -2,8 +2,8 @@ LIBRARY() WITHOUT_LICENSE_TEXTS() -LICENSE(BSD-2-Clause) - +LICENSE(BSD-2-Clause) + OWNER( orivej g:contrib diff --git a/contrib/libs/lz4/lz4.c b/contrib/libs/lz4/lz4.c index c864ba73ba..657b8f1baf 100644 --- a/contrib/libs/lz4/lz4.c +++ b/contrib/libs/lz4/lz4.c @@ -42,7 +42,7 @@ */ #ifndef LZ4_HEAPMODE # define LZ4_HEAPMODE 0 -#endif +#endif /* * LZ4_ACCELERATION_DEFAULT : |