New Code!
Discount has been pushed up to version 2.2.1 after a short round of bug & documentation fixes, followed by forgetting about it for a few months to see if anything would explode messily on me.
Version 2.2.1 has the following updates:
- Update the muñoz test case for a text fragment with an 0xff
- Kludge
peek()
andpoke()
to not sign extend on machines with signed chars, so a 0xff character will not sign extend and become an EOF. This breaks a test in muñoz.t (which tripped the 0xff becomes EOF bug) so that test needed to be rewritten. - Have
configure.sh
not do theWinDef.h
short circuit - include
"config.h"
to pick up the definition ofDWORD/WORD/BYTE
(windows support) & add a new label field for better TOC label generation - Wasn’t updating
config.sub
with {scalar_type}->{scalar_type} on windows machines. - Tweak
mkd_xmlpage()
so that it only uses the published interface. - Eat one of the two remaining flag bits (64-bin
flag_t
, here we come!) to make LaTeX support a runtime flag. - Add some missing dependencies to the makefile
- In makepage, I was using the wrong argument for the file to make
a page from. needed to check for
argc > 0
&argv[0]
(after shifting argc/argv by optind) but was checkingargc > 1
&argv[1]
, which was something less than useful. - Strip out
--enable-all-features
fromconfigure.sh
(obsolete now after the mass conversion of features from compile-time to run-time.) - Add
config.h
to the includes for amalloc (for the if#define
to make clang stfu)
Thanks to me spacing out on the changes for several months, this code has been pretty heavily used on this weblog without exploding in any amusingly horrible fashion. So it’s probably safe. It’s getting really close to that horrible day when I have to basically toss backwards compatibility out the window (I have one free slot on my 32 bit flag_t, and when that fills I have to either go to a 64 bit flag scalar or toss bit flags in favor of a packed flag structure) but that day is not today.
So try it! And let me know if your development machine spontaneously turns into a toad!