summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2013-10-04 02:01:58 +0000
committerschwarze <schwarze@openbsd.org>2013-10-04 02:01:58 +0000
commit541e3395212e61ea26a4ad0ad8d55b376dd748c4 (patch)
tree03b02c4c48cecadbef2cbd7ab74a41ba0f68a4a1 /lib/libc
parentsync (diff)
downloadwireguard-openbsd-541e3395212e61ea26a4ad0ad8d55b376dd748c4.tar.xz
wireguard-openbsd-541e3395212e61ea26a4ad0ad8d55b376dd748c4.zip
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 'lib/libc')
0 files changed, 0 insertions, 0 deletions