diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-18 17:01:58 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-18 17:01:58 +0000 |
commit | 24719645e5444a6acaeb47260a958a471c5eeffe (patch) | |
tree | c81b110c1963e76c1b017df27cbee7ab8c2dad23 /mdoc.c | |
parent | 70a9dbd1a5a305812354c332d729472bd2c06561 (diff) | |
download | mandoc-24719645e5444a6acaeb47260a958a471c5eeffe.tar.gz mandoc-24719645e5444a6acaeb47260a958a471c5eeffe.tar.zst mandoc-24719645e5444a6acaeb47260a958a471c5eeffe.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 'mdoc.c')
-rw-r--r-- | mdoc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.243 2015/04/18 16:34:25 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.244 2015/04/18 17:01:58 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012-2015 Ingo Schwarze <schwarze@openbsd.org> @@ -187,7 +187,6 @@ mdoc_alloc(struct roff *roff, struct mparse *parse, p->quick = quick; p->roff = roff; - mdoc_hash_init(); mdoc_alloc1(p); return(p); } |