From 80339b751a1833d9bbbf9856e7f48f56d91ba1d3 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 20 Mar 2011 16:02:05 +0000 Subject: Consolidate messages. Have all parse-time messages (in libmdoc, libroff, etc., etc.) route into mandoc_msg() and mandoc_vmsg(), for the time being in libmandoc.h. This requires struct mparse to be passed into the allocation routines instead of mandocmsg and a void pointer. Then, move some of the functionality of the old mmsg() into read.c's mparse_mmsg() (check against wlevel and setting of file_status) and use main.c's mmsg() as simply a printing tool. --- man_argv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'man_argv.c') diff --git a/man_argv.c b/man_argv.c index f091d0f2..6771e53c 100644 --- a/man_argv.c +++ b/man_argv.c @@ -39,6 +39,6 @@ man_args(struct man *m, int line, int *pos, char *buf, char **v) if ('\0' == *start) return(ARGS_EOLN); - *v = mandoc_getarg(v, m->msg, m->data, line, pos); + *v = mandoc_getarg(m->parse, v, line, pos); return('"' == *start ? ARGS_QWORD : ARGS_WORD); } -- cgit