[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/5] Support building bison with MSVC
From: |
Akim Demaille |
Subject: |
Re: [PATCH 0/5] Support building bison with MSVC |
Date: |
Fri, 31 Jul 2020 08:05:37 +0200 |
Hi Anonymous Maarten,
Is this really the name I should use to refer to you, in the commit
messages and in THANKS?
Thanks for the report and fixes!
> Le 30 juil. 2020 à 20:53, anonymous.maarten@gmail.com a écrit :
>
> 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].
That's great. I was unaware there was a recipe for Bison.
> 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.
Grr. I'm very unhappy with these constraints. Where are they coming
from? Why don't we get rid of these spurious symbols instead?
For instance in the case of max, NOMINMAX should get rid of it, doesn't it?
What's the path of inclusion of headers that brings these guys? Where
is CHAR coming from? I guess it's a macro, so we should be able to undef
it, right?
> 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.
It appears there is. I'm looking into this right now.
Cheers!
- [PATCH 0/5] Support building bison with MSVC, anonymous . maarten, 2020/07/30
- [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 <=