From 24719645e5444a6acaeb47260a958a471c5eeffe Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 18 Apr 2015 17:01:58 +0000 Subject: 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. --- man.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'man.c') diff --git a/man.c b/man.c index 105dd9c1..f2ee0c18 100644 --- a/man.c +++ b/man.c @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.154 2015/04/18 16:34:25 schwarze Exp $ */ +/* $Id: man.c,v 1.155 2015/04/18 17:01:58 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2013, 2014, 2015 Ingo Schwarze @@ -101,8 +101,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; -- cgit v1.2.3