diff options
Diffstat (limited to 'usr.bin/lex')
-rw-r--r-- | usr.bin/lex/flex.1 | 14 | ||||
-rw-r--r-- | usr.bin/lex/main.c | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/usr.bin/lex/flex.1 b/usr.bin/lex/flex.1 index 02e2576594c..a534ddd9459 100644 --- a/usr.bin/lex/flex.1 +++ b/usr.bin/lex/flex.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: flex.1,v 1.4 1998/06/11 04:15:31 deraadt Exp $ +.\" $OpenBSD: flex.1,v 1.5 1998/08/17 03:20:23 deraadt Exp $ .\" .TH FLEX 1 "April 1995" "Version 2.5" .SH NAME @@ -3196,7 +3196,7 @@ When using this option, flex defaults to generating the scanner to the file instead of .B lex.yy.c. The generated scanner includes the header file -.I FlexLexer.h, +.I g++/FlexLexer.h, which defines the interface to two C++ classes. .PP The first class, @@ -3249,7 +3249,7 @@ and object pointer). .PP The second class defined in -.I FlexLexer.h +.I g++/FlexLexer.h is .B yyFlexLexer, which is derived from @@ -3448,7 +3448,7 @@ option) to rename each to some other .B xxFlexLexer. You then can include -.B <FlexLexer.h> +.B <g++/FlexLexer.h> in your other sources once per lexer class, first renaming .B yyFlexLexer as follows: @@ -3456,11 +3456,11 @@ as follows: #undef yyFlexLexer #define yyFlexLexer xxFlexLexer - #include <FlexLexer.h> + #include <g++/FlexLexer.h> #undef yyFlexLexer #define yyFlexLexer zzFlexLexer - #include <FlexLexer.h> + #include <g++/FlexLexer.h> .fi if, for example, you used @@ -3891,7 +3891,7 @@ on some systems). generated C++ scanner class, when using .B -+. .TP -.I <FlexLexer.h> +.I <g++/FlexLexer.h> header file defining the C++ scanner base class, .B FlexLexer, and its derived class, diff --git a/usr.bin/lex/main.c b/usr.bin/lex/main.c index bc72734ca28..4316f267dee 100644 --- a/usr.bin/lex/main.c +++ b/usr.bin/lex/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.3 1996/07/13 22:22:08 millert Exp $ */ +/* $OpenBSD: main.c,v 1.4 1998/08/17 03:20:25 deraadt Exp $ */ /* flex - tool to generate fast lexical analyzers */ @@ -34,7 +34,7 @@ char copyright[] = All rights reserved.\n"; #endif /* not lint */ -/* $Header: /cvs/OpenBSD/src/usr.bin/lex/main.c,v 1.3 1996/07/13 22:22:08 millert Exp $ */ +/* $Header: /cvs/OpenBSD/src/usr.bin/lex/main.c,v 1.4 1998/08/17 03:20:25 deraadt Exp $ */ #include "flexdef.h" @@ -1008,7 +1008,7 @@ _( "Variable trailing context rules entail a large performance penalty\n" ) ); if ( C_plus_plus ) { - outn( "\n#include <FlexLexer.h>" ); + outn( "\n#include <g++/FlexLexer.h>" ); if ( yyclass ) { |