X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/73aca81b50073109b137bba659d38af11d7194ac..71cd7398da2aa89d10c8268134292464d0dd22d2:/man_argv.c diff --git a/man_argv.c b/man_argv.c index 279edf95..941bef72 100644 --- a/man_argv.c +++ b/man_argv.c @@ -1,4 +1,4 @@ -/* $Id: man_argv.c,v 1.2 2010/01/01 17:14:28 kristaps Exp $ */ +/* $Id: man_argv.c,v 1.3 2010/05/17 22:11:42 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -24,6 +24,7 @@ #include #include +#include "mandoc.h" #include "libman.h" @@ -57,7 +58,7 @@ man_args(struct man *m, int line, int *pos, char *buf, char **v) } if (0 == buf[*pos]) { - if ( ! man_pwarn(m, line, *pos, WTQUOTE)) + if ( ! man_pmsg(m, line, *pos, MANDOCERR_BADQUOTE)) return(ARGS_ERROR); return(ARGS_QWORD); } @@ -71,7 +72,7 @@ man_args(struct man *m, int line, int *pos, char *buf, char **v) (*pos)++; if (0 == buf[*pos]) - if ( ! man_pwarn(m, line, *pos, WTSPACE)) + if ( ! man_pmsg(m, line, *pos, MANDOCERR_EOLNSPACE)) return(ARGS_ERROR); return(ARGS_QWORD); @@ -95,7 +96,7 @@ man_args(struct man *m, int line, int *pos, char *buf, char **v) (*pos)++; if (0 == buf[*pos]) - if ( ! man_pwarn(m, line, *pos, WTSPACE)) + if ( ! man_pmsg(m, line, *pos, MANDOCERR_EOLNSPACE)) return(ARGS_ERROR); return(ARGS_WORD);