summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/libmandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-04-18 17:01:29 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-04-18 17:01:29 +0000
commitdc444622db6500b04f7ba654ef9ed2568aa406b5 (patch)
tree15260d6108050b8bd90fb766ab87ebaff9f165cf /usr.bin/mandoc/libmandoc.h
parent7f5a971c67d6f29296dc382f491b457b8fd8f8b1 (diff)
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/libmandoc.h')
-rw-r--r--usr.bin/mandoc/libmandoc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/libmandoc.h b/usr.bin/mandoc/libmandoc.h
index 169a98a480f..6034e158fa0 100644
--- a/usr.bin/mandoc/libmandoc.h
+++ b/usr.bin/mandoc/libmandoc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: libmandoc.h,v 1.42 2015/04/18 16:04:40 schwarze Exp $ */
+/* $OpenBSD: libmandoc.h,v 1.43 2015/04/18 17:01:28 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -55,6 +55,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 *);
@@ -64,6 +65,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 *);