Module: wine Branch: master Commit: 361a39fff3fedaf38e686cd47542f874f0d0684e URL: http://source.winehq.org/git/wine.git/?a=commit;h=361a39fff3fedaf38e686cd475...
Author: Rob Shearman robertshearman@gmail.com Date: Tue Mar 23 13:33:24 2010 +0000
widl: Issue an error if a context handle variable is declared outside of a function.
---
tools/widl/parser.y | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/tools/widl/parser.y b/tools/widl/parser.y index c3e1af4..a6b6bce 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -2439,7 +2439,11 @@ static void check_field_common(const type_t *container_type, } case TGT_CTXT_HANDLE: case TGT_CTXT_HANDLE_POINTER: - /* FIXME */ + if (type_get_type(container_type) != TYPE_FUNCTION) + error_loc_info(&arg->loc_info, + "%s '%s' of %s '%s' cannot be a context handle\n", + var_type, arg->name, container_type_name, + container_name); break; case TGT_STRING: {