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