From 91305757ee19477bfa53ec1bba1f8495fc97ce5c Mon Sep 17 00:00:00 2001 From: schwarze Date: Fri, 14 Dec 2018 06:33:03 +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. --- usr.bin/mandoc/man_macro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/mandoc/man_macro.c') diff --git a/usr.bin/mandoc/man_macro.c b/usr.bin/mandoc/man_macro.c index b01b695d556..c99eb3d9592 100644 --- a/usr.bin/mandoc/man_macro.c +++ b/usr.bin/mandoc/man_macro.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_macro.c,v 1.97 2018/12/14 05:17:45 schwarze Exp $ */ +/* $OpenBSD: man_macro.c,v 1.98 2018/12/14 06:33:03 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2012-2015, 2017, 2018 Ingo Schwarze @@ -454,6 +454,6 @@ man_args(struct roff_man *man, int line, int *pos, char *buf, char **v) if ('\0' == *start) return 0; - *v = mandoc_getarg(man->parse, v, line, pos); + *v = mandoc_getarg(v, line, pos); return 1; } -- cgit v1.2.3-59-g8ed1b