summaryrefslogtreecommitdiffstats
path: root/regress/roff/cond/string.in
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
commitf47c24ce5479036f4e05569d948d51dbebcb1f9d (patch)
treebd0d1c73aad4e3919635064f8a112b2b14ff9297 /regress/roff/cond/string.in
parent57f77c200a922cb0605b19e4b87d3c8931dd568a (diff)
downloadmandoc-f47c24ce5479036f4e05569d948d51dbebcb1f9d.tar.gz
implement the roff(7) d (macro or string defined) conditional
Diffstat (limited to 'regress/roff/cond/string.in')
-rw-r--r--regress/roff/cond/string.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/regress/roff/cond/string.in b/regress/roff/cond/string.in
new file mode 100644
index 00000000..6d19f4ce
--- /dev/null
+++ b/regress/roff/cond/string.in
@@ -0,0 +1,29 @@
+.TH STRING 1 "June 14, 2017" OpenBSD
+.SH NAME
+string \- conditional testing whether a string is defined
+.SH DESCRIPTION
+.ie d mystr OOPS
+.el mystr not yet defined
+.br
+.ds mystr mystrval
+.ie d mystr now defined
+.el OOPS
+.if !d mystr OOPS
+.PP
+.ie d mymac OOPS
+.el mymac not yet defined
+.br
+.de mymac
+mymacval
+..
+.ie dmymac now defined
+.el OOPS
+.if !d mymac OOPS
+.PP
+.ie d myren OOPS
+.el myren not yet defined
+.br
+.rn SM myren
+.ie d myren now defined
+.el OOPS
+.if !d myren OOPS