aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-14 06:33:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-14 06:33:14 +0000
commit4c2762423e7dcaf40f505c9000f23b6f18a484e5 (patch)
tree506be8e4f33431f64d95bfecad57d08f20be9dba /read.c
parent7a6eb8920bdea2ecc151b308352b2a98699b2350 (diff)
downloadmandoc-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 'read.c')
-rw-r--r--read.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/read.c b/read.c
index 21a80269..08123026 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.206 2018/12/14 05:18:03 schwarze Exp $ */
+/* $Id: read.c,v 1.207 2018/12/14 06:33:14 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -647,8 +647,8 @@ mparse_alloc(int options, enum mandoc_os os_e, const char *os_s)
curp->options = options;
curp->os_s = os_s;
- curp->roff = roff_alloc(curp, options);
- curp->man = roff_man_alloc(curp->roff, curp, curp->os_s,
+ curp->roff = roff_alloc(options);
+ curp->man = roff_man_alloc(curp->roff, curp->os_s,
curp->options & MPARSE_QUICK ? 1 : 0);
if (curp->options & MPARSE_MDOC) {
curp->man->macroset = MACROSET_MDOC;