From 16ee2910b2d5d0fad6b303e92efff26c0543db03 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 23 Apr 2015 16:17:44 +0000 Subject: 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. --- mdoc.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'mdoc.h') 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 -- cgit