summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-05-14 19:55:59 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-05-14 19:55:59 (GMT)
commit64200b5e975b19f38f9a68569b98c6f53e6fe4d9 (patch)
treed211455e0cef95445694e7630c63dd0e90d3f3a5 /src/code.l
parenta9f41d99f3651cd66850e9020bc3af7cb559306e (diff)
downloadDoxygen-64200b5e975b19f38f9a68569b98c6f53e6fe4d9.zip
Doxygen-64200b5e975b19f38f9a68569b98c6f53e6fe4d9.tar.gz
Doxygen-64200b5e975b19f38f9a68569b98c6f53e6fe4d9.tar.bz2
Release-1.3-20030514
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/code.l b/src/code.l
index 5335daa..e303139 100644
--- a/src/code.l
+++ b/src/code.l
@@ -1388,7 +1388,7 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
addType();
g_name+=yytext;
}
-<Body>"("{B}*("*"{B}*)*{SCOPENAME}*{B}*")"/{B}* { // (*p)->func()
+<Body>"("{B}*("*"{B}*)+{SCOPENAME}*{B}*")"/{B}* { // (*p)->func() but not "if (p) ..."
g_code->codify(yytext);
int s=0;while (s<yyleng && !isId(yytext[s])) s++;
int e=yyleng-1;while (e>=0 && !isId(yytext[e])) e--;
@@ -2085,7 +2085,11 @@ void parseCode(BaseCodeDocInterface &od,const char *className,const QCString &s,
return;
}
+#if !defined(YY_FLEX_SUBMINOR_VERSION)
extern "C" { // some bogus code to keep the compiler happy
-// int codeYYwrap() { return 1 ; }
void codeYYdummy() { yy_flex_realloc(0,0); }
}
+#else
+#error "You seem to be using a version of flex newer than 2.5.4. These are currently incompatible with 2.5.4, and do NOT work with doxygen! Please use version 2.5.4 or expect things to be parsed wrongly! A bug report has been submitted (#732132)."
+#endif
+