summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-08-01 21:03:17 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-08-02 08:36:49 +0200
commit2f8a8742155b7810c63dc897a9798f48aa512d10 (patch)
treeb55aaa420370f62eee2c01580f1e89ed631604af
parentad6f600bb1bf16fc8aa89dced17dcdec77594542 (diff)
downloadbison-2f8a8742155b7810c63dc897a9798f48aa512d10.tar.gz
portability: we use termios.h and sys/ioctl.h
Reported by Maarten De Braekeleer. https://lists.gnu.org/r/bison-patches/2020-07/msg00079.html * bootstrap.conf (gnulib_modules): Add termios and sys_ioctl.
-rw-r--r--NEWS2
-rw-r--r--TODO4
-rw-r--r--bootstrap.conf2
-rw-r--r--lib/.gitignore1
-rw-r--r--m4/.gitignore2
-rw-r--r--src/flex-scanner.h2
6 files changed, 12 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 717ff8a9..f04a0b55 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,8 @@ GNU Bison NEWS
Portability issues with libtextstyle.
+ Portability issues of Bison itself with MSVC.
+
** Changes
Improvements and fixes in the documentation.
diff --git a/TODO b/TODO
index 1b9fb510..b8b2befb 100644
--- a/TODO
+++ b/TODO
@@ -467,6 +467,10 @@ both deterministic and generalized parsing.
It would be great for D to also support this.
+The basic ideas of GLR are explained here:
+
+https://www.codeproject.com/Articles/5259825/GLR-Parsing-in-Csharp-How-to-Use-The-Most-Powerful
+
* Better error messages
The users are not provided with enough tools to forge their error messages.
See for instance "Is there an option to change the message produced by
diff --git a/bootstrap.conf b/bootstrap.conf
index 3f2fa842..577e30e5 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -45,6 +45,8 @@ gnulib_modules='
relocatable-prog relocatable-script
rename
spawn-pipe stdbool stpcpy stpncpy strdup-posix strerror strverscmp
+ sys_ioctl
+ termios
timevar
unicodeio unistd unistd-safer unlink unlocked-io
update-copyright unsetenv verify
diff --git a/lib/.gitignore b/lib/.gitignore
index 758edcc0..58aeac63 100644
--- a/lib/.gitignore
+++ b/lib/.gitignore
@@ -336,6 +336,7 @@
/sys_types.in.h
/sys_wait.in.h
/sysexits.in.h
+/termios.in.h
/textstyle.h
/textstyle.in.h
/time.h
diff --git a/m4/.gitignore b/m4/.gitignore
index 9bc07270..8d7a965a 100644
--- a/m4/.gitignore
+++ b/m4/.gitignore
@@ -183,6 +183,7 @@
/strndup.m4
/strnlen.m4
/strverscmp.m4
+/sys_ioctl_h.m4
/sys_resource_h.m4
/sys_socket_h.m4
/sys_stat_h.m4
@@ -190,6 +191,7 @@
/sys_times_h.m4
/sys_types_h.m4
/sys_wait_h.m4
+/termios_h.m4
/threadlib.m4
/time_h.m4
/timespec.m4
diff --git a/src/flex-scanner.h b/src/flex-scanner.h
index 028847fd..2acc9146 100644
--- a/src/flex-scanner.h
+++ b/src/flex-scanner.h
@@ -121,6 +121,6 @@ static struct obstack obstack_for_string;
obstack_free (&obstack_for_string, last_string); \
last_string = NULL; \
} while (0)
-#endif
+# endif
#endif