release 0.4 (20130713)
- Fix stupid build problem introduced in 0.3.1.
- Accept and ignore -m32, which imake issues willy-nilly on a bunch
of platforms. I thought this had already been done, but apparently
not.
- Don't use the <err.h> functions. There are still people out there
using legacy systems missing them.
- Sort out some more issues pertaining to handling quoted strings.
- Add some more tests.
There must be something wrong with netbsd's headers, as none of
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <err.h>
ought to leak in stdarg.h, but apparently one is.
release 0.3.1 (20130709)
- Don't leak memory and assert if a bad command-line option comes
after a -D or a -include foo.
- Since imake is a principal application for tradcpp and imake carefully
hides what it's doing when you run it, when rejecting an invalid option
be sure to report *what* that option is.
release 0.3 (20130616)
- Don't eval the control expression of the first #if of a block when
already in a false block; it might not be valid. Reported by
Baptiste Daroussin.
- Don't recognize comments within character constants.
- Don't recognize macro argument parentheses or commas within strings,
or within character constants either.
release 0.2 (20130611)
- auto-recognize more builtin PowerPC and mips macros
- pass -Wunused (partly from Baptiste Daroussin)
- allow absolute paths in include files (partly from Baptiste Daroussin)
- don't use getprogname() in the name of portability
- add tests arising from December 2010 tech-toolchain thread (one
from der Mouse, one of mine)
- clean out usage of sys/cdefs.h macros and don't use the implementation
namespace
- make -Wcomment work again
- fix handling of relative includes
- provide a man page
- other minor improvements
tradcpp is a traditional (K&R-style) preprocessor.
It has the particular property that it doesn't (for the most part)
trash whitespace, so it can be used on makefiles.
This is only release 0.1; it is missing some features and doubtless
has quite a few bugs, but it's capable of building at least some
packages when used with imake.
Written by yours truly with some patches from Joerg.