From 68604dbae79d772a3bde20d3661cff19f717d1b9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 6 Oct 2004 18:54:20 +0000 Subject: [PATCH] Allow defined types to be used as function names. --- include/exdisp.idl | 3 +-- tools/widl/parser.y | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/exdisp.idl b/include/exdisp.idl index 6bee4f0a50a..d7a7104b70a 100644 --- a/include/exdisp.idl +++ b/include/exdisp.idl @@ -100,8 +100,7 @@ interface IWebBrowserApp : IWebBrowser HRESULT PutProperty([in] BSTR szProperty, [in] VARIANT vtValue); HRESULT GetProperty([in] BSTR szProperty, [out] VARIANT *pvtValue); [propget] HRESULT Name([out] BSTR* Name); - /* FIXME: get_HWND should be propget too but widl gets confused by the HWND */ - HRESULT get_HWND([out] long *pHWND); + [propget] HRESULT HWND([out] long *pHWND); [propget] HRESULT FullName([out] BSTR* FullName); [propget] HRESULT Path([out] BSTR* Path); [propget] HRESULT Visible([out] VARIANT_BOOL* pBool); diff --git a/tools/widl/parser.y b/tools/widl/parser.y index d9cab5a5216..0569f026ade 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -525,6 +525,7 @@ t_ident: { $$ = NULL; } ident: aIDENTIFIER { $$ = make_var($1); } /* some "reserved words" used in attributes are also used as field names in some MS IDL files */ + | aKNOWNTYPE { $$ = make_var($1); } | tID { $$ = make_var($1); } | tRETVAL { $$ = make_var($1); } | tVERSION { $$ = make_var($1); } -- 2.11.4.GIT