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. --- mdoc.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'mdoc.h') diff --git a/mdoc.h b/mdoc.h index ad2ef3ac..4b3aa654 100644 --- a/mdoc.h +++ b/mdoc.h @@ -1,4 +1,4 @@ -/* $Id: mdoc.h,v 1.138 2015/04/02 22:48:17 schwarze Exp $ */ +/* $Id: mdoc.h,v 1.139 2015/04/02 23:48:19 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014, 2015 Ingo Schwarze @@ -172,16 +172,6 @@ enum mdocargt { MDOC_ARG_MAX }; -struct mdoc_meta { - char *msec; /* `Dt' section (1, 3p, etc.) */ - char *vol; /* `Dt' volume (implied) */ - char *arch; /* `Dt' arch (i386, etc.) */ - char *date; /* `Dd' normalised date */ - char *title; /* `Dt' title (FOO, etc.) */ - char *os; /* `Os' system (OpenBSD, etc.) */ - char *name; /* leading `Nm' name */ -}; - /* * An argument to a macro (multiple values = `-column xxx yyy'). */ @@ -295,7 +285,7 @@ __BEGIN_DECLS struct mdoc; const struct roff_node *mdoc_node(const struct mdoc *); -const struct mdoc_meta *mdoc_meta(const struct mdoc *); +const struct roff_meta *mdoc_meta(const struct mdoc *); void mdoc_deroff(char **, const struct roff_node *); __END_DECLS -- cgit v1.2.3-56-ge451