summaryrefslogtreecommitdiffstats
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-24 23:12:33 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-24 23:12:33 +0000
commitf5133ff5de286c3849ba772719280fcec35ca374 (patch)
treed010611a454ce17650edf5bc7d26c9d237d10c00 /mandoc.h
parent0278f391fed9ab1da96a2f7737b052872f5ced71 (diff)
downloadmandoc-f5133ff5de286c3849ba772719280fcec35ca374.tar.gz
Rudimentary implementation of the roff(7) .while request.
Needed for example by groff_hdtbl(7). There are two limitations: It does not support nested .while requests yet, and each .while loop must start and end in the same scope. The roff_parseln() return codes are now more flexible and allow OR'ing options.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mandoc.h b/mandoc.h
index e618d97a..38733dc4 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -228,6 +228,10 @@ enum mandocerr {
MANDOCERR_TOOLARGE, /* input too large */
MANDOCERR_CHAR_UNSUPP, /* unsupported control character: number */
MANDOCERR_REQ_UNSUPP, /* unsupported roff request: request */
+ MANDOCERR_WHILE_NEST, /* nested .while loops */
+ MANDOCERR_WHILE_OUTOF, /* end of scope with open .while loop */
+ MANDOCERR_WHILE_INTO, /* end of .while loop in inner scope */
+ MANDOCERR_WHILE_FAIL, /* cannot continue this .while loop */
MANDOCERR_TBLOPT_EQN, /* eqn delim option in tbl: arg */
MANDOCERR_TBLLAYOUT_MOD, /* unsupported tbl layout modifier: m */
MANDOCERR_TBLMACRO, /* ignoring macro in table: macro */