From 34d4ee2337055c6ee3b2c34dbcb0c4a24a7413d1 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 24 Apr 2017 23:06:17 +0000 Subject: Continue parser unification: * Make enum rofft an internal interface as enum roff_tok in "roff.h". * Represent mdoc and man macros in enum roff_tok. * Make TOKEN_NONE a proper enum value and use it throughout. * Put the prologue macros first in the macro tables. * Unify mdoc_macroname[] and man_macroname[] into roff_name[]. --- mandoc_headers.3 | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mandoc_headers.3') diff --git a/mandoc_headers.3 b/mandoc_headers.3 index a9130646..3f93a804 100644 --- a/mandoc_headers.3 +++ b/mandoc_headers.3 @@ -118,10 +118,13 @@ Provides .Vt enum roff_macroset , .Vt enum roff_next , .Vt enum roff_sec , +.Vt enum roff_tok , .Vt enum roff_type , .Vt struct roff_man , .Vt struct roff_meta , .Vt struct roff_node , +the constant array +.Va roff_name and the function .Fn deroff . .Pp @@ -272,6 +275,10 @@ from as opaque types for function prototypes. .It Qq Pa libmdoc.h Requires +.Qq Pa roff.h +for +.Vt enum roff_tok +and .Qq Pa mdoc.h for .Vt enum mdoc_* @@ -304,6 +311,10 @@ When this header is included, the same file should not include or .Pa libroff.h . .It Qq Pa libman.h +Requires +.Qq Pa roff.h +for +.Vt enum roff_tok . Provides .Vt struct man_macro and some functions internal to the -- cgit