1294109Sbapt/*	$Id: roff_int.h,v 1.7 2015/11/07 14:01:16 schwarze Exp $	*/
2294109Sbapt/*
3294109Sbapt * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
4294109Sbapt * Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
5294109Sbapt *
6294109Sbapt * Permission to use, copy, modify, and distribute this software for any
7294109Sbapt * purpose with or without fee is hereby granted, provided that the above
8294109Sbapt * copyright notice and this permission notice appear in all copies.
9294109Sbapt *
10294109Sbapt * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
11294109Sbapt * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12294109Sbapt * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
13294109Sbapt * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14294109Sbapt * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15294109Sbapt * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16294109Sbapt * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17294109Sbapt */
18294109Sbapt
19294109Sbaptstruct roff_node *roff_node_alloc(struct roff_man *, int, int,
20294109Sbapt			enum roff_type, int);
21294109Sbaptvoid		  roff_node_append(struct roff_man *, struct roff_node *);
22294109Sbaptvoid		  roff_word_alloc(struct roff_man *, int, int, const char *);
23294109Sbaptvoid		  roff_word_append(struct roff_man *, const char *);
24294109Sbaptvoid		  roff_elem_alloc(struct roff_man *, int, int, int);
25294109Sbaptstruct roff_node *roff_block_alloc(struct roff_man *, int, int, int);
26294109Sbaptstruct roff_node *roff_head_alloc(struct roff_man *, int, int, int);
27294109Sbaptstruct roff_node *roff_body_alloc(struct roff_man *, int, int, int);
28294109Sbaptvoid		  roff_addeqn(struct roff_man *, const struct eqn *);
29294109Sbaptvoid		  roff_addtbl(struct roff_man *, const struct tbl_span *);
30294109Sbaptvoid		  roff_node_unlink(struct roff_man *, struct roff_node *);
31294109Sbaptvoid		  roff_node_free(struct roff_node *);
32294109Sbaptvoid		  roff_node_delete(struct roff_man *, struct roff_node *);
33294109Sbapt
34294109Sbapt/*
35294109Sbapt * Functions called from roff.c need to be declared here,
36294109Sbapt * not in libmdoc.h or libman.h, even if they are specific
37294109Sbapt * to either the mdoc(7) or the man(7) parser.
38294109Sbapt */
39294109Sbapt
40294109Sbaptvoid		  man_breakscope(struct roff_man *, int);
41294109Sbaptvoid		  mdoc_argv_free(struct mdoc_arg *);
42