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 | 7355c805552e6fc47e10d976711b6169f0f3c0e0 (patch) | |
tree | 8ad95f5fc9d0dbda235694991290ea83f7484abe /roff.h | |
parent | 9e6e3b6be0e9ffe29cf4876ce0b7ded2c3c386b9 (diff) | |
download | mandoc-7355c805552e6fc47e10d976711b6169f0f3c0e0.tar.gz |
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. */ +}; |