diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-25 15:37:00 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-25 15:37:00 +0000 |
commit | 499b7cc2df175e8f1cd3a0a7db00455e691d03de (patch) | |
tree | 356638e94fe0111d12f3ef9b7f7b8f40bbc92cdb /tbl.c | |
parent | a36c339dbe615061842578e7f9191193481618c1 (diff) | |
download | mandoc-499b7cc2df175e8f1cd3a0a7db00455e691d03de.tar.gz mandoc-499b7cc2df175e8f1cd3a0a7db00455e691d03de.tar.zst mandoc-499b7cc2df175e8f1cd3a0a7db00455e691d03de.zip |
Implement the first steps of equation parsing from within libmdoc.
This consists of a shim around the text parser that calls out to libroff
if equation components exist on the line. Right now this will do
nothing, as the equation delimiter always returns nil.
Diffstat (limited to 'tbl.c')
-rw-r--r-- | tbl.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: tbl.c,v 1.25 2011/04/04 23:04:38 kristaps Exp $ */ +/* $Id: tbl.c,v 1.26 2011/07/25 15:37:00 kristaps Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -154,8 +154,12 @@ tbl_span(struct tbl_node *tbl) } void -tbl_end(struct tbl_node *tbl) +tbl_end(struct tbl_node **tblp) { + struct tbl_node *tbl; + + tbl = *tblp; + *tblp = NULL; if (NULL == tbl->first_span || NULL == tbl->first_span->first) mandoc_msg(MANDOCERR_TBLNODATA, tbl->parse, |