diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-18 16:34:25 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-18 16:34:25 +0000 |
commit | 19dfb5cab356150bf46d159f43ead732a6a6ade5 (patch) | |
tree | 79243b72064d2dfc284d040592d6f69b6a983ad7 /roff.h | |
parent | 87a05fb3c50ab6e9a1befb22c6e63e3e47f571f3 (diff) | |
download | mandoc-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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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. */ |