-/* $Id: main.c,v 1.31 2009/06/18 10:32:00 kristaps Exp $ */
+/* $Id: main.c,v 1.32 2009/06/27 09:03:03 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
switch (c) {
case ('f'):
if ( ! foptions(&curp.fflags, optarg))
- return(0);
+ return(EXIT_FAILURE);
break;
case ('m'):
if ( ! moptions(&curp.inttype, optarg))
- return(0);
+ return(EXIT_FAILURE);
break;
case ('T'):
if ( ! toptions(&curp.outtype, optarg))
- return(0);
+ return(EXIT_FAILURE);
break;
case ('W'):
if ( ! woptions(&curp.wflags, optarg))
- return(0);
+ return(EXIT_FAILURE);
break;
case ('V'):
version();
*/
if (-1 == fstat(curp->fd, &st))
- warnx("%s", curp->file);
+ warn("%s", curp->file);
else if ((size_t)st.st_blksize > sz)
sz = st.st_blksize;
NO_IGN_MACRO | NO_IGN_CHARS;
break;
default:
- warnx("bad argument: -f%s", arg);
+ warnx("bad argument: -f%s", suboptarg);
return(0);
}
*wflags |= WARN_WERR;
break;
default:
- warnx("bad argument: -W%s", arg);
+ warnx("bad argument: -W%s", suboptarg);
return(0);
}
-/* $Id: mdoc_validate.c,v 1.16 2009/06/18 20:46:19 kristaps Exp $ */
+/* $Id: mdoc_validate.c,v 1.17 2009/06/27 09:03:03 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
WNOWIDTH,
WMISSWIDTH,
WESCAPE,
- WDEPESC,
WDEPCOL,
WWRONGMSEC,
WSECOOO,
case (WESCAPE):
p = "invalid escape sequence";
break;
- case (WDEPESC):
- p = "deprecated special-character escape";
- break;
case (WNOLINE):
p = "suggested no line arguments";
break;
c = mdoc_isescape(p);
if (c) {
- /* See if form is deprecated. */
- if ('*' == p[1])
- if ( ! pwarn(mdoc, line, pos, WDEPESC))
- return(0);
p += (int)c - 1;
continue;
}