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