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 | e7602bc16044a04fe97beac48909840f1b12ba4e (patch) | |
tree | b489159f1ce065b9075402209449aab86376cc72 /eqn.c | |
parent | e3863b1460cd9598ecb57705c9b22c2f2c552953 (diff) | |
download | mandoc-e7602bc16044a04fe97beac48909840f1b12ba4e.tar.gz |
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 'eqn.c')
-rw-r--r-- | eqn.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -303,12 +303,11 @@ static void eqn_undef(struct eqn_node *); struct eqn_node * -eqn_alloc(struct mparse *parse) +eqn_alloc(void) { struct eqn_node *ep; ep = mandoc_calloc(1, sizeof(*ep)); - ep->parse = parse; ep->gsize = EQN_DEFSIZE; return ep; } |