summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/roff.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2018-12-13 11:55:14 +0000
committerschwarze <schwarze@openbsd.org>2018-12-13 11:55:14 +0000
commit99acaf1e5e2bb4b490dd3c7c4ff527b010a35fff (patch)
treeabe80332c00ecc4688f4771c6a34ad23022c7bde /usr.bin/mandoc/roff.c
parentfix printf statements when compiled with -DDEBUG. (diff)
downloadwireguard-openbsd-99acaf1e5e2bb4b490dd3c7c4ff527b010a35fff.tar.xz
wireguard-openbsd-99acaf1e5e2bb4b490dd3c7c4ff527b010a35fff.zip
Cleanup, no functional change:
Split the top level parser interface out of the utility header mandoc.h, into a new header mandoc_parse.h, for use in the main program and in the main parser only. Move enum mandoc_os into roff.h because struct roff_man is the place where it is stored. This allows removal of mandoc.h from seven files in low-level parsers and in formatters.
Diffstat (limited to 'usr.bin/mandoc/roff.c')
-rw-r--r--usr.bin/mandoc/roff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/roff.c b/usr.bin/mandoc/roff.c
index 037cf99192b..9e6dce3d421 100644
--- a/usr.bin/mandoc/roff.c
+++ b/usr.bin/mandoc/roff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: roff.c,v 1.220 2018/12/13 05:13:15 schwarze Exp $ */
+/* $OpenBSD: roff.c,v 1.221 2018/12/13 11:55:14 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -30,6 +30,7 @@
#include "mandoc_ohash.h"
#include "mandoc.h"
#include "roff.h"
+#include "mandoc_parse.h"
#include "libmandoc.h"
#include "roff_int.h"
#include "tbl_parse.h"