aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/bison/gnulib/src
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/tools/bison/gnulib/src
parentb036a557f285146e5e35d4213e29a094ab907bcf (diff)
downloadydb-980edcd3304699edf9d4e4d6a656e585028e2a72.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/bison/gnulib/src')
-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
7 files changed, 19 insertions, 19 deletions
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;
}