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 | 70a9dbd1a5a305812354c332d729472bd2c06561 (patch) | |
tree | 063eba43441d0af27e5bfb6e4db4bd1ce0c4e545 /roff.h | |
parent | 90913383a1a42f4ed3816d5206553df9db14e839 (diff) | |
download | mandoc-70a9dbd1a5a305812354c332d729472bd2c06561.tar.gz mandoc-70a9dbd1a5a305812354c332d729472bd2c06561.tar.zst mandoc-70a9dbd1a5a305812354c332d729472bd2c06561.zip |
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. */ |