Jilles Tjoelker 1767d529f2 sh: Simplify mksyntax and make it fit for cross-compiling.
Now it outputs fixed files, which use constants provided by the C standard
library to determine appropriate values for the target machine.

Before, mksyntax inspected the host machine which resulted in subtle
breakage if e.g. char is signed on the host and unsigned on the target such
as when cross-compiling on x86 for ARM.

Tested using -funsigned-char on amd64. Compiling build-tools without it and
sh itself with it causes various tests to fail without this change but not
with this change. With consistent -funsigned-char, tests pass with or
without this change.

The mksyntax program could be removed and syntax.c and syntax.h committed to
the repository.

Submitted by:	Christoph Mallon
MFC after:	2 weeks
2013-02-07 22:42:33 +00:00
..
2011-05-27 20:53:07 +00:00
2013-01-14 16:40:50 +00:00
2012-11-14 14:08:24 +00:00
2012-07-15 10:49:16 +00:00
2012-01-01 22:17:12 +00:00
2011-06-18 23:43:28 +00:00
2013-01-13 19:26:33 +00:00
2013-02-07 21:24:10 +00:00
2013-01-22 18:02:58 +00:00
2009-12-24 18:41:14 +00:00
2012-02-04 23:12:14 +00:00