summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mandoc_aux.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add some missing OpenBSD RCS markersschwarze2014-11-281-1/+1
| | | | and a few missing <sys/types.h> inclusions; no code change.
* remove unneccessary inclusion protection; ok schwarzederaadt2014-11-271-5/+1
|
* Audit malloc(3)/calloc(3)/realloc(3) usage.schwarze2014-04-231-1/+2
| | | | | | | * Change eight reallocs to reallocarray to be safe from overflows. * Change one malloc to reallocarray to be safe from overflows. * Change one calloc to reallocarray, no zeroing needed. * Change the order of arguments of three callocs (aesthetical).
* avoid repetitive code for asprintf error handlingschwarze2014-03-211-1/+3
|
* The files mandoc.c and mandoc.h contained both specialised low-levelschwarze2014-03-211-0/+30
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.