diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-03-23 11:25:25 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-03-23 11:25:25 +0000 |
commit | f40dcc7e2054a99977d444c5fa36868fba2c3f36 (patch) | |
tree | c8afef4d61b8627cc3dd4afa60978cec91753911 /mdoc_man.c | |
parent | 119d1dcb94c6593777a29408f57b0568ec13482b (diff) | |
download | mandoc-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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]; |