diff options
author | 2015-04-18 17:01:28 +0000 | |
---|---|---|
committer | 2015-04-18 17:01:28 +0000 | |
commit | d0370668322cbf45b938a798af8c4419af3d3eeb (patch) | |
tree | 39fa61774eac36e953c83191cc9296886e145095 /usr.bin/mandoc/man.c | |
parent | Profit from the unified struct roff_man and reduce the number of (diff) | |
download | wireguard-openbsd-d0370668322cbf45b938a798af8c4419af3d3eeb.tar.xz wireguard-openbsd-d0370668322cbf45b938a798af8c4419af3d3eeb.zip |
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.
Diffstat (limited to 'usr.bin/mandoc/man.c')
-rw-r--r-- | usr.bin/mandoc/man.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/mandoc/man.c b/usr.bin/mandoc/man.c index 010590b415e..62c0faea752 100644 --- a/usr.bin/mandoc/man.c +++ b/usr.bin/mandoc/man.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man.c,v 1.102 2015/04/18 16:34:03 schwarze Exp $ */ +/* $OpenBSD: man.c,v 1.103 2015/04/18 17:01:28 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -99,8 +99,6 @@ man_alloc(struct roff *roff, struct mparse *parse, struct roff_man *p; p = mandoc_calloc(1, sizeof(*p)); - - man_hash_init(); p->parse = parse; p->defos = defos; p->quick = quick; |