summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-05-14 19:55:59 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-05-14 19:55:59 (GMT)
commit20bd371f722f95bdf9da2d5c27753af4d38e7b6f (patch)
treed211455e0cef95445694e7630c63dd0e90d3f3a5 /src/code.l
parentea4b32cb910635a50467b02f36b5521337451cf0 (diff)
downloadDoxygen-20bd371f722f95bdf9da2d5c27753af4d38e7b6f.zip
Doxygen-20bd371f722f95bdf9da2d5c27753af4d38e7b6f.tar.gz
Doxygen-20bd371f722f95bdf9da2d5c27753af4d38e7b6f.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
+