From 56db51154e503662dc8c9cfed83c0bc0172a3f82 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 2 Apr 2015 23:48:19 +0000 Subject: 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. --- roff.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'roff.h') 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. */ +}; -- cgit v1.2.3