summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/roff.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-04-18 16:34:04 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-04-18 16:34:04 +0000
commit7f5a971c67d6f29296dc382f491b457b8fd8f8b1 (patch)
tree2ef79dc7fd4323b28f53f1e990afab04b7675c27 /usr.bin/mandoc/roff.h
parent4acc328420d73769e9005abd2f350a67fe1e6ebc (diff)
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 'usr.bin/mandoc/roff.h')
-rw-r--r--usr.bin/mandoc/roff.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/mandoc/roff.h b/usr.bin/mandoc/roff.h
index efbeff97521..03bda5e403f 100644
--- a/usr.bin/mandoc/roff.h
+++ b/usr.bin/mandoc/roff.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: roff.h,v 1.13 2015/04/18 16:04:40 schwarze Exp $ */
+/* $OpenBSD: roff.h,v 1.14 2015/04/18 16:34:03 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -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. */