summaryrefslogtreecommitdiff
path: root/FlexLexer.h
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1995-04-24 13:25:54 +0000
committerVern Paxson <vern@ee.lbl.gov>1995-04-24 13:25:54 +0000
commit89b65c3d40ac1a623fa220c4b3bbfb85f92f2a1a (patch)
treebaa75f573282b505aed8c9b0f7d01dbe0ded5c1c /FlexLexer.h
parent3c1f10069449142d6c6f57f1fa39a43fbefb7f8d (diff)
fix multiple inclusions
Diffstat (limited to 'FlexLexer.h')
-rw-r--r--FlexLexer.h8
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