aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-02 23:48:19 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-02 23:48:19 +0000
commit56db51154e503662dc8c9cfed83c0bc0172a3f82 (patch)
tree95b7ad594c05dbe72ec6e2c2cec8bbbc787bcb47 /roff.h
parent8a1e7c36cb8b9ca64c677d1ff9d786c9e46fd7b0 (diff)
downloadmandoc-56db51154e503662dc8c9cfed83c0bc0172a3f82.tar.gz
mandoc-56db51154e503662dc8c9cfed83c0bc0172a3f82.tar.zst
mandoc-56db51154e503662dc8c9cfed83c0bc0172a3f82.zip
Third step towards parser unification:
Replace struct mdoc_meta and struct man_meta by a unified struct roff_meta. Written of the train from London to Exeter on the way to p2k15.
Diffstat (limited to 'roff.h')
-rw-r--r--roff.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/roff.h b/roff.h
index 232100c8..42bc5615 100644
--- a/roff.h
+++ b/roff.h
@@ -104,3 +104,14 @@ struct roff_node {
enum roff_sec sec; /* Current named section. */
enum mdoc_endbody end; /* BODY */
};
+
+struct roff_meta {
+ char *msec; /* Manual section, usually a digit. */
+ char *vol; /* Manual volume title. */
+ char *os; /* Operating system. */
+ char *arch; /* Machine architecture. */
+ char *title; /* Manual title, usually CAPS. */
+ char *name; /* Leading manual name. */
+ char *date; /* Normalized date. */
+ int hasbody; /* Document is not empty. */
+};