aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.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 /roff.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 'roff.h')
-rw-r--r--roff.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/roff.h b/roff.h
index cf29d6d1..750ccbe2 100644
--- a/roff.h
+++ b/roff.h
@@ -157,3 +157,9 @@ struct roff_man {
enum roff_sec lastnamed; /* Last standard section seen. */
enum roff_next next; /* Where to put the next node. */
};
+
+__BEGIN_DECLS
+
+void deroff(char **, const struct roff_node *);
+
+__END_DECLS