diff options
author | 2018-08-24 22:56:37 +0000 | |
---|---|---|
committer | 2018-08-24 22:56:37 +0000 | |
commit | b7f92c5facc9c63232c7c76c88de8493b7d1ca0e (patch) | |
tree | 4ab09c47b28c5362b82a6ee516d7edbac704c12f /usr.bin/mandoc/mandoc.h | |
parent | tweak previous; (diff) | |
download | wireguard-openbsd-b7f92c5facc9c63232c7c76c88de8493b7d1ca0e.tar.xz wireguard-openbsd-b7f92c5facc9c63232c7c76c88de8493b7d1ca0e.zip |
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 'usr.bin/mandoc/mandoc.h')
-rw-r--r-- | usr.bin/mandoc/mandoc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mandoc.h b/usr.bin/mandoc/mandoc.h index fad9c87e079..6b39fc056ee 100644 --- a/usr.bin/mandoc/mandoc.h +++ b/usr.bin/mandoc/mandoc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mandoc.h,v 1.193 2018/08/23 19:32:03 schwarze Exp $ */ +/* $OpenBSD: mandoc.h,v 1.194 2018/08/24 22:56:37 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2018 Ingo Schwarze <schwarze@openbsd.org> @@ -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 */ |