aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/demandoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-18 17:53:21 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-18 17:53:21 +0000
commit28e0682df89260767e1ad5a3af0b93e504ae5290 (patch)
treee1bd4cc5ee13a989fdaa752597ae30a9a5710491 /demandoc.c
parentacfef3c388fe4c84eaad68e8f398c7873f1bb732 (diff)
downloadmandoc-28e0682df89260767e1ad5a3af0b93e504ae5290.tar.gz
mandoc-28e0682df89260767e1ad5a3af0b93e504ae5290.tar.zst
mandoc-28e0682df89260767e1ad5a3af0b93e504ae5290.zip
Delete the wrapper functions mdoc_meta(), man_meta(), mdoc_node(),
man_node() from the mandoc(3) semi-public interface and the internal wrapper functions print_mdoc() and print_man() from the HTML formatters. Minus 60 lines of code, no functional change.
Diffstat (limited to 'demandoc.c')
-rw-r--r--demandoc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demandoc.c b/demandoc.c
index d4667c48..a51c8cca 100644
--- a/demandoc.c
+++ b/demandoc.c
@@ -1,4 +1,4 @@
-/* $Id: demandoc.c,v 1.19 2015/04/18 16:34:25 schwarze Exp $ */
+/* $Id: demandoc.c,v 1.20 2015/04/18 17:53:21 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -121,9 +121,9 @@ pmandoc(struct mparse *mp, int fd, const char *fn, int list)
if (man == NULL)
return;
if (man->macroset == MACROSET_MDOC)
- pmdoc(mdoc_node(man), &line, &col, list);
+ pmdoc(man->first->child, &line, &col, list);
else
- pman(man_node(man), &line, &col, list);
+ pman(man->first->child, &line, &col, list);
if ( ! list)
putchar('\n');