summaryrefslogtreecommitdiffstats
path: root/mdoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-23 16:17:44 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-23 16:17:44 +0000
commit16ee2910b2d5d0fad6b303e92efff26c0543db03 (patch)
tree83bd6cef6324bc9f9a440072d5a4d594703e057a /mdoc.h
parent48b896d8e54fb00900d8be7283d92985cdcdb0f5 (diff)
downloadmandoc-16ee2910b2d5d0fad6b303e92efff26c0543db03.tar.gz
Unify mdoc_deroff() and man_deroff() into a common function deroff().
No functional change except that for mdoc(7), it now skips leading escape sequences just like it already did for man(7). Escape sequences rarely occur in mdoc(7) code and if they do, skipping them is an improvement in this context. Minus 30 lines of code.
Diffstat (limited to 'mdoc.h')
-rw-r--r--mdoc.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/mdoc.h b/mdoc.h
index b73b99a6..e1abc40f 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -279,11 +279,3 @@ extern const char *const *mdoc_macronames;
/* Names of macro args. Index is enum mdocargt. */
extern const char *const *mdoc_argnames;
-
-__BEGIN_DECLS
-
-struct roff_man;
-
-void mdoc_deroff(char **, const struct roff_node *);
-
-__END_DECLS