summaryrefslogtreecommitdiffstats
path: root/manpath.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-10-05 22:25:12 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-10-05 22:25:12 +0000
commitf62813aec818d1bcaed673a7433a6d984db22a1c (patch)
tree0132d7a478a99b9c8441e3dfa577d14b9acc32ca /manpath.c
parent42f5a4cc132dc305b6ded5b24570986d7e25a176 (diff)
downloadmandoc-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 'manpath.c')
0 files changed, 0 insertions, 0 deletions