X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/f7add3eaf5bbb4a516a7dc5a828444b82ea8cd2d..160c4968c39b3806128f58311c70c5e0abbed96d:/man_argv.c?ds=sidebyside diff --git a/man_argv.c b/man_argv.c index 1b72aa3b..44b9a25c 100644 --- a/man_argv.c +++ b/man_argv.c @@ -1,6 +1,6 @@ -/* $Id: man_argv.c,v 1.1 2009/08/13 11:45:29 kristaps Exp $ */ +/* $Id: man_argv.c,v 1.4 2010/06/19 20:46:28 kristaps Exp $ */ /* - * Copyright (c) 2008, 2009 Kristaps Dzonsons + * Copyright (c) 2008, 2009 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -14,12 +14,17 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include #include +#include "mandoc.h" #include "libman.h" @@ -53,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); } @@ -67,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); @@ -91,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);