summaryrefslogtreecommitdiffstats
path: root/usr.bin/lex
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-08-14 06:35:37 +0000
committerphk <phk@FreeBSD.org>1998-08-14 06:35:37 +0000
commit00183c8521f2fa0e33ad9f8bbbd873dc53f820b8 (patch)
treee63a50a74ef01b5d3baa4eef83e54649a32e2eb6 /usr.bin/lex
parent2b2a0492a3feb617b7b53803fd492f3af2b8395f (diff)
downloadFreeBSD-src-00183c8521f2fa0e33ad9f8bbbd873dc53f820b8.zip
FreeBSD-src-00183c8521f2fa0e33ad9f8bbbd873dc53f820b8.tar.gz
/usr/src/usr.bin/lex/Makefile puts FlexLexer.h into /usr/include/g++,
but flex still generates "#include <FlexLexer.h". As a result, C++ sources flex generates failed to be compiled. PR: 7575 Reviewed by: phk Submitted by: MOROHOSHI Akihiko <moro@remus.dti.ne.jp>
Diffstat (limited to 'usr.bin/lex')
-rw-r--r--usr.bin/lex/lex.12
-rw-r--r--usr.bin/lex/main.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/lex/lex.1 b/usr.bin/lex/lex.1
index e135a49..d05cdab 100644
--- a/usr.bin/lex/lex.1
+++ b/usr.bin/lex/lex.1
@@ -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,
diff --git a/usr.bin/lex/main.c b/usr.bin/lex/main.c
index bc1e8c9..2b04f6c 100644
--- a/usr.bin/lex/main.c
+++ b/usr.bin/lex/main.c
@@ -32,7 +32,7 @@ char copyright[] =
All rights reserved.\n";
#endif /* not lint */
-/* $Header: /home/ncvs/src/usr.bin/lex/main.c,v 1.1.1.2 1996/06/19 20:26:16 nate Exp $ */
+/* $Header: /home/ncvs/src/usr.bin/lex/main.c,v 1.3 1996/06/19 20:47:29 nate Exp $ */
#include "flexdef.h"
@@ -1006,7 +1006,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 )
{
OpenPOWER on IntegriCloud