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 | 71fa4361c47e9ed2f3c6521e9273fabb41aadc20 (patch) | |
tree | ac472a0b2793a26633a7405d837eaa7fa648ea74 /tbl.c | |
parent | 8ea5dc6d40c942157256ddd510bd3fa16cb44303 (diff) | |
download | mandoc-71fa4361c47e9ed2f3c6521e9273fabb41aadc20.tar.gz mandoc-71fa4361c47e9ed2f3c6521e9273fabb41aadc20.tar.zst mandoc-71fa4361c47e9ed2f3c6521e9273fabb41aadc20.zip |
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.c')
-rw-r--r-- | tbl.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1,4 +1,4 @@ -/* $Id: tbl.c,v 1.37 2015/01/30 02:09:04 schwarze Exp $ */ +/* $Id: tbl.c,v 1.38 2015/01/30 04:11:50 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -108,7 +108,6 @@ tbl_free(struct tbl_node *tbl) struct tbl_cell *cp; struct tbl_span *sp; struct tbl_dat *dp; - struct tbl_head *hp; while ((rp = tbl->first_row) != NULL) { tbl->first_row = rp->next; @@ -131,11 +130,6 @@ tbl_free(struct tbl_node *tbl) free(sp); } - while ((hp = tbl->first_head) != NULL) { - tbl->first_head = hp->next; - free(hp); - } - free(tbl); } |