New Code!
Discount has gone up to version 1.5.6 because of a bug report, an discrepancy against the reference implementation, and some documentation fixes (contributed by Josh Wood).
- The bug report was that
bzero()
doesn’t exist on ms-dos(mingw) systems. Andconfigure.sh
wasn’t catching it because it didn’t look for it. So I’ve added a test forbzero()
ormemset()
, which I then don’t even use because I rewrote the part of the code that usesbzero()
to usememset()
instead. - The discrepancy was how I handled paragraphs that contained words like
<foo
; the reference implementation will either expand<foo
to<foo
(no trailing>
) or will treat everything between the leading<
and the next>
as an html tag. I was taking a leading<foo
as the start of a tag even if there wasn’t a closing>
, and, worse yet I was protecting the output by quoting special characters inside the tag instead of just dumping them out out as the reference implementation does. - And the documentation fixes fix the documentation for some of the prototypes in
markdown.3
It’s pretty trivial, but it fixes some bugs and bizarre conditions. So it’s the New Code! that you want, if petty things like correctness are of interest to you.