Move mdoc_hash_init() and man_hash_init() to libmandoc.h
authorschwarze <schwarze@openbsd.org>
Sat, 18 Apr 2015 17:01:28 +0000 (17:01 +0000)
committerschwarze <schwarze@openbsd.org>
Sat, 18 Apr 2015 17:01:28 +0000 (17:01 +0000)
commitd0370668322cbf45b938a798af8c4419af3d3eeb
tree39fa61774eac36e953c83191cc9296886e145095
parentf2d5c70933d788f87cf68e835e3bfc2b6d14c1c5
Move mdoc_hash_init() and man_hash_init() to libmandoc.h
and call them from mparse_alloc() and choose_parser(),
preparing unified allocation of struct roff_man.
usr.bin/mandoc/libman.h
usr.bin/mandoc/libmandoc.h
usr.bin/mandoc/libmdoc.h
usr.bin/mandoc/man.c
usr.bin/mandoc/man_hash.c
usr.bin/mandoc/mdoc.c
usr.bin/mandoc/mdoc_hash.c
usr.bin/mandoc/read.c