xref: /freebsd/contrib/mandoc/tbl_parse.h (revision 7295610f)
1*7295610fSBaptiste Daroussin /*	$Id: tbl_parse.h,v 1.2 2018/12/14 06:33:14 schwarze Exp $ */
2*7295610fSBaptiste Daroussin /*
3*7295610fSBaptiste Daroussin  * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
4*7295610fSBaptiste Daroussin  * Copyright (c) 2011, 2017 Ingo Schwarze <schwarze@openbsd.org>
5*7295610fSBaptiste Daroussin  *
6*7295610fSBaptiste Daroussin  * Permission to use, copy, modify, and distribute this software for any
7*7295610fSBaptiste Daroussin  * purpose with or without fee is hereby granted, provided that the above
8*7295610fSBaptiste Daroussin  * copyright notice and this permission notice appear in all copies.
9*7295610fSBaptiste Daroussin  *
10*7295610fSBaptiste Daroussin  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
11*7295610fSBaptiste Daroussin  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12*7295610fSBaptiste Daroussin  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
13*7295610fSBaptiste Daroussin  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14*7295610fSBaptiste Daroussin  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15*7295610fSBaptiste Daroussin  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16*7295610fSBaptiste Daroussin  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17*7295610fSBaptiste Daroussin  *
18*7295610fSBaptiste Daroussin  * External interface of the tbl(7) parser.
19*7295610fSBaptiste Daroussin  * For use in the roff(7) and tbl(7) parsers only.
20*7295610fSBaptiste Daroussin  */
21*7295610fSBaptiste Daroussin 
22*7295610fSBaptiste Daroussin struct tbl_node;
23*7295610fSBaptiste Daroussin struct tbl_span;
24*7295610fSBaptiste Daroussin 
25*7295610fSBaptiste Daroussin struct tbl_node	*tbl_alloc(int, int, struct tbl_node *);
26*7295610fSBaptiste Daroussin int		 tbl_end(struct tbl_node *, int);
27*7295610fSBaptiste Daroussin void		 tbl_free(struct tbl_node *);
28*7295610fSBaptiste Daroussin void		 tbl_read(struct tbl_node *, int, const char *, int);
29*7295610fSBaptiste Daroussin void		 tbl_restart(int, int, struct tbl_node *);
30*7295610fSBaptiste Daroussin struct tbl_span	*tbl_span(struct tbl_node *);
31