diff options
author | leo <leo@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
commit | 980edcd3304699edf9d4e4d6a656e585028e2a72 (patch) | |
tree | 139f47f3911484ae9af0eb347b1a88bd6c4bb35f /contrib/tools | |
parent | b036a557f285146e5e35d4213e29a094ab907bcf (diff) | |
download | ydb-980edcd3304699edf9d4e4d6a656e585028e2a72.tar.gz |
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools')
-rw-r--r-- | contrib/tools/bison/gnulib/platform/win64/config.h | 2 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/platform/win64/math.h | 12 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/platform/win64/stdint.h.disabled | 18 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/bison-system.h | 6 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/c-stack.c | 6 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/perror.c | 2 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/snprintf.c | 6 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/vasnprintf.c | 6 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/vasprintf.c | 6 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/xvasprintf.c | 6 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/ya.make | 12 | ||||
-rw-r--r-- | contrib/tools/ragel6/main.cpp | 10 | ||||
-rw-r--r-- | contrib/tools/ragel6/rlscan.cpp | 10 | ||||
-rw-r--r-- | contrib/tools/ragel6/rlscan.rl | 10 |
14 files changed, 56 insertions, 56 deletions
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; |