[BACK]Return to real0.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / if

File: [cvsweb.bsd.lv] / mandoc / regress / roff / if / Attic / real0.in (download)

Revision 1.1, Thu Jun 10 21:42:02 2010 UTC (13 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_12_1, VERSION_1_12_0, VERSION_1_11_7, VERSION_1_11_6, VERSION_1_11_5, VERSION_1_11_4, VERSION_1_11_3, VERSION_1_11_2, VERSION_1_11_1, VERSION_1_10_9, VERSION_1_10_8, VERSION_1_10_7, VERSION_1_10_6, VERSION_1_10_5_PREPDF, VERSION_1_10_5, VERSION_1_10_4, VERSION_1_10_3, VERSION_1_10_2, VERSION_1_10_10

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.

.Dd June 9, 2010
.Dt TITLE 1
.Os
.Sh NAME
.Nm test
.Nd test
.Sh SYNOPSIS
foo
.Sh DESCRIPTION
to polar
.if n\
(r,theta)
.if t\
(r,\(*h)
coordinates 
.if n\
r\(**cos theta
.if t\
r\(**cos\(*h
and y =
.if n\
r\(**sin theta.
.if t\
r\(**sin\(*h.
These 
.if n \
(r=0,theta=0).
.if t \
(r=0,\(*h=0).
In