summaryrefslogtreecommitdiffstats
path: root/mdoc_man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-03-23 11:25:25 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-03-23 11:25:25 +0000
commitf40dcc7e2054a99977d444c5fa36868fba2c3f36 (patch)
treec8afef4d61b8627cc3dd4afa60978cec91753911 /mdoc_man.c
parent119d1dcb94c6593777a29408f57b0568ec13482b (diff)
downloadmandoc-f40dcc7e2054a99977d444c5fa36868fba2c3f36.tar.gz
The files mandoc.c and mandoc.h contained both specialised low-level
functions used for multiple languages (mdoc, man, roff), for example mandoc_escape(), mandoc_getarg(), mandoc_eos(), and generic auxiliary functions. Split the auxiliaries out into their own file and header. While here, do some #include cleanup.
Diffstat (limited to 'mdoc_man.c')
-rw-r--r--mdoc_man.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index d1d203e8..a6a9fa05 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -23,6 +23,7 @@
#include <string.h>
#include "mandoc.h"
+#include "mandoc_aux.h"
#include "out.h"
#include "man.h"
#include "mdoc.h"
@@ -461,7 +462,7 @@ print_offs(const char *v)
/*
* Set up the indentation for a list item; used from pre_it().
*/
-void
+static void
print_width(const char *v, const struct mdoc_node *child, size_t defsz)
{
char buf[24];
@@ -513,7 +514,7 @@ print_width(const char *v, const struct mdoc_node *child, size_t defsz)
TPremain = remain;
}
-void
+static void
print_count(int *count)
{
char buf[12];