diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1995-04-24 13:25:54 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1995-04-24 13:25:54 +0000 |
commit | 89b65c3d40ac1a623fa220c4b3bbfb85f92f2a1a (patch) | |
tree | baa75f573282b505aed8c9b0f7d01dbe0ded5c1c /FlexLexer.h | |
parent | 3c1f10069449142d6c6f57f1fa39a43fbefb7f8d (diff) |
fix multiple inclusions
Diffstat (limited to 'FlexLexer.h')
-rw-r--r-- | FlexLexer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/FlexLexer.h b/FlexLexer.h index bd7a564..2004481 100644 --- a/FlexLexer.h +++ b/FlexLexer.h @@ -93,6 +93,12 @@ protected: } #endif +#if defined(yyFlexLexer) || ! defined(yyFlexLexerOnce) +// Either this is the first time through (yyFlexLexerOnce not defined), +// or this is a repeated include to define a different flavor of +// yyFlexLexer, as discussed in the flex man page. +#define yyFlexLexerOnce + class yyFlexLexer : public FlexLexer { public: // arg_yyin and arg_yyout default to the cin and cout, but we @@ -173,3 +179,5 @@ protected: int yy_more_flag; int yy_more_len; }; + +#endif |