diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-13 06:18:20 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-13 06:18:20 +0000 |
commit | ef4eacb2307e8303d7e4555864132f376af2ac59 (patch) | |
tree | 202e7b3ffd4ddb1199d4efc1c3392e240fc0f9ea /roff_int.h | |
parent | 32c0933851c645dfc5d1af1bda32e80c9f237254 (diff) | |
download | mandoc-ef4eacb2307e8303d7e4555864132f376af2ac59.tar.gz mandoc-ef4eacb2307e8303d7e4555864132f376af2ac59.tar.zst mandoc-ef4eacb2307e8303d7e4555864132f376af2ac59.zip |
Cleanup, no functional change:
Move the roffhash_*() functions from roff.h to roff_int.h
because they are only intended for use by parsers,
neither by main programs nor by formatters.
Diffstat (limited to 'roff_int.h')
-rw-r--r-- | roff_int.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,7 +1,7 @@ -/* $Id: roff_int.h,v 1.10 2018/12/04 02:53:51 schwarze Exp $ */ +/* $Id: roff_int.h,v 1.11 2018/12/13 06:18:20 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2013, 2014, 2015, 2018 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -14,6 +14,8 @@ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * Parser internals shared by multiple parsers. */ struct roff_node *roff_node_alloc(struct roff_man *, int, int, @@ -30,6 +32,10 @@ void roff_node_relink(struct roff_man *, struct roff_node *); void roff_node_free(struct roff_node *); void roff_node_delete(struct roff_man *, struct roff_node *); +struct ohash *roffhash_alloc(enum roff_tok, enum roff_tok); +enum roff_tok roffhash_find(struct ohash *, const char *, size_t); +void roffhash_free(struct ohash *); + /* * Functions called from roff.c need to be declared here, * not in libmdoc.h or libman.h, even if they are specific |