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 /contrib/tools/bison/gnulib/src | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/bison/gnulib/src')
-rw-r--r-- | contrib/tools/bison/gnulib/src/canonicalize-lgpl.c | 2 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/execute.c | 2 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/fpending.c | 8 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/malloca.h | 2 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/palloca.h | 14 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/penviron.h | 8 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/regex_internal.h | 2 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/spawn-pipe.c | 2 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/spawni.c | 2 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/stpcpy.c | 2 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/strsignal.c | 8 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/timevar.c | 12 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/vasnprintf.c | 2 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/xstrndup.c | 34 | ||||
-rw-r--r-- | contrib/tools/bison/gnulib/src/xvasprintf.c | 8 |
15 files changed, 54 insertions, 54 deletions
diff --git a/contrib/tools/bison/gnulib/src/canonicalize-lgpl.c b/contrib/tools/bison/gnulib/src/canonicalize-lgpl.c index 74a381325e..5cc9c5b4a0 100644 --- a/contrib/tools/bison/gnulib/src/canonicalize-lgpl.c +++ b/contrib/tools/bison/gnulib/src/canonicalize-lgpl.c @@ -29,7 +29,7 @@ /* Specification. */ #include <stdlib.h> -#include "palloca.h" +#include "palloca.h" #include <string.h> #include <unistd.h> #include <limits.h> diff --git a/contrib/tools/bison/gnulib/src/execute.c b/contrib/tools/bison/gnulib/src/execute.c index 7df28682b3..1bb577100e 100644 --- a/contrib/tools/bison/gnulib/src/execute.c +++ b/contrib/tools/bison/gnulib/src/execute.c @@ -28,7 +28,7 @@ #include <signal.h> #include <unistd.h> -#include "penviron.h" +#include "penviron.h" #include "error.h" #include "fatal-signal.h" #include "wait-process.h" diff --git a/contrib/tools/bison/gnulib/src/fpending.c b/contrib/tools/bison/gnulib/src/fpending.c index f6db79f891..1bc4568923 100644 --- a/contrib/tools/bison/gnulib/src/fpending.c +++ b/contrib/tools/bison/gnulib/src/fpending.c @@ -26,9 +26,9 @@ size_t __fpending (FILE *fp) { -#if defined(PENDING_OUTPUT_N_BYTES) +#if defined(PENDING_OUTPUT_N_BYTES) return PENDING_OUTPUT_N_BYTES; -#endif - - return 0; +#endif + + return 0; } diff --git a/contrib/tools/bison/gnulib/src/malloca.h b/contrib/tools/bison/gnulib/src/malloca.h index 0d8cad0582..8ec4465dc7 100644 --- a/contrib/tools/bison/gnulib/src/malloca.h +++ b/contrib/tools/bison/gnulib/src/malloca.h @@ -18,7 +18,7 @@ #ifndef _MALLOCA_H #define _MALLOCA_H -#include "palloca.h" +#include "palloca.h" #include <stddef.h> #include <stdlib.h> diff --git a/contrib/tools/bison/gnulib/src/palloca.h b/contrib/tools/bison/gnulib/src/palloca.h index 08eef69d76..a7ed8a2f9c 100644 --- a/contrib/tools/bison/gnulib/src/palloca.h +++ b/contrib/tools/bison/gnulib/src/palloca.h @@ -1,7 +1,7 @@ -#pragma once - -#if defined(__FreeBSD__) - #include <stdlib.h> -#else - #include <alloca.h> -#endif +#pragma once + +#if defined(__FreeBSD__) + #include <stdlib.h> +#else + #include <alloca.h> +#endif diff --git a/contrib/tools/bison/gnulib/src/penviron.h b/contrib/tools/bison/gnulib/src/penviron.h index a6e378b888..fd83197378 100644 --- a/contrib/tools/bison/gnulib/src/penviron.h +++ b/contrib/tools/bison/gnulib/src/penviron.h @@ -1,5 +1,5 @@ -#pragma once - +#pragma once + #if defined(__FreeBSD__) || defined(__MACH__) - extern char** environ; -#endif + extern char** environ; +#endif diff --git a/contrib/tools/bison/gnulib/src/regex_internal.h b/contrib/tools/bison/gnulib/src/regex_internal.h index 61f50d1e70..6205dbe726 100644 --- a/contrib/tools/bison/gnulib/src/regex_internal.h +++ b/contrib/tools/bison/gnulib/src/regex_internal.h @@ -482,7 +482,7 @@ static unsigned int re_string_context_at (const re_string_t *input, Idx idx, #define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx)) #if defined _LIBC || HAVE_ALLOCA -# include "palloca.h" +# include "palloca.h" #endif #ifndef _LIBC diff --git a/contrib/tools/bison/gnulib/src/spawn-pipe.c b/contrib/tools/bison/gnulib/src/spawn-pipe.c index e14fad3a07..86b929a7f4 100644 --- a/contrib/tools/bison/gnulib/src/spawn-pipe.c +++ b/contrib/tools/bison/gnulib/src/spawn-pipe.c @@ -27,7 +27,7 @@ #include <signal.h> #include <unistd.h> -#include "penviron.h" +#include "penviron.h" #include "error.h" #include "fatal-signal.h" #include "unistd-safer.h" diff --git a/contrib/tools/bison/gnulib/src/spawni.c b/contrib/tools/bison/gnulib/src/spawni.c index 47c890210b..e2f7b45b60 100644 --- a/contrib/tools/bison/gnulib/src/spawni.c +++ b/contrib/tools/bison/gnulib/src/spawni.c @@ -21,7 +21,7 @@ #include <spawn.h> #include "spawn_int.h" -#include "palloca.h" +#include "palloca.h" #include <errno.h> #include <fcntl.h> diff --git a/contrib/tools/bison/gnulib/src/stpcpy.c b/contrib/tools/bison/gnulib/src/stpcpy.c index 7a262efd04..f5aa8d67e9 100644 --- a/contrib/tools/bison/gnulib/src/stpcpy.c +++ b/contrib/tools/bison/gnulib/src/stpcpy.c @@ -21,7 +21,7 @@ #include <config.h> #include <string.h> -#include <stdlib.h> +#include <stdlib.h> #undef __stpcpy #if defined(_LIBC) || (defined(__MACH__) && defined(stpcpy)) diff --git a/contrib/tools/bison/gnulib/src/strsignal.c b/contrib/tools/bison/gnulib/src/strsignal.c index bb2046c92c..20d604ff38 100644 --- a/contrib/tools/bison/gnulib/src/strsignal.c +++ b/contrib/tools/bison/gnulib/src/strsignal.c @@ -44,11 +44,11 @@ # define __libc_key_t gl_tls_key_t # define __libc_getspecific(NAME) gl_tls_get ((NAME)) # define __libc_setspecific(NAME, POINTER) gl_tls_set ((NAME), (POINTER)) -#if defined(_MSC_VER) -# define __snprintf _snprintf -#else +#if defined(_MSC_VER) +# define __snprintf _snprintf +#else # define __snprintf snprintf -#endif +#endif #endif /* _LIBC */ #ifdef _LIBC diff --git a/contrib/tools/bison/gnulib/src/timevar.c b/contrib/tools/bison/gnulib/src/timevar.c index 7044e18b9e..a9dbdbdee5 100644 --- a/contrib/tools/bison/gnulib/src/timevar.c +++ b/contrib/tools/bison/gnulib/src/timevar.c @@ -28,12 +28,12 @@ #else -#if defined(_musl_) - #define HAVE_SYS_TIMES_H 1 - #define HAVE_STRUCT_TMS 1 - #define HAVE_CLOCK_T 1 -#endif - +#if defined(_musl_) + #define HAVE_SYS_TIMES_H 1 + #define HAVE_STRUCT_TMS 1 + #define HAVE_CLOCK_T 1 +#endif + /* This source file is taken from the GCC source code, with slight modifications that are under control of the IN_GCC preprocessor variable. The !IN_GCC part of this file is specific to Bison. */ diff --git a/contrib/tools/bison/gnulib/src/vasnprintf.c b/contrib/tools/bison/gnulib/src/vasnprintf.c index a8b305cd61..4de22819fa 100644 --- a/contrib/tools/bison/gnulib/src/vasnprintf.c +++ b/contrib/tools/bison/gnulib/src/vasnprintf.c @@ -54,7 +54,7 @@ # include <config.h> #endif #ifndef IN_LIBINTL -# include "palloca.h" +# include "palloca.h" #endif /* Specification. */ diff --git a/contrib/tools/bison/gnulib/src/xstrndup.c b/contrib/tools/bison/gnulib/src/xstrndup.c index 9c490ab3e1..741d5a1b05 100644 --- a/contrib/tools/bison/gnulib/src/xstrndup.c +++ b/contrib/tools/bison/gnulib/src/xstrndup.c @@ -21,25 +21,25 @@ #include "xstrndup.h" #include <string.h> -#include <stdlib.h> - +#include <stdlib.h> + #include "xalloc.h" -#if defined(_MSC_VER) -static char * -strndup(char const *s, size_t n) -{ - size_t len = strnlen(s, n); - char *new = malloc(len + 1); - - if (new == NULL) - return NULL; - - new[len] = '\0'; - return memcpy(new, s, len); -} -#endif - +#if defined(_MSC_VER) +static char * +strndup(char const *s, size_t n) +{ + size_t len = strnlen(s, n); + char *new = malloc(len + 1); + + if (new == NULL) + return NULL; + + new[len] = '\0'; + return memcpy(new, s, len); +} +#endif + /* Return a newly allocated copy of at most N bytes of STRING. In other words, return a copy of the initial segment of length N of STRING. */ diff --git a/contrib/tools/bison/gnulib/src/xvasprintf.c b/contrib/tools/bison/gnulib/src/xvasprintf.c index fba46653ee..9c93492b80 100644 --- a/contrib/tools/bison/gnulib/src/xvasprintf.c +++ b/contrib/tools/bison/gnulib/src/xvasprintf.c @@ -75,10 +75,10 @@ xstrcat (size_t argcount, va_list args) return result; } -#if defined(_MSC_VER) -int vasprintf(char **resultp, const char *format, va_list args); -#endif - +#if defined(_MSC_VER) +int vasprintf(char **resultp, const char *format, va_list args); +#endif + char * xvasprintf (const char *format, va_list args) { |