aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.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
commitb515ea6c4c885e69aebc0e97046ef428a4c9903d (patch)
tree01890e4390df99040aec3987328c4b8c62613c9a /man.h
parent9aa3298c8841b1d552b53f1c900c0409fad69543 (diff)
downloadmandoc-b515ea6c4c885e69aebc0e97046ef428a4c9903d.tar.gz
mandoc-b515ea6c4c885e69aebc0e97046ef428a4c9903d.tar.zst
mandoc-b515ea6c4c885e69aebc0e97046ef428a4c9903d.zip
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 'man.h')
-rw-r--r--man.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/man.h b/man.h
index 9e77eee4..249fbf94 100644
--- a/man.h
+++ b/man.h
@@ -1,4 +1,4 @@
-/* $Id: man.h,v 1.74 2015/04/18 17:53:21 schwarze Exp $ */
+/* $Id: man.h,v 1.75 2015/04/23 16:17:44 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -64,6 +64,5 @@ __BEGIN_DECLS
struct roff_man;
const struct mparse *man_mparse(const struct roff_man *);
-void man_deroff(char **, const struct roff_node *);
__END_DECLS