aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libmandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-18 17:01:58 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-18 17:01:58 +0000
commit24719645e5444a6acaeb47260a958a471c5eeffe (patch)
treec81b110c1963e76c1b017df27cbee7ab8c2dad23 /libmandoc.h
parent70a9dbd1a5a305812354c332d729472bd2c06561 (diff)
downloadmandoc-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 'libmandoc.h')
-rw-r--r--libmandoc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmandoc.h b/libmandoc.h
index 5aac4253..c16cf4d3 100644
--- a/libmandoc.h
+++ b/libmandoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmandoc.h,v 1.56 2015/04/18 16:06:39 schwarze Exp $ */
+/* $Id: libmandoc.h,v 1.57 2015/04/18 17:01:58 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -58,6 +58,7 @@ void mdoc_free(struct roff_man *);
struct roff_man *mdoc_alloc(struct roff *, struct mparse *,
const char *, int);
void mdoc_reset(struct roff_man *);
+void mdoc_hash_init(void);
int mdoc_parseln(struct roff_man *, int, char *, int);
void mdoc_endparse(struct roff_man *);
void mdoc_addspan(struct roff_man *, const struct tbl_span *);
@@ -67,6 +68,7 @@ void man_free(struct roff_man *);
struct roff_man *man_alloc(struct roff *, struct mparse *,
const char *, int);
void man_reset(struct roff_man *);
+void man_hash_init(void);
int man_parseln(struct roff_man *, int, char *, int);
void man_endparse(struct roff_man *);
void man_addspan(struct roff_man *, const struct tbl_span *);