mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
cpp: Now able to handle K&R style function headers #1136
git-svn-id: svn://ultimatepp.org/upp/trunk@8611 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e36bf4b25f
commit
62bb7634f6
1 changed files with 3 additions and 0 deletions
|
|
@ -843,6 +843,9 @@ void Parser::Declarator(Decl& d, const char *p)
|
|||
ParamList(d);
|
||||
p = lex.Pos();
|
||||
Qualifier();
|
||||
if(filetype == FILE_C && lex != '{' && lex != ';') // K&R style function header
|
||||
while(lex != '{' && lex != t_eof)
|
||||
++lex;
|
||||
}
|
||||
}
|
||||
EatInitializers();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue