From 7355c805552e6fc47e10d976711b6169f0f3c0e0 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.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mdoc.c') diff --git a/mdoc.c b/mdoc.c index 055babd8..44678358 100644 --- a/mdoc.c +++ b/mdoc.c @@ -7,9 +7,9 @@ * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF @@ -102,7 +102,7 @@ mdoc_node(const struct mdoc *mdoc) return(mdoc->first); } -const struct mdoc_meta * +const struct roff_meta * mdoc_meta(const struct mdoc *mdoc) { @@ -134,7 +134,7 @@ static void mdoc_alloc1(struct mdoc *mdoc) { - memset(&mdoc->meta, 0, sizeof(struct mdoc_meta)); + memset(&mdoc->meta, 0, sizeof(mdoc->meta)); mdoc->flags = 0; mdoc->lastnamed = mdoc->lastsec = SEC_NONE; mdoc->last = mandoc_calloc(1, sizeof(*mdoc->last)); -- cgit