summaryrefslogtreecommitdiffstats
path: root/contrib/tools/bison/lib
diff options
context:
space:
mode:
authorthegeorg <[email protected]>2024-06-09 20:42:41 +0300
committerthegeorg <[email protected]>2024-06-09 20:49:53 +0300
commit3ed7a11cff73be232a1e718a1e925ef09e1ca098 (patch)
tree153a2d368e70fc663285ffa25e05ffbd69e3ec4d /contrib/tools/bison/lib
parentc191ecd15978bda625d24c6cd94e63618fa0174f (diff)
contrib/tools/bison: Revert more harmless patches
020fb104b9a689c3747315b1299fdb50e00feb14
Diffstat (limited to 'contrib/tools/bison/lib')
-rw-r--r--contrib/tools/bison/lib/binary-io.h3
-rw-r--r--contrib/tools/bison/lib/sig-handler.h3
-rw-r--r--contrib/tools/bison/lib/stdio-impl.h11
-rw-r--r--contrib/tools/bison/lib/string--.h10
-rw-r--r--contrib/tools/bison/lib/xalloc.h3
-rw-r--r--contrib/tools/bison/lib/xsize.h3
6 files changed, 5 insertions, 28 deletions
diff --git a/contrib/tools/bison/lib/binary-io.h b/contrib/tools/bison/lib/binary-io.h
index 256c23a0eaa..7b4a4c0a1b5 100644
--- a/contrib/tools/bison/lib/binary-io.h
+++ b/contrib/tools/bison/lib/binary-io.h
@@ -33,9 +33,6 @@
#define O_TEXT 0
#endif
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
_GL_INLINE_HEADER_BEGIN
#ifndef BINARY_IO_INLINE
# define BINARY_IO_INLINE _GL_INLINE
diff --git a/contrib/tools/bison/lib/sig-handler.h b/contrib/tools/bison/lib/sig-handler.h
index 67d061d5990..ca9f979c41d 100644
--- a/contrib/tools/bison/lib/sig-handler.h
+++ b/contrib/tools/bison/lib/sig-handler.h
@@ -20,9 +20,6 @@
#include <signal.h>
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
_GL_INLINE_HEADER_BEGIN
#ifndef SIG_HANDLER_INLINE
# define SIG_HANDLER_INLINE _GL_INLINE
diff --git a/contrib/tools/bison/lib/stdio-impl.h b/contrib/tools/bison/lib/stdio-impl.h
index e510bb8f42d..18575555a04 100644
--- a/contrib/tools/bison/lib/stdio-impl.h
+++ b/contrib/tools/bison/lib/stdio-impl.h
@@ -14,6 +14,10 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+/* Many stdio implementations have the same logic and therefore can share
+ the same implementation of stdio extension API, except that some fields
+ have different naming conventions, or their access requires some casts. */
+
/* Glibc 2.28 made _IO_IN_BACKUP private. For now, work around this
problem by defining it ourselves. FIXME: Do not rely on glibc
internals. */
@@ -21,11 +25,6 @@
# define _IO_IN_BACKUP 0x100
#endif
-/* Many stdio implementations have the same logic and therefore can share
- the same implementation of stdio extension API, except that some fields
- have different naming conventions, or their access requires some casts. */
-
-
/* BSD stdio derived implementations. */
#if defined __NetBSD__ /* NetBSD */
@@ -64,7 +63,7 @@
# define fp_ fp
# endif
-# if (defined __NetBSD__ && __NetBSD_Version__ >= 105270000) || defined __OpenBSD__ || defined __ANDROID__ /* NetBSD >= 1.5ZA, OpenBSD, Android */
+# if (defined __NetBSD__ && __NetBSD_Version__ >= 105270000) || defined __OpenBSD__ /* NetBSD >= 1.5ZA, OpenBSD */
/* See <http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdio/fileext.h?rev=HEAD&content-type=text/x-cvsweb-markup>
and <http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdio/fileext.h?rev=HEAD&content-type=text/x-cvsweb-markup> */
struct __sfileext
diff --git a/contrib/tools/bison/lib/string--.h b/contrib/tools/bison/lib/string--.h
deleted file mode 100644
index 24a1932992a..00000000000
--- a/contrib/tools/bison/lib/string--.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#pragma once
-
-#include <string.h>
-
-#if defined(_WIN32)
-void *rawmemchr(const void *s, int c);
-char *stpcpy(char *dest, const char *src);
-#endif
-
-int strverscmp(const char *s1, const char *s2);
diff --git a/contrib/tools/bison/lib/xalloc.h b/contrib/tools/bison/lib/xalloc.h
index 6c9b53bf6fa..da7c4b6bb3e 100644
--- a/contrib/tools/bison/lib/xalloc.h
+++ b/contrib/tools/bison/lib/xalloc.h
@@ -22,9 +22,6 @@
#include "xalloc-oversized.h"
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
_GL_INLINE_HEADER_BEGIN
#ifndef XALLOC_INLINE
# define XALLOC_INLINE _GL_INLINE
diff --git a/contrib/tools/bison/lib/xsize.h b/contrib/tools/bison/lib/xsize.h
index 5675593f548..2922f353058 100644
--- a/contrib/tools/bison/lib/xsize.h
+++ b/contrib/tools/bison/lib/xsize.h
@@ -27,9 +27,6 @@
# include <stdint.h>
#endif
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
_GL_INLINE_HEADER_BEGIN
#ifndef XSIZE_INLINE
# define XSIZE_INLINE _GL_INLINE