Skip to content

Commit

Permalink
Fixed sig11 regression while parsing cast to function pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Mar 11, 2020
1 parent 30887ac commit a825e8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/code.l
Original file line number Diff line number Diff line change
Expand Up @@ -1199,10 +1199,10 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
generateClassOrGlobalLink(yyscanner,*yyextra->code,yytext);
yyextra->name+=yytext;
}
<Body>"("{B}*("*"{B}*)+{SCOPENAME}*{B}*")"/{B}* { // (*p)->func() but not "if (p) ..."
<Body>"("{B}*("*"{B}*)+{SCOPENAME}+{B}*")"/{B}* { // (*p)->func() but not "if (p) ..."
yyextra->code->codify(yytext);
uint s=0;while (s<(uint)yyleng && !isId(yytext[s])) s++;
uint e=(uint)yyleng-1;while (!isId(yytext[e])) e--;
uint e=(uint)yyleng-1;while (e>1 && !isId(yytext[e])) e--;
QCString varname = ((QCString)yytext).mid(s,e-s+1);
addType(yyscanner);
yyextra->name=varname;
Expand Down Expand Up @@ -1896,10 +1896,10 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
generateClassOrGlobalLink(yyscanner,*yyextra->code,yytext);
BEGIN( MemberCall2 );
}
<FuncCall,MemberCall2>("("{B}*("*"{B}*)+{ID}*{B}*")"{B}*)/("."|"->") {
<FuncCall,MemberCall2>("("{B}*("*"{B}*)+{ID}+{B}*")"{B}*)/("."|"->") {
yyextra->code->codify(yytext);
uint s=0;while (!isId(yytext[s])) s++;
uint e=(uint)yyleng-1;while (!isId(yytext[e])) e--;
uint e=(uint)yyleng-1;while (e>1 && !isId(yytext[e])) e--;
yyextra->name=((QCString)yytext).mid(s,e-s+1);
BEGIN( MemberCall2 );
}
Expand Down

0 comments on commit a825e8d

Please sign in to comment.