/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>
This commit is contained in:
Poul-Henning Kamp 1998-08-14 06:35:37 +00:00
parent b5be0bd29d
commit 9cd4d748f9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38314
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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 )
{