aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.7
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-14 14:02:39 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-14 14:02:39 +0000
commit141881c887ec609a42b6025503a0082ee59cced0 (patch)
tree769552e2a43c2d4e8d362fa4ad1d4a349980c8a1 /roff.7
parentd7510635200bec5516c0a2f66d8a4fe42b453020 (diff)
downloadmandoc-141881c887ec609a42b6025503a0082ee59cced0.tar.gz
mandoc-141881c887ec609a42b6025503a0082ee59cced0.tar.zst
mandoc-141881c887ec609a42b6025503a0082ee59cced0.zip
implement the roff(7) d (macro or string defined) conditional
Diffstat (limited to 'roff.7')
-rw-r--r--roff.713
1 files changed, 10 insertions, 3 deletions
diff --git a/roff.7 b/roff.7
index 85c5d6eb..f4c1df73 100644
--- a/roff.7
+++ b/roff.7
@@ -1,4 +1,4 @@
-.\" $Id: roff.7,v 1.89 2017/06/14 13:00:31 schwarze Exp $
+.\" $Id: roff.7,v 1.90 2017/06/14 14:02:39 schwarze Exp $
.\"
.\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2010,2011,2013-2015,2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -1045,8 +1045,6 @@ If the first character of
is
.Sq c
.Pq character available ,
-.Sq d
-.Pq string defined ,
.Sq e
.Pq even page ,
.Sq t
@@ -1059,6 +1057,15 @@ it evaluates to false.
If the first character of
.Ar condition
is
+.Sq d ,
+it evaluates to true if the rest of
+.Ar condition
+is the name of an existing user defined macro or string;
+otherwise, it evaluates to false.
+.It
+If the first character of
+.Ar condition
+is
.Sq r ,
it evaluates to true if the rest of
.Ar condition