diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-10-05 22:25:12 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-10-05 22:25:12 +0000 |
commit | f62813aec818d1bcaed673a7433a6d984db22a1c (patch) | |
tree | 0132d7a478a99b9c8441e3dfa577d14b9acc32ca /mandocdb.c | |
parent | 42f5a4cc132dc305b6ded5b24570986d7e25a176 (diff) | |
download | mandoc-f62813aec818d1bcaed673a7433a6d984db22a1c.tar.gz |
Support simple numerical conditions.
Original code from Christos Zoulas, NetBSD rev. 1.11-1.13, April 3, 2013.
I tweaked the code as follows:
* In roff_getnum(), don't skip a minus that isn't followed by a digit.
* In roff_getop(), do not handle "!=", groff doesn't support it either.
* In roff_evalcond(), treat negative numbers as false, like groff.
Besides, make the interfaces of roff_getnum() and roff_getop() more
similar to each other and simplify parts of the code a bit.
Diffstat (limited to 'mandocdb.c')
0 files changed, 0 insertions, 0 deletions