summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvern <vern>1995-04-24 13:25:54 +0000
committervern <vern>1995-04-24 13:25:54 +0000
commit05c3ab5adf549d40380d0b94282b943226f13181 (patch)
treec6bf18b5bb6b522fc0246164a3d19edd4278b810
parent017bdd1e84cb8a674487bb28de57ec51ae193a56 (diff)
downloadflex-05c3ab5adf549d40380d0b94282b943226f13181.tar.gz
fix multiple inclusions
-rw-r--r--FlexLexer.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/FlexLexer.h b/FlexLexer.h
index 5fd4603..659c8ed 100644
--- a/FlexLexer.h
+++ b/FlexLexer.h
@@ -1,4 +1,4 @@
-// $Header: /cvsroot/flex/flex/FlexLexer.h,v 1.17 1995/04/20 12:43:07 vern Exp $
+// $Header: /cvsroot/flex/flex/FlexLexer.h,v 1.18 1995/04/24 13:25:54 vern Exp $
// FlexLexer.h -- define interfaces for lexical analyzer classes generated
// by flex
@@ -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