2002-02-18 address@hidden
changes needed to build bison-1.33-win32 using Visual C++
command line tools only.
CHANGED FILES:
src\files.c
a local variable was declared 'const', but then used
as non-const. fixed to use a temporary non-const.
src\state.h
the macro 'CORE_ALLOC' subtracted 1 from zero when dealing
with unsigned integers. this caused a compilation warning on
win32, but may have resulted in huge allocations on other
systems. proper fix should be implemented by original
author (Akim Demaille
), but meanwhile, assume
CORE_ALLOC(0) means no elements wanted, rather than 'allocate
entire virtual memory area, and then some more'.
src\system.h
is needed on Win32 systems for the operation of
'access(filename,mode)'. changed the check for 'MSDOS'
to include '_WIN32' as well.
lib\quotearg.c
code assumes that 'iswprint' cannot be defined if HAVE_MBRTOWC
is not defined. i am unsure of the correct way to fix this,
since defining HAVE_MBRTOWC is not correct for Win32, and
Win32 has iswprint defined. changed code to only define iswprint
if it is not already defined, which should be safe on all systems.
NEW FILES:
win32\config.h
config.h for Win32 systems. if you use a compiler other than
visual C++, you may have to tweak it.
win32\makefile
makefile for MS' nmake program. to build bison 1.33-win32,
just type nmake when in the 'win32' subdir.
win32\w32bison.c
contains a modified main() to ensure that bison looks for
bison.hairy and bison.simple in the place given by the
environment variable 'BISON'.