From 4c2762423e7dcaf40f505c9000f23b6f18a484e5 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 14 Dec 2018 06:33:14 +0000 Subject: 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. --- read.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'read.c') 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 * Copyright (c) 2010-2018 Ingo Schwarze @@ -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; -- cgit v1.2.3-56-ge451