diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-02 23:48:19 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-02 23:48:19 +0000 |
commit | 56db51154e503662dc8c9cfed83c0bc0172a3f82 (patch) | |
tree | 95b7ad594c05dbe72ec6e2c2cec8bbbc787bcb47 /roff.h | |
parent | 8a1e7c36cb8b9ca64c677d1ff9d786c9e46fd7b0 (diff) | |
download | mandoc-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.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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. */ +}; |