[Uml-devel] kdesdk/umbrello/umbrello/classparser
Sebastian Stein
seb.kde at hpfsc.de
Wed Nov 5 06:38:42 UTC 2003
CVS commit by sstein:
fix for bug #67277 by Daniel Richard G. <skunk at iskunk.org>
Richard:
"The problem is that the FlexLexer.h header has a strange way of handling multiple inclusions of itself. tokenizer.l (tokenizer.cc) and ClassParser.cc both include this header indirectly, and in separate compilation they work fine; but when compiling concatenated source, a "#define yyFlexLexer yyFlexLexer" declaration (inserted by flex) carries through from tokenizer.cc to ClassParser.cc, and causes havoc on the second inclusion. (In the error message quoted above, the two FlexLexer.h lines are the second and first inclusions, respectively.)
The solution is to "#undef yyFlexLexer" at the end of tokenizer."
M +1 -1 tokenizer.l 1.7
--- kdesdk/umbrello/umbrello/classparser/tokenizer.l #1.6:1.7
@@ -189,3 +189,3 @@ bool endComment(yyFlexLexer *lex)
return true;
}
-
+#undef yyFlexLexer
More information about the umbrello-devel
mailing list