[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch to allow compilation with old compilers (VS 2008)
From: |
Simon Sobisch |
Subject: |
Patch to allow compilation with old compilers (VS 2008) |
Date: |
Tue, 18 Sep 2018 16:34:17 +0200 |
VS 2008 is one of the "old" compilers that only allow declarations
directly on the start of a block.
Different sources found in bison 3.1 were obviously adjusted for this
already, the attached patch fixes the missing parts.
The code was verified to raise no new warnings during compilation and
to pass the testsuite on GNU/Linux with GCC 4.1.2.
Other tests including valgrind were not run.
Regards,
Simon
Note: I've also attached a patch for "lib/stat.c" and "lib/stat-w32.c"
which is included in the bison distribtion but isn't part of the bison
project. It was also sent to its original author to be possibly
included "upstream".
bison_31_old_compilers.patch
Description: Binary data
stat_old_compilers.patch
Description: Binary data
- Patch to allow compilation with old compilers (VS 2008),
Simon Sobisch <=
- Re: Patch to allow compilation with old compilers (VS 2008), Akim Demaille, 2018/09/18
- Re: Patch to allow compilation with old compilers (VS 2008), Paul Eggert, 2018/09/18
- Excplict document and check for C99 compiler (Was: Patch to allow compilation with old compilers (VS 2008)), Simon Sobisch, 2018/09/18
- Re: Excplict document and check for C99 compiler (Was: Patch to allow compilation with old compilers (VS 2008)), Paul Eggert, 2018/09/18
- Re: Excplict document and check for C99 compiler (Was: Patch to allow compilation with old compilers (VS 2008)), Simon Sobisch, 2018/09/18
- Re: Excplict document and check for C99 compiler (Was: Patch to allow compilation with old compilers (VS 2008)), Paul Eggert, 2018/09/18
- Re: Excplict document and check for C99 compiler (Was: Patch to allow compilation with old compilers (VS 2008)), Simon Sobisch, 2018/09/18
- Re: Excplict document and check for C99 compiler (Was: Patch to allow compilation with old compilers (VS 2008)), Paul Eggert, 2018/09/18