summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/preconv.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2018-12-13 11:55:15 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2018-12-13 11:55:15 +0000
commit0fa8e821432dd6cc1d2501a630d98df5a1aaa801 (patch)
tree9e9eaedba025f2a90b90593396197aed441be734 /usr.bin/mandoc/preconv.c
parent51c4953491e90121a5704ee639e7e84874a6263c (diff)
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/preconv.c')
-rw-r--r--usr.bin/mandoc/preconv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/mandoc/preconv.c b/usr.bin/mandoc/preconv.c
index 43a1e2d4eae..2cbdcda86fd 100644
--- a/usr.bin/mandoc/preconv.c
+++ b/usr.bin/mandoc/preconv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: preconv.c,v 1.8 2017/02/18 13:43:34 schwarze Exp $ */
+/* $OpenBSD: preconv.c,v 1.9 2018/12/13 11:55:14 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -20,7 +20,10 @@
#include <assert.h>
#include <stdio.h>
#include <string.h>
+
#include "mandoc.h"
+#include "roff.h"
+#include "mandoc_parse.h"
#include "libmandoc.h"
int