aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.h
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 /roff.h
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 'roff.h')
-rw-r--r--roff.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/roff.h b/roff.h
index c41553e2..624fcb00 100644
--- a/roff.h
+++ b/roff.h
@@ -1,4 +1,4 @@
-/* $Id: roff.h,v 1.64 2018/12/13 11:55:47 schwarze Exp $ */
+/* $Id: roff.h,v 1.65 2018/12/14 06:33:14 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -548,7 +548,6 @@ struct roff_meta {
struct roff_man {
struct roff_meta meta; /* Document meta-data. */
- struct mparse *parse; /* Parse pointer. */
struct roff *roff; /* Roff parser state data. */
struct ohash *mdocmac; /* Mdoc macro lookup table. */
struct ohash *manmac; /* Man macro lookup table. */