Allow (void) qc-style functions.

This commit is contained in:
Bill Currie 2011-02-13 17:37:11 +09:00
parent d75c35ba30
commit 547f361bd3

View file

@ -618,6 +618,12 @@ function_params
qc_func_params
: '(' ')' { $$ = 0; }
| '(' ps qc_var_list ')' { $$ = check_params ($3); }
| '(' ps TYPE ')'
{
if ($3 != &type_void)
PARSE_ERROR;
$$ = 0;
}
;
ps : ;