widl: Check the attributes applied to function declarations.

This commit is contained in:
Rob Shearman 2009-03-20 16:14:08 +00:00 committed by Alexandre Julliard
parent 27a6bb5f08
commit 12b23fa220
1 changed files with 3 additions and 2 deletions

View File

@ -2513,8 +2513,9 @@ static statement_t *make_statement_declaration(var_t *var)
if (var->eval)
reg_const(var);
}
else if ((var->stgclass == STG_NONE || var->stgclass == STG_REGISTER) &&
type_get_type(var->type) != TYPE_FUNCTION)
else if (type_get_type(var->type) == TYPE_FUNCTION)
check_function_attrs(var->name, var->attrs);
else if (var->stgclass == STG_NONE || var->stgclass == STG_REGISTER)
error_loc("instantiation of data is illegal\n");
return stmt;
}