diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-06-26 22:43:41 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-06-26 22:43:41 +0000 |
commit | d8e2dc40cb262e0a645395aa63ec461f77551ad0 (patch) | |
tree | 21dc07c12dbb88290b3ef72f0d70f4d6f720d4f4 | |
parent | 8ff6e4897d3271d688c3f491e2c1baf97f088545 (diff) |
the forms \*x, \*(xx and \*[xxx] are not deprecated, so revert most of 1.8;
noticed by jmc@; ok kristaps@; to be included in 1.7.21
-rw-r--r-- | usr.bin/mandoc/mdoc_validate.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c index 0e91f843985..f6f481bfd6e 100644 --- a/usr.bin/mandoc/mdoc_validate.c +++ b/usr.bin/mandoc/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.12 2009/06/23 23:02:54 schwarze Exp $ */ +/* $Id: mdoc_validate.c,v 1.13 2009/06/26 22:43:40 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -55,7 +55,6 @@ enum mwarn { WNOWIDTH, WMISSWIDTH, WESCAPE, - WDEPESC, WDEPCOL, WWRONGMSEC, WSECOOO, @@ -481,9 +480,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; @@ -723,10 +719,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; } |