summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2011-06-08 20:22:02 +0000
committerjmc <jmc@openbsd.org>2011-06-08 20:22:02 +0000
commit0259db1efc626ee3d755e8adacb28ee910e79a2d (patch)
tree8a75aa05f46a579fe75ab76f9e9fefac2a1e59b2
parentRevert fakecdrom elimination pending further testing. ariane@ pointed (diff)
downloadwireguard-openbsd-0259db1efc626ee3d755e8adacb28ee910e79a2d.tar.xz
wireguard-openbsd-0259db1efc626ee3d755e8adacb28ee910e79a2d.zip
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.112
-rw-r--r--usr.bin/lex/main.c7
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 4a911c819c2..20e7c0fcdf9 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: /home/cvs/src/usr.bin/lex/main.c,v 1.11 2009/10/27 23:59:39 deraadt Exp $ */
+/* $Header: /home/cvs/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" ) );