=================================================================== RCS file: /cvs/mandoc/tbl.c,v retrieving revision 1.44 retrieving revision 1.46 diff -u -p -r1.44 -r1.46 --- mandoc/tbl.c 2018/12/13 02:06:07 1.44 +++ mandoc/tbl.c 2018/12/14 06:33:14 1.46 @@ -1,4 +1,4 @@ -/* $Id: tbl.c,v 1.44 2018/12/13 02:06:07 schwarze Exp $ */ +/* $Id: tbl.c,v 1.46 2018/12/14 06:33:14 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011, 2015 Ingo Schwarze @@ -88,7 +88,7 @@ tbl_read(struct tbl_node *tbl, int ln, const char *p, } struct tbl_node * -tbl_alloc(int pos, int line, struct mparse *parse, struct tbl_node *last_tbl) +tbl_alloc(int pos, int line, struct tbl_node *last_tbl) { struct tbl_node *tbl; @@ -97,7 +97,6 @@ tbl_alloc(int pos, int line, struct mparse *parse, str last_tbl->next = tbl; tbl->line = line; tbl->pos = pos; - tbl->parse = parse; tbl->part = TBL_PART_OPTS; tbl->opts.tab = '\t'; tbl->opts.decimal = '.'; @@ -144,8 +143,7 @@ void tbl_restart(int line, int pos, struct tbl_node *tbl) { if (tbl->part == TBL_PART_CDATA) - mandoc_msg(MANDOCERR_TBLDATA_BLK, tbl->parse, - line, pos, "T&"); + mandoc_msg(MANDOCERR_TBLDATA_BLK, line, pos, "T&"); tbl->part = TBL_PART_LAYOUT; tbl->line = line; @@ -170,18 +168,15 @@ tbl_end(struct tbl_node *tbl, int still_open) struct tbl_span *sp; if (still_open) - mandoc_msg(MANDOCERR_BLK_NOEND, tbl->parse, - tbl->line, tbl->pos, "TS"); + mandoc_msg(MANDOCERR_BLK_NOEND, tbl->line, tbl->pos, "TS"); else if (tbl->part == TBL_PART_CDATA) - mandoc_msg(MANDOCERR_TBLDATA_BLK, tbl->parse, - tbl->line, tbl->pos, "TE"); + mandoc_msg(MANDOCERR_TBLDATA_BLK, tbl->line, tbl->pos, "TE"); sp = tbl->first_span; while (sp != NULL && sp->first == NULL) sp = sp->next; if (sp == NULL) { - mandoc_msg(MANDOCERR_TBLDATA_NONE, tbl->parse, - tbl->line, tbl->pos, NULL); + mandoc_msg(MANDOCERR_TBLDATA_NONE, tbl->line, tbl->pos, NULL); return 0; } return 1;