aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libroff.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-30 09:34:06 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-30 09:34:06 +0000
commit106912a8afaf5d13433f9c31bf444d8c6c1361de (patch)
treedf6c158982dfb1808e5a75dc616fb38d5e0537ef /libroff.h
parent2af1c510e72c986dadae0d6e4235fc0ec111608d (diff)
downloadmandoc-106912a8afaf5d13433f9c31bf444d8c6c1361de.tar.gz
mandoc-106912a8afaf5d13433f9c31bf444d8c6c1361de.tar.zst
mandoc-106912a8afaf5d13433f9c31bf444d8c6c1361de.zip
Move clean-up of parsed tbl nodes into the tbl_clear() function, called
once per invocation.
Diffstat (limited to 'libroff.h')
-rw-r--r--libroff.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/libroff.h b/libroff.h
index 828185f1..ec51096e 100644
--- a/libroff.h
+++ b/libroff.h
@@ -1,4 +1,4 @@
-/* $Id: libroff.h,v 1.7 2010/12/29 16:44:23 kristaps Exp $ */
+/* $Id: libroff.h,v 1.8 2010/12/30 09:34:06 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -76,6 +76,7 @@ struct tbl_span {
int flags;
#define TBL_SPAN_HORIZ (1 << 0)
#define TBL_SPAN_DHORIZ (1 << 1)
+ struct tbl_span *next;
};
struct tbl {
@@ -94,8 +95,10 @@ struct tbl {
#define TBL_OPT_ALLBOX (1 << 4)
#define TBL_OPT_NOKEEP (1 << 5)
#define TBL_OPT_NOSPACE (1 << 6)
- struct tbl_row *first;
- struct tbl_row *last;
+ struct tbl_row *first_row;
+ struct tbl_row *last_row;
+ struct tbl_span *first_span;
+ struct tbl_span *last_span;
};
#define TBL_MSG(tblp, type, line, col) \
@@ -108,7 +111,7 @@ void tbl_reset(struct tbl *);
enum rofferr tbl_read(struct tbl *, int, const char *, int);
int tbl_option(struct tbl *, int, const char *);
int tbl_layout(struct tbl *, int, const char *);
-struct tbl_span *tbl_data(struct tbl *, int, const char *);
+int tbl_data(struct tbl *, int, const char *);
__END_DECLS