diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-09-18 10:25:29 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-09-18 10:25:29 +0000 |
commit | 4f50809e67b9f55a658e7971ff3fdb7315acd3d7 (patch) | |
tree | 8313e9c25a5e5ecc27954763967407abdb8ce6e2 /usr.bin/mandoc/tbl.c | |
parent | a7ddd4c92498f0e8d565f15959dc99a464ec51a1 (diff) |
sync to version 1.11.5:
adding an implementation of the eqn(7) language
by kristaps@
So far, only .EQ/.EN blocks are handled, in-line equations are not, and
rendering is not yet very pretty, but the parser is fairly complete.
Diffstat (limited to 'usr.bin/mandoc/tbl.c')
-rw-r--r-- | usr.bin/mandoc/tbl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/mandoc/tbl.c b/usr.bin/mandoc/tbl.c index b708abcb861..203dfe320d6 100644 --- a/usr.bin/mandoc/tbl.c +++ b/usr.bin/mandoc/tbl.c @@ -1,4 +1,4 @@ -/* $Id: tbl.c,v 1.6 2011/04/24 16:22:02 schwarze Exp $ */ +/* $Id: tbl.c,v 1.7 2011/09/18 10:25:28 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -150,8 +150,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, |