diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-27 09:03:03 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-27 09:03:03 +0000 |
commit | b1fb120d0a24fcf56a9796331ce7aa0b603be57b (patch) | |
tree | 53c146bf92efcaa51dcbf5cc866eb2c991cfc7ee /mdoc_validate.c | |
parent | 2da2307a9d5545dfde44035f2048dab68ee71364 (diff) | |
download | mandoc-b1fb120d0a24fcf56a9796331ce7aa0b603be57b.tar.gz mandoc-b1fb120d0a24fcf56a9796331ce7aa0b603be57b.tar.zst mandoc-b1fb120d0a24fcf56a9796331ce7aa0b603be57b.zip |
Removed escape-deprecation note (better solution in progress, schwarze@openbsd.org).
Using EXIT_FAILURE for parse errors (nicm@openbsd.org).
Fixed use of warn/warnx (nicm@openbsd.org).
Fixed use of getsubopt (nicm@openbsd.org).
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 48751d87..994ca9da 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $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> * @@ -55,7 +55,6 @@ enum mwarn { WNOWIDTH, WMISSWIDTH, WESCAPE, - WDEPESC, WDEPCOL, WWRONGMSEC, WSECOOO, @@ -486,9 +485,6 @@ pwarn(struct mdoc *m, int line, int pos, enum mwarn type) case (WESCAPE): p = "invalid escape sequence"; break; - case (WDEPESC): - p = "deprecated special-character escape"; - break; case (WNOLINE): p = "suggested no line arguments"; break; @@ -728,10 +724,6 @@ check_text(struct mdoc *mdoc, int line, int pos, const char *p) 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; } |