From b515ea6c4c885e69aebc0e97046ef428a4c9903d 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 | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'mdoc.h') diff --git a/mdoc.h b/mdoc.h index ddfd4e1e..30f60fab 100644 --- a/mdoc.h +++ b/mdoc.h @@ -1,4 +1,4 @@ -/* $Id: mdoc.h,v 1.141 2015/04/18 17:53:21 schwarze Exp $ */ +/* $Id: mdoc.h,v 1.142 2015/04/23 16:17:44 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014, 2015 Ingo Schwarze @@ -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 v1.2.3-56-ge451