[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/5] Support building bison with MSVC
From: |
anonymous . maarten |
Subject: |
[PATCH 0/5] Support building bison with MSVC |
Date: |
Thu, 30 Jul 2020 20:53:30 +0200 |
From: Anonymous Maarten <anonymous.maarten@gmail.com>
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
- [PATCH 0/5] Support building bison with MSVC,
anonymous . maarten <=
- [PATCH 3/5] Use INT_LITERAL instead of INT because MSVC defines INT, anonymous . maarten, 2020/07/30
- [PATCH 4/5] Use CHAR_LITERAL instead of CHAR because MSVC defines CHAR, anonymous . maarten, 2020/07/30
- [PATCH 1/5] Don't include sys/ioctl.h and termios.h on Windows, anonymous . maarten, 2020/07/30
- [PATCH 2/5] Use max_int instead of max because MSVC defines this symbol already, anonymous . maarten, 2020/07/30
- [PATCH 5/5] Rename accept to acceptsymbol because MSVC already defines this symbol, anonymous . maarten, 2020/07/30
- Re: [PATCH 0/5] Support building bison with MSVC, Akim Demaille, 2020/07/31