aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit980edcd3304699edf9d4e4d6a656e585028e2a72 (patch)
tree139f47f3911484ae9af0eb347b1a88bd6c4bb35f /contrib
parentb036a557f285146e5e35d4213e29a094ab907bcf (diff)
downloadydb-980edcd3304699edf9d4e4d6a656e585028e2a72.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libs/jemalloc/spinlock.h4
-rw-r--r--contrib/libs/libidn/nfkc.c12
-rw-r--r--contrib/libs/pcre/pcre_internal.h6
-rw-r--r--contrib/libs/pcre/ya.make6
-rw-r--r--contrib/libs/pire/pire/fsm.h2
-rw-r--r--contrib/libs/pire/pire/glue.h2
-rw-r--r--contrib/libs/pire/pire/scanners/common.h2
-rw-r--r--contrib/libs/pire/pire/scanners/loaded.h2
-rw-r--r--contrib/tools/bison/gnulib/platform/win64/config.h2
-rw-r--r--contrib/tools/bison/gnulib/platform/win64/math.h12
-rw-r--r--contrib/tools/bison/gnulib/platform/win64/stdint.h.disabled18
-rw-r--r--contrib/tools/bison/gnulib/src/bison-system.h6
-rw-r--r--contrib/tools/bison/gnulib/src/c-stack.c6
-rw-r--r--contrib/tools/bison/gnulib/src/perror.c2
-rw-r--r--contrib/tools/bison/gnulib/src/snprintf.c6
-rw-r--r--contrib/tools/bison/gnulib/src/vasnprintf.c6
-rw-r--r--contrib/tools/bison/gnulib/src/vasprintf.c6
-rw-r--r--contrib/tools/bison/gnulib/src/xvasprintf.c6
-rw-r--r--contrib/tools/bison/gnulib/ya.make12
-rw-r--r--contrib/tools/ragel6/main.cpp10
-rw-r--r--contrib/tools/ragel6/rlscan.cpp10
-rw-r--r--contrib/tools/ragel6/rlscan.rl10
22 files changed, 74 insertions, 74 deletions
diff --git a/contrib/libs/jemalloc/spinlock.h b/contrib/libs/jemalloc/spinlock.h
index 93fcf10e12..3e355a9324 100644
--- a/contrib/libs/jemalloc/spinlock.h
+++ b/contrib/libs/jemalloc/spinlock.h
@@ -7,9 +7,9 @@ typedef volatile intptr_t spinlock_t;
#define SPIN_L AllocAcquireAdaptiveLock
#define SPIN_U AllocReleaseAdaptiveLock
-#define _SPINLOCK_INITIALIZER 0
+#define _SPINLOCK_INITIALIZER 0
#define _SPINUNLOCK(_lck) SPIN_U(_lck)
-#define _SPINLOCK(_lck) SPIN_L(_lck)
+#define _SPINLOCK(_lck) SPIN_L(_lck)
#if defined(__cplusplus)
extern "C" {
diff --git a/contrib/libs/libidn/nfkc.c b/contrib/libs/libidn/nfkc.c
index 2bb2e62fbc..16fc7c7ece 100644
--- a/contrib/libs/libidn/nfkc.c
+++ b/contrib/libs/libidn/nfkc.c
@@ -329,12 +329,12 @@ g_unichar_to_utf8 (gunichar c, gchar * outbuf)
* This value must be freed with g_free().
**/
static gunichar *
-g_utf8_to_ucs4_fast (const gchar * str, glong len, size_t * items_written)
+g_utf8_to_ucs4_fast (const gchar * str, glong len, size_t * items_written)
{
gint j, charlen;
gunichar *result;
- gint n_chars, i;
- const gchar *p = str;
+ gint n_chars, i;
+ const gchar *p = str;
g_return_val_if_fail (str != NULL, NULL);
@@ -440,7 +440,7 @@ g_utf8_to_ucs4_fast (const gchar * str, glong len, size_t * items_written)
static gchar *
g_ucs4_to_utf8 (const gunichar * str,
glong len,
- size_t * items_read, size_t * items_written, GError ** error)
+ size_t * items_read, size_t * items_written, GError ** error)
{
gint result_length;
gchar *result = NULL;
@@ -975,7 +975,7 @@ stringprep_unichar_to_utf8 (uint32_t c, char *outbuf)
uint32_t *
stringprep_utf8_to_ucs4 (const char *str, ssize_t len, size_t * items_written)
{
- return g_utf8_to_ucs4_fast (str, (glong) len, items_written);
+ return g_utf8_to_ucs4_fast (str, (glong) len, items_written);
}
/**
@@ -1000,7 +1000,7 @@ char *
stringprep_ucs4_to_utf8 (const uint32_t * str, ssize_t len,
size_t * items_read, size_t * items_written)
{
- return g_ucs4_to_utf8 (str, len, items_read, items_written, NULL);
+ return g_ucs4_to_utf8 (str, len, items_read, items_written, NULL);
}
/**
diff --git a/contrib/libs/pcre/pcre_internal.h b/contrib/libs/pcre/pcre_internal.h
index 97ff55d03b..011a05e75a 100644
--- a/contrib/libs/pcre/pcre_internal.h
+++ b/contrib/libs/pcre/pcre_internal.h
@@ -174,7 +174,7 @@ PCRE_EXP_DATA_DEFN only if they are not already set. */
/* When compiling with the MSVC compiler, it is sometimes necessary to include
a "calling convention" before exported function names. (This is secondhand
information; I know nothing about MSVC myself). For example, something like
-
+
void __cdecl function(....)
might be needed. In order so make this easy, all the exported functions have
@@ -183,8 +183,8 @@ set, we ensure here that it has no effect. */
#ifndef PCRE_CALL_CONVENTION
#define PCRE_CALL_CONVENTION
-#endif
-
+#endif
+
/* We need to have types that specify unsigned 8, 16 and 32-bit integers. We
cannot determine these outside the compilation (e.g. by running a program as
part of "configure") because PCRE is often cross-compiled for use on other
diff --git a/contrib/libs/pcre/ya.make b/contrib/libs/pcre/ya.make
index 85ae150697..085d3c28d2 100644
--- a/contrib/libs/pcre/ya.make
+++ b/contrib/libs/pcre/ya.make
@@ -29,10 +29,10 @@ NO_COMPILER_WARNINGS()
NO_RUNTIME()
-CFLAGS(
+CFLAGS(
GLOBAL -DPCRE_STATIC
- -DHAVE_CONFIG_H
-)
+ -DHAVE_CONFIG_H
+)
# JIT adds ≈108KB to binary size which may be critical for mobile and embedded devices binary distributions
DEFAULT(ARCADIA_PCRE_ENABLE_JIT yes)
diff --git a/contrib/libs/pire/pire/fsm.h b/contrib/libs/pire/pire/fsm.h
index 4dad06ca06..2d7858f9e0 100644
--- a/contrib/libs/pire/pire/fsm.h
+++ b/contrib/libs/pire/pire/fsm.h
@@ -250,7 +250,7 @@ namespace Pire {
};
template<class Scanner>
- void BuildScanner(const Fsm& fsm, Scanner& r)
+ void BuildScanner(const Fsm& fsm, Scanner& r)
{
TSet<size_t> dead;
if (Scanner::DeadFlag)
diff --git a/contrib/libs/pire/pire/glue.h b/contrib/libs/pire/pire/glue.h
index bac086f2f0..1df1423e71 100644
--- a/contrib/libs/pire/pire/glue.h
+++ b/contrib/libs/pire/pire/glue.h
@@ -97,7 +97,7 @@ private:
return ind;
}
}
- return (size_t)-1;
+ return (size_t)-1;
}
static size_t Hash(const key_type& st) {
diff --git a/contrib/libs/pire/pire/scanners/common.h b/contrib/libs/pire/pire/scanners/common.h
index de5ea0af7b..e2970c881b 100644
--- a/contrib/libs/pire/pire/scanners/common.h
+++ b/contrib/libs/pire/pire/scanners/common.h
@@ -59,7 +59,7 @@ namespace Pire {
, PtrSize(sizeof(void*))
, MaxWordSize(sizeof(Impl::MaxSizeWord))
, Type(type)
- , HdrSize((ui32)hdrsize)
+ , HdrSize((ui32)hdrsize)
{}
void Validate(ui32 type, size_t hdrsize) const
diff --git a/contrib/libs/pire/pire/scanners/loaded.h b/contrib/libs/pire/pire/scanners/loaded.h
index 120dc403b7..81ac456741 100644
--- a/contrib/libs/pire/pire/scanners/loaded.h
+++ b/contrib/libs/pire/pire/scanners/loaded.h
@@ -194,7 +194,7 @@ public:
size_t shift = (newState - oldState) * StateSize();
Transition tr;
- tr.shift = (ui32)shift;
+ tr.shift = (ui32)shift;
tr.action = action;
m_jumps[TransitionIndex(oldState, c)] = tr;
}
diff --git a/contrib/tools/bison/gnulib/platform/win64/config.h b/contrib/tools/bison/gnulib/platform/win64/config.h
index cf3d366e18..51e6b982a2 100644
--- a/contrib/tools/bison/gnulib/platform/win64/config.h
+++ b/contrib/tools/bison/gnulib/platform/win64/config.h
@@ -911,7 +911,7 @@
/* #undef HAVE_SLEEP */
/* Define to 1 if you have the `snprintf' function. */
-#define HAVE_SNPRINTF 1
+#define HAVE_SNPRINTF 1
/* Define if the return value of the snprintf function is the number of of
bytes (excluding the terminating NUL) that would have been produced if the
diff --git a/contrib/tools/bison/gnulib/platform/win64/math.h b/contrib/tools/bison/gnulib/platform/win64/math.h
index b2a0023d11..04629dc036 100644
--- a/contrib/tools/bison/gnulib/platform/win64/math.h
+++ b/contrib/tools/bison/gnulib/platform/win64/math.h
@@ -34,8 +34,8 @@
#define _GL_M4_MATH_H
#if _MSC_VER >= 1800 // [
-#else // ] _MSC_VER >= 1600 [
-
+#else // ] _MSC_VER >= 1600 [
+
#ifndef _GL_INLINE_HEADER_BEGIN
#error "Please include config.h first."
#endif
@@ -1289,7 +1289,7 @@ _GL_WARN_ON_USE (frexpf, "frexpf is unportable - "
If x is zero: mantissa = x, exp = 0.
If x is infinite or NaN: mantissa = x, exp unspecified.
Store exp in *EXPPTR and return mantissa. */
-#if 0
+#if 0
# if 1
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# define frexp rpl_frexp
@@ -1314,7 +1314,7 @@ _GL_WARN_ON_USE (frexp, "frexp is unportable - "
If x is zero: mantissa = x, exp = 0.
If x is infinite or NaN: mantissa = x, exp unspecified.
Store exp in *EXPPTR and return mantissa. */
-#if 0
+#if 0
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef frexpl
# define frexpl rpl_frexpl
@@ -2593,7 +2593,7 @@ _GL_WARN_REAL_FLOATING_DECL (signbit);
_GL_INLINE_HEADER_END
-#endif
-
+#endif
+
#endif /* _GL_M4_MATH_H */
#endif /* _GL_M4_MATH_H */
diff --git a/contrib/tools/bison/gnulib/platform/win64/stdint.h.disabled b/contrib/tools/bison/gnulib/platform/win64/stdint.h.disabled
index 35ff0479f4..4ca637e223 100644
--- a/contrib/tools/bison/gnulib/platform/win64/stdint.h.disabled
+++ b/contrib/tools/bison/gnulib/platform/win64/stdint.h.disabled
@@ -35,9 +35,9 @@
#endif // _MSC_VER ]
-#ifndef _MSC_STDINT_H_
-
-#if _MSC_VER >= 1600
+#ifndef _MSC_STDINT_H_
+
+#if _MSC_VER >= 1600
# ifndef __clang__
# include <../include/stdint.h>
# else
@@ -45,11 +45,11 @@
# endif
#endif
-#ifndef _MSC_STDINT_H_
-#define _MSC_STDINT_H_
-
-#if _MSC_VER < 1600
+#ifndef _MSC_STDINT_H_
+#define _MSC_STDINT_H_
+#if _MSC_VER < 1600
+
#include <limits.h>
// For Visual Studio 6 in C++ mode and for many Visual Studio versions when
@@ -259,7 +259,7 @@ typedef uint64_t uintmax_t;
#endif // __STDC_CONSTANT_MACROS ]
-#endif // _MSC_VER < 1600 ]
+#endif // _MSC_VER < 1600 ]
#endif // _MSC_STDINT_H_ ]
-#endif // _MSC_STDINT_H_ ]
+#endif // _MSC_STDINT_H_ ]
diff --git a/contrib/tools/bison/gnulib/src/bison-system.h b/contrib/tools/bison/gnulib/src/bison-system.h
index 472a1921a7..c5efc92458 100644
--- a/contrib/tools/bison/gnulib/src/bison-system.h
+++ b/contrib/tools/bison/gnulib/src/bison-system.h
@@ -53,10 +53,10 @@
(STRNCMP_LIT (S, Literal) == 0)
# include <unistd.h>
-#if (defined _MSC_VER) && (_MSC_VER < 1800)
-#else
+#if (defined _MSC_VER) && (_MSC_VER < 1800)
+#else
# include <inttypes.h>
-#endif
+#endif
# ifndef UINTPTR_MAX
/* This isn't perfect, but it's good enough for Bison, which needs
diff --git a/contrib/tools/bison/gnulib/src/c-stack.c b/contrib/tools/bison/gnulib/src/c-stack.c
index b146cf254e..ac9076388a 100644
--- a/contrib/tools/bison/gnulib/src/c-stack.c
+++ b/contrib/tools/bison/gnulib/src/c-stack.c
@@ -323,10 +323,10 @@ c_stack_action (void (*action) (int))
int
c_stack_action (void (*action) (int) __attribute__ ((unused)))
{
-#if (defined _MSC_VER) && (_MSC_VER < 1800)
-#else
+#if (defined _MSC_VER) && (_MSC_VER < 1800)
+#else
errno = ENOTSUP;
-#endif
+#endif
return -1;
}
diff --git a/contrib/tools/bison/gnulib/src/perror.c b/contrib/tools/bison/gnulib/src/perror.c
index 74e088cc73..3010a22287 100644
--- a/contrib/tools/bison/gnulib/src/perror.c
+++ b/contrib/tools/bison/gnulib/src/perror.c
@@ -28,5 +28,5 @@ void
perror (const char *string)
{
if (string != NULL && *string != '\0')
- fprintf (stderr, "%s\n", string);
+ fprintf (stderr, "%s\n", string);
}
diff --git a/contrib/tools/bison/gnulib/src/snprintf.c b/contrib/tools/bison/gnulib/src/snprintf.c
index 9c34de3bb2..d9b8d7ad20 100644
--- a/contrib/tools/bison/gnulib/src/snprintf.c
+++ b/contrib/tools/bison/gnulib/src/snprintf.c
@@ -64,10 +64,10 @@ snprintf (char *str, size_t size, const char *format, ...)
if (INT_MAX < len)
{
-#if (defined _MSC_VER) && (MSC_VER < 1800)
-#else
+#if (defined _MSC_VER) && (MSC_VER < 1800)
+#else
errno = EOVERFLOW;
-#endif
+#endif
return -1;
}
diff --git a/contrib/tools/bison/gnulib/src/vasnprintf.c b/contrib/tools/bison/gnulib/src/vasnprintf.c
index 4de22819fa..7131504a9c 100644
--- a/contrib/tools/bison/gnulib/src/vasnprintf.c
+++ b/contrib/tools/bison/gnulib/src/vasnprintf.c
@@ -5575,10 +5575,10 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
if (buf_malloced != NULL)
free (buf_malloced);
CLEANUP ();
-#if (defined _MSC_VER) && (_MSC_VER < 1800)
-#else
+#if (defined _MSC_VER) && (_MSC_VER < 1800)
+#else
errno = EOVERFLOW;
-#endif
+#endif
return NULL;
#endif
diff --git a/contrib/tools/bison/gnulib/src/vasprintf.c b/contrib/tools/bison/gnulib/src/vasprintf.c
index afc8056194..4382cacd5c 100644
--- a/contrib/tools/bison/gnulib/src/vasprintf.c
+++ b/contrib/tools/bison/gnulib/src/vasprintf.c
@@ -40,10 +40,10 @@ vasprintf (char **resultp, const char *format, va_list args)
if (length > INT_MAX)
{
free (result);
-#if (defined _MSC_VER) && (_MSC_VER < 1800)
-#else
+#if (defined _MSC_VER) && (_MSC_VER < 1800)
+#else
errno = EOVERFLOW;
-#endif
+#endif
return -1;
}
diff --git a/contrib/tools/bison/gnulib/src/xvasprintf.c b/contrib/tools/bison/gnulib/src/xvasprintf.c
index 9c93492b80..ba1a157293 100644
--- a/contrib/tools/bison/gnulib/src/xvasprintf.c
+++ b/contrib/tools/bison/gnulib/src/xvasprintf.c
@@ -53,10 +53,10 @@ xstrcat (size_t argcount, va_list args)
vasprintf(). */
if (totalsize == SIZE_MAX || totalsize > INT_MAX)
{
-#if (defined _MSC_VER) && (_MSC_VER < 1800)
-#else
+#if (defined _MSC_VER) && (_MSC_VER < 1800)
+#else
errno = EOVERFLOW;
-#endif
+#endif
return NULL;
}
diff --git a/contrib/tools/bison/gnulib/ya.make b/contrib/tools/bison/gnulib/ya.make
index b674fd9ada..986ae6e4be 100644
--- a/contrib/tools/bison/gnulib/ya.make
+++ b/contrib/tools/bison/gnulib/ya.make
@@ -184,13 +184,13 @@ IF (NOT OS_LINUX)
ENDIF()
IF (NOT OS_WINDOWS)
- SRCS(
- src/stdio-write.c
- )
+ SRCS(
+ src/stdio-write.c
+ )
ENDIF()
-
+
IF (OS_WINDOWS)
- SRCS(
+ SRCS(
src/frexp.c
src/wcrtomb.c
src/perror.c
@@ -225,7 +225,7 @@ IF (OS_WINDOWS)
src/waitpid.c
src/wcwidth.c
src/uniwidth/width.c
- )
+ )
ENDIF()
IF (NOT OS_LINUX OR MUSL)
diff --git a/contrib/tools/ragel6/main.cpp b/contrib/tools/ragel6/main.cpp
index 1fd36c6f9d..966e3b085c 100644
--- a/contrib/tools/ragel6/main.cpp
+++ b/contrib/tools/ragel6/main.cpp
@@ -564,11 +564,11 @@ int main( int argc, const char **argv )
"\" is the same as the input file" << endp;
}
- for (char* p = (char*)id.inputFileName; *p != 0; p++) {
- if (*p == '\\')
- *p = '/';
- }
-
+ for (char* p = (char*)id.inputFileName; *p != 0; p++) {
+ if (*p == '\\')
+ *p = '/';
+ }
+
process( id );
return 0;
diff --git a/contrib/tools/ragel6/rlscan.cpp b/contrib/tools/ragel6/rlscan.cpp
index 5e2fc36645..049f53a004 100644
--- a/contrib/tools/ragel6/rlscan.cpp
+++ b/contrib/tools/ragel6/rlscan.cpp
@@ -805,7 +805,7 @@ void Scanner::endSection( )
bool isAbsolutePath( const char *path )
{
#ifdef _WIN32
- return isalpha( path[0] ) && path[1] == ':' && (path[2] == '\\' || path[2] == '/');
+ return isalpha( path[0] ) && path[1] == ':' && (path[2] == '\\' || path[2] == '/');
#else
return path[0] == '/';
#endif
@@ -823,8 +823,8 @@ inline char* resolvePath(const char* rel, const char* abs) {
strcpy(ret + l3, rel);
return ret;
-}
-
+}
+
char **Scanner::makeIncludePathChecks( const char *thisFileName,
const char *fileName, int fnlen )
{
@@ -844,7 +844,7 @@ char **Scanner::makeIncludePathChecks( const char *thisFileName,
checks = new char*[2 + id.includePaths.length()];
/* Search from the the location of the current file. */
- const char *lastSlash = strrchr( thisFileName, '/' );
+ const char *lastSlash = strrchr( thisFileName, '/' );
if ( lastSlash == 0 )
checks[nextCheck++] = data;
else {
@@ -857,7 +857,7 @@ char **Scanner::makeIncludePathChecks( const char *thisFileName,
long checkLen = pathLen + 1 + length;
char *check = new char[checkLen+1];
memcpy( check, *incp, pathLen );
- check[pathLen] = '/';
+ check[pathLen] = '/';
memcpy( check+pathLen+1, data, length );
check[checkLen] = 0;
checks[nextCheck++] = check;
diff --git a/contrib/tools/ragel6/rlscan.rl b/contrib/tools/ragel6/rlscan.rl
index c3217f1542..659cafc98b 100644
--- a/contrib/tools/ragel6/rlscan.rl
+++ b/contrib/tools/ragel6/rlscan.rl
@@ -542,7 +542,7 @@ void Scanner::endSection( )
bool isAbsolutePath( const char *path )
{
#ifdef _WIN32
- return isalpha( path[0] ) && path[1] == ':' && (path[2] == '\\' || path[2] == '/');
+ return isalpha( path[0] ) && path[1] == ':' && (path[2] == '\\' || path[2] == '/');
#else
return path[0] == '/';
#endif
@@ -560,8 +560,8 @@ inline char* resolvePath(const char* rel, const char* abs) {
strcpy(ret + l3, rel);
return ret;
-}
-
+}
+
char **Scanner::makeIncludePathChecks( const char *thisFileName,
const char *fileName, int fnlen )
{
@@ -581,7 +581,7 @@ char **Scanner::makeIncludePathChecks( const char *thisFileName,
checks = new char*[2 + id.includePaths.length()];
/* Search from the the location of the current file. */
- const char *lastSlash = strrchr( thisFileName, '/' );
+ const char *lastSlash = strrchr( thisFileName, '/' );
if ( lastSlash == 0 )
checks[nextCheck++] = data;
else {
@@ -594,7 +594,7 @@ char **Scanner::makeIncludePathChecks( const char *thisFileName,
long checkLen = pathLen + 1 + length;
char *check = new char[checkLen+1];
memcpy( check, *incp, pathLen );
- check[pathLen] = '/';
+ check[pathLen] = '/';
memcpy( check+pathLen+1, data, length );
check[checkLen] = 0;
checks[nextCheck++] = check;