diff options
author | 2011-03-20 16:02:05 +0000 | |
---|---|---|
committer | 2011-03-20 16:02:05 +0000 | |
commit | 71ddcd873082a3c68ed2be7b7661075fb09d5849 (patch) | |
tree | 7eb75a067079e8a591b76791b56f0b7673b109d5 /man_argv.c | |
parent | 58ca7d3112e5d39b93ab732cf103b4b0b834b106 (diff) | |
download | mandoc-71ddcd873082a3c68ed2be7b7661075fb09d5849.tar.gz mandoc-71ddcd873082a3c68ed2be7b7661075fb09d5849.tar.zst mandoc-71ddcd873082a3c68ed2be7b7661075fb09d5849.zip |
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.
Diffstat (limited to 'man_argv.c')
-rw-r--r-- | man_argv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_argv.c,v 1.5 2011/01/03 22:42:37 schwarze Exp $ */ +/* $Id: man_argv.c,v 1.6 2011/03/20 16:02:05 kristaps Exp $ */ /* * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> * @@ -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); } |