summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/libmdoc.h
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2018-12-31 04:55:42 +0000
committerschwarze <schwarze@openbsd.org>2018-12-31 04:55:42 +0000
commit83d65a5a1d86e881d4ff0eecde80e9fbb01a7d35 (patch)
treec342f04814fc90f377e9652f6a7a7df11cb0dbcb /usr.bin/mandoc/libmdoc.h
parentmention -mretpoline by default on amd64 (diff)
downloadwireguard-openbsd-83d65a5a1d86e881d4ff0eecde80e9fbb01a7d35.tar.xz
wireguard-openbsd-83d65a5a1d86e881d4ff0eecde80e9fbb01a7d35.zip
Cleanup, minus 15 LOC, no functional change:
Simplify the way the man(7) and mdoc(7) validators are called. Reset the parser state with a common function before calling them. There is no need to again reset the parser state afterwards, the parsers are no longer used after validation. This allows getting rid of man_node_validate() and mdoc_node_validate() as separate functions.
Diffstat (limited to 'usr.bin/mandoc/libmdoc.h')
-rw-r--r--usr.bin/mandoc/libmdoc.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/mandoc/libmdoc.h b/usr.bin/mandoc/libmdoc.h
index 0f3a241ae2b..4cdea3160aa 100644
--- a/usr.bin/mandoc/libmdoc.h
+++ b/usr.bin/mandoc/libmdoc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: libmdoc.h,v 1.87 2018/12/30 00:48:47 schwarze Exp $ */
+/* $OpenBSD: libmdoc.h,v 1.88 2018/12/31 04:55:42 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -74,9 +74,7 @@ void mdoc_tail_alloc(struct roff_man *, int, int,
enum roff_tok);
struct roff_node *mdoc_endbody_alloc(struct roff_man *, int, int,
enum roff_tok, struct roff_node *);
-void mdoc_node_validate(struct roff_man *);
void mdoc_state(struct roff_man *, struct roff_node *);
-void mdoc_state_reset(struct roff_man *);
const char *mdoc_a2arch(const char *);
const char *mdoc_a2att(const char *);
enum roff_sec mdoc_a2sec(const char *);