diff options
| author | 2014-03-21 22:17:01 +0000 | |
|---|---|---|
| committer | 2014-03-21 22:17:01 +0000 | |
| commit | 4f4f79723381956171ed166e137dcb03c9782797 (patch) | |
| tree | 6fc260b9c8d72d494c27492d5fdd2332aa9694c0 /usr.bin/mandoc/mdoc_man.c | |
| parent | Keep the `clamp memory to what pmap can address' logic unconditional, and (diff) | |
| download | wireguard-openbsd-4f4f79723381956171ed166e137dcb03c9782797.tar.xz wireguard-openbsd-4f4f79723381956171ed166e137dcb03c9782797.zip | |
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 'usr.bin/mandoc/mdoc_man.c')
| -rw-r--r-- | usr.bin/mandoc/mdoc_man.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c index f4647974021..f33f8d1b354 100644 --- a/usr.bin/mandoc/mdoc_man.c +++ b/usr.bin/mandoc/mdoc_man.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.58 2014/01/24 11:56:34 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.59 2014/03/21 22:17:01 schwarze Exp $ */ /* * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> * @@ -19,6 +19,7 @@ #include <string.h> #include "mandoc.h" +#include "mandoc_aux.h" #include "out.h" #include "man.h" #include "mdoc.h" @@ -457,7 +458,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]; @@ -509,7 +510,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]; |
