diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-01-30 04:11:50 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-01-30 04:11:50 +0000 |
commit | 37b1fa2022515dadb78d40e740849dfc6bd68996 (patch) | |
tree | 12ce733b8e92a238d28dd6d17b90b0e65aae6690 /tbl_data.c | |
parent | bba48934f08def48237c6f8c8f3f11d6e6d61944 (diff) | |
download | mandoc-37b1fa2022515dadb78d40e740849dfc6bd68996.tar.gz |
Abolish struct tbl_head and replace it by an "int col" member in
struct tbl_cell. No functional change, minus 40 lines of code.
Diffstat (limited to 'tbl_data.c')
-rw-r--r-- | tbl_data.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -44,13 +44,9 @@ getdata(struct tbl_node *tbl, struct tbl_span *dp, struct tbl_cell *cp; int sv; - cp = dp->last == NULL ? dp->layout->first : dp->last->layout->next; - - /* - * Skip over spanners, since - * we want to match data with data layout cells in the header. - */ + /* Advance to the next layout cell, skipping spanners. */ + cp = dp->last == NULL ? dp->layout->first : dp->last->layout->next; while (cp != NULL && cp->pos == TBL_CELL_SPAN) cp = cp->next; @@ -172,7 +168,6 @@ newspan(struct tbl_node *tbl, int line, struct tbl_row *rp) dp->line = line; dp->opts = &tbl->opts; dp->layout = rp; - dp->head = tbl->first_head; dp->prev = tbl->last_span; if (dp->prev == NULL) { |