diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-14 06:33:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-14 06:33:14 +0000 |
commit | 4c2762423e7dcaf40f505c9000f23b6f18a484e5 (patch) | |
tree | 506be8e4f33431f64d95bfecad57d08f20be9dba /tbl.c | |
parent | 7a6eb8920bdea2ecc151b308352b2a98699b2350 (diff) | |
download | mandoc-4c2762423e7dcaf40f505c9000f23b6f18a484e5.tar.gz mandoc-4c2762423e7dcaf40f505c9000f23b6f18a484e5.tar.zst mandoc-4c2762423e7dcaf40f505c9000f23b6f18a484e5.zip |
Cleanup, no functional change:
Now that message handling is properly encapsulated,
remove struct mparse pointers from four structs (roff, roff_man,
tbl_node, eqn_node) and from the argument lists of five functions
(roff_alloc, roff_man_alloc, mandoc_getarg, tbl_alloc, eqn_alloc).
Except for being passed to the main program as an opaque object,
it now only occurs in read.c, as it should, and not across 15 files
like in the past.
Diffstat (limited to 'tbl.c')
-rw-r--r-- | tbl.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tbl.c,v 1.45 2018/12/14 05:18:03 schwarze Exp $ */ +/* $Id: tbl.c,v 1.46 2018/12/14 06:33:14 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -88,7 +88,7 @@ tbl_read(struct tbl_node *tbl, int ln, const char *p, int pos) } 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, struct tbl_node *last_tbl) 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 = '.'; |