summaryrefslogtreecommitdiffstats
path: root/roff.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-18 16:34:25 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-18 16:34:25 +0000
commit19dfb5cab356150bf46d159f43ead732a6a6ade5 (patch)
tree79243b72064d2dfc284d040592d6f69b6a983ad7 /roff.h
parent87a05fb3c50ab6e9a1befb22c6e63e3e47f571f3 (diff)
downloadmandoc-19dfb5cab356150bf46d159f43ead732a6a6ade5.tar.gz
Profit from the unified struct roff_man and reduce the number of
arguments of mparse_result() by one. No functional change. Written on the ICE Bruxelles-Koeln on the way back from p2k15.
Diffstat (limited to 'roff.h')
-rw-r--r--roff.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/roff.h b/roff.h
index a73b523a..fd73ad73 100644
--- a/roff.h
+++ b/roff.h
@@ -19,6 +19,12 @@
struct mdoc_arg;
union mdoc_data;
+enum roff_macroset {
+ MACROSET_NONE = 0,
+ MACROSET_MDOC,
+ MACROSET_MAN
+};
+
enum roff_sec {
SEC_NONE = 0,
SEC_NAME,
@@ -145,6 +151,7 @@ struct roff_man {
#define MAN_BLINE (1 << 12) /* Next-line block scope. */
#define MAN_LITERAL MDOC_LITERAL
#define MAN_NEWLINE MDOC_NEWLINE
+ enum roff_macroset macroset; /* Kind of high-level macros used. */
enum roff_sec lastsec; /* Last section seen. */
enum roff_sec lastnamed; /* Last standard section seen. */
enum roff_next next; /* Where to put the next node. */