Fix adding some minimal intelligence to conditional parser. See roff.7
authorKristaps Dzonsons <kristaps@bsd.lv>
Thu, 10 Jun 2010 21:42:02 +0000 (21:42 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Thu, 10 Jun 2010 21:42:02 +0000 (21:42 +0000)
commit151317239c987cf45872d3ee4ec105feb30ddcc9
treea174ca825d0104808fab8d5aaaf3c01fc2bf45f1
parentf9e4d0ae086987ed162fde69bc3ae4c3048ff293
Fix adding some minimal intelligence to conditional parser.  See roff.7
for what's supported.  This simplified the roff_cond() function quite
nicely.  From a bug report by uqs@.

Added regression test based on bug-report example by uqs@.

Also added ROFF_DEBUG to see what the hell the parser is actually doing.
Obviously turned off by default.
regress/roff/if/real0.in [new file with mode: 0644]
roff.7
roff.c