Kai Tietz : widl: Add async_uuid attribute base support in parser.

Alexandre Julliard julliard at winehq.org
Mon Aug 19 14:32:59 CDT 2013


Module: wine
Branch: master
Commit: f05853b28a8bf288d300e42f53fff9feeac327d7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f05853b28a8bf288d300e42f53fff9feeac327d7

Author: Kai Tietz <ktietz70 at googlemail.com>
Date:   Thu Aug  8 16:48:34 2013 +0200

widl: Add async_uuid attribute base support in parser.

---

 tools/widl/parser.y    |    2 ++
 tools/widl/widltypes.h |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index 08a42bb..5751598 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -556,6 +556,7 @@ attribute:					{ $$ = NULL; }
 	| tUSESGETLASTERROR			{ $$ = make_attr(ATTR_USESGETLASTERROR); }
 	| tUSERMARSHAL '(' type ')'		{ $$ = make_attrp(ATTR_USERMARSHAL, $3); }
 	| tUUID '(' uuid_string ')'		{ $$ = make_attrp(ATTR_UUID, $3); }
+	| tASYNCUUID '(' uuid_string ')'	{ $$ = make_attrp(ATTR_ASYNCUUID, $3); }
 	| tV1ENUM				{ $$ = make_attr(ATTR_V1ENUM); }
 	| tVARARG				{ $$ = make_attr(ATTR_VARARG); }
 	| tVERSION '(' version ')'		{ $$ = make_attrv(ATTR_VERSION, $3); }
@@ -2020,6 +2021,7 @@ struct allowed_attr allowed_attr[] =
     /* ATTR_ANNOTATION */          { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, "annotation" },
     /* ATTR_APPOBJECT */           { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, "appobject" },
     /* ATTR_ASYNC */               { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "async" },
+    /* ATTR_ASYNCUUID */           { 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, "async_uuid" },
     /* ATTR_AUTO_HANDLE */         { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "auto_handle" },
     /* ATTR_BINDABLE */            { 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "bindable" },
     /* ATTR_BROADCAST */           { 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "broadcast" },
diff --git a/tools/widl/widltypes.h b/tools/widl/widltypes.h
index 84e4467..efde0b0 100644
--- a/tools/widl/widltypes.h
+++ b/tools/widl/widltypes.h
@@ -70,6 +70,7 @@ enum attr_type
     ATTR_ANNOTATION,
     ATTR_APPOBJECT,
     ATTR_ASYNC,
+    ATTR_ASYNCUUID,
     ATTR_AUTO_HANDLE,
     ATTR_BINDABLE,
     ATTR_BROADCAST,




More information about the wine-cvs mailing list