diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2011-06-08 20:22:03 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2011-06-08 20:22:03 +0000 |
commit | 69a849b8086f2a11905df141b8233ef83d9e9e5f (patch) | |
tree | f0a50361b2b332545b7094559c29be78c9b9e491 | |
parent | 2e3bfa5b3ba985c5f9f88c52415b00c4acbb1206 (diff) |
do not document the -c flag: it was added for posix compliance,
but posix deprecated this option in issue 6 (code remains though);
from Daniel Dickman
ok otto millert
-rw-r--r-- | usr.bin/lex/flex.1 | 12 | ||||
-rw-r--r-- | usr.bin/lex/main.c | 7 |
2 files changed, 7 insertions, 12 deletions
diff --git a/usr.bin/lex/flex.1 b/usr.bin/lex/flex.1 index e70c60dad97..2490ca234ec 100644 --- a/usr.bin/lex/flex.1 +++ b/usr.bin/lex/flex.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: flex.1,v 1.30 2010/10/18 14:42:16 jmc Exp $ +.\" $OpenBSD: flex.1,v 1.31 2011/06/08 20:22:02 jmc Exp $ .\" .\" Copyright (c) 1990 The Regents of the University of California. .\" All rights reserved. @@ -29,7 +29,7 @@ .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR .\" PURPOSE. .\" -.Dd $Mdocdate: October 18 2010 $ +.Dd $Mdocdate: June 8 2011 $ .Dt FLEX 1 .Os .Sh NAME @@ -38,7 +38,7 @@ .Sh SYNOPSIS .Nm .Bk -words -.Op Fl 78BbcdFfhIiLlnpsTtVvw+? +.Op Fl 78BbdFfhIiLlnpsTtVvw+? .Op Fl C Ns Op Cm aeFfmr .Op Fl Fl help .Op Fl Fl version @@ -2541,10 +2541,6 @@ maximal compression. .Pp .Fl Cfe is often a good compromise between speed and size for production scanners. -.It Fl c -A do-nothing, deprecated option included for -.Tn POSIX -compliance. .It Fl d Makes the generated scanner run in debug mode. Whenever a pattern is recognized and the global @@ -4256,7 +4252,7 @@ specification, though its presence is optional. .Pp The flags -.Op Fl 78BbCcdFfhIiLloPpSsTVw+? , +.Op Fl 78BbCdFfhIiLloPpSsTVw+? , .Op Fl -help , and .Op Fl -version diff --git a/usr.bin/lex/main.c b/usr.bin/lex/main.c index 747c25845be..1796dca7942 100644 --- a/usr.bin/lex/main.c +++ b/usr.bin/lex/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.11 2009/10/27 23:59:39 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.12 2011/06/08 20:22:02 jmc Exp $ */ /* flex - tool to generate fast lexical analyzers */ @@ -33,7 +33,7 @@ * PURPOSE. */ -/* $Header: /cvs/OpenBSD/src/usr.bin/lex/main.c,v 1.11 2009/10/27 23:59:39 deraadt Exp $ */ +/* $Header: /cvs/OpenBSD/src/usr.bin/lex/main.c,v 1.12 2011/06/08 20:22:02 jmc Exp $ */ #include "flexdef.h" @@ -1115,13 +1115,12 @@ void usage() FILE *f = stdout; fprintf( f, -_( "%s [-bcdfhilnpstvwBFILTV78+? -C[aefFmr] -ooutput -Pprefix -Sskeleton]\n" ), +_( "%s [-bdfhilnpstvwBFILTV78+? -C[aefFmr] -ooutput -Pprefix -Sskeleton]\n" ), program_name ); fprintf( f, _( "\t[--help --version] [file ...]\n" ) ); fprintf( f, _( "\t-b generate backing-up information to %s\n" ), backing_name ); - fprintf( f, _( "\t-c do-nothing POSIX option\n" ) ); fprintf( f, _( "\t-d turn on debug mode in generated scanner\n" ) ); fprintf( f, _( "\t-f generate fast, large scanner\n" ) ); fprintf( f, _( "\t-h produce this help message\n" ) ); |