Rob Shearman : widl: Check the attributes applied to function declarations.
Alexandre Julliard
julliard at winehq.org
Mon Mar 23 12:34:53 CDT 2009
Module: wine
Branch: master
Commit: 12b23fa220536945aef847194284ea44c2382323
URL: http://source.winehq.org/git/wine.git/?a=commit;h=12b23fa220536945aef847194284ea44c2382323
Author: Rob Shearman <robertshearman at gmail.com>
Date: Fri Mar 20 16:14:08 2009 +0000
widl: Check the attributes applied to function declarations.
---
tools/widl/parser.y | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index fe3db86..7fe373c 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -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;
}
More information about the wine-cvs
mailing list