[PATCH 0/5] Support building bison with MSVC

[email protected]
Newsgroups gmane.comp.parsers.bison.patches
Message-ID <[email protected]>
From: Anonymous Maarten <[email protected]>

Conan [1], a c/c++ package manager, provides a recipes and packages for
libraries and programs built using common architectures, compilers and operating
systems. It mostly caters developers.
The public recipe for bison is available at conan-center-index [2].

Building bison on Visual Studio (MSVC) causes some compile errors,
which I try to address in these patches.
They mostly rename symbols to avoid symbol redefinition errors.

In the first patch, I hid the inclusion of 2 files behind a macro.
I haven't checked whether these missing files can be provided through
gnulib.

[1] https://conan.io/

[2] https://github.com/conan-io/conan-center-index/tree/master/recipes/bison

Anonymous Maarten (5):
  Don't include sys/ioctl.h and termios.h on Windows
  Use max_int instead of max because MSVC defines this symbol already
  Use INT_LITERAL instead of INT because MSVC defines INT
  Use CHAR_LITERAL instead of CHAR because MSVC defines CHAR
  Rename accept to acceptsymbol because MSVC already defines this symbol

 src/counterexample.c |  6 +++---
 src/derivation.c     |  6 +++---
 src/ielr.c           |  2 +-
 src/location.c       |  8 ++++++--
 src/parse-gram.c     | 30 +++++++++++++++---------------
 src/parse-gram.h     | 10 +++++-----
 src/parse-gram.y     | 20 ++++++++++----------
 src/reader.c         |  2 +-
 src/reduce.c         |  8 ++++----
 src/scan-gram.l      | 14 +++++++-------
 src/symtab.c         | 10 +++++-----
 src/symtab.h         |  2 +-
 12 files changed, 61 insertions(+), 57 deletions(-)

-- 
2.21.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.