Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
537773fb
Commit
537773fb
authored
Oct 21, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Add some more attribute keywords.
parent
d4e8f303
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
0 deletions
+51
-0
parser.l
tools/widl/parser.l
+28
-0
parser.y
tools/widl/parser.y
+0
-0
widltypes.h
tools/widl/widltypes.h
+23
-0
No files found.
tools/widl/parser.l
View file @
537773fb
...
...
@@ -304,15 +304,22 @@ static const struct keyword attr_keywords[] =
{"context_handle_noserialize", tCONTEXTHANDLENOSERIALIZE},
{"context_handle_serialize", tCONTEXTHANDLENOSERIALIZE},
{"control", tCONTROL},
{"decode", tDECODE},
{"defaultbind", tDEFAULTBIND},
{"defaultcollelem", tDEFAULTCOLLELEM},
{"defaultvalue", tDEFAULTVALUE},
{"defaultvtable", tDEFAULTVTABLE},
{"disable_consistency_check", tDISABLECONSISTENCYCHECK},
{"displaybind", tDISPLAYBIND},
{"dllname", tDLLNAME},
{"dual", tDUAL},
{"enable_allocate", tENABLEALLOCATE},
{"encode", tENCODE},
{"endpoint", tENDPOINT},
{"entry", tENTRY},
{"explicit_handle", tEXPLICITHANDLE},
{"fault_status", tFAULTSTATUS},
{"force_allocate", tFORCEALLOCATE},
{"handle", tHANDLE},
{"helpcontext", tHELPCONTEXT},
{"helpfile", tHELPFILE},
...
...
@@ -322,6 +329,7 @@ static const struct keyword attr_keywords[] =
{"hidden", tHIDDEN},
{"id", tID},
{"idempotent", tIDEMPOTENT},
{"ignore", tIGNORE},
{"iid_is", tIIDIS},
{"immediatebind", tIMMEDIATEBIND},
{"implicit_handle", tIMPLICITHANDLE},
...
...
@@ -330,24 +338,34 @@ static const struct keyword attr_keywords[] =
{"input_sync", tINPUTSYNC},
{"lcid", tLCID},
{"length_is", tLENGTHIS},
{"licensed", tLICENSED},
{"local", tLOCAL},
{"maybe", tMAYBE},
{"message", tMESSAGE},
{"nocode", tNOCODE},
{"nonbrowsable", tNONBROWSABLE},
{"noncreatable", tNONCREATABLE},
{"nonextensible", tNONEXTENSIBLE},
{"notify", tNOTIFY},
{"notify_flag", tNOTIFYFLAG},
{"object", tOBJECT},
{"odl", tODL},
{"oleautomation", tOLEAUTOMATION},
{"optimize", tOPTIMIZE},
{"optional", tOPTIONAL},
{"out", tOUT},
{"partial_ignore", tPARTIALIGNORE},
{"pointer_default", tPOINTERDEFAULT},
{"propget", tPROPGET},
{"propput", tPROPPUT},
{"propputref", tPROPPUTREF},
{"proxy", tPROXY},
{"ptr", tPTR},
{"public", tPUBLIC},
{"range", tRANGE},
{"readonly", tREADONLY},
{"ref", tREF},
{"represent_as", tREPRESENTAS},
{"requestedit", tREQUESTEDIT},
{"restricted", tRESTRICTED},
{"retval", tRETVAL},
...
...
@@ -358,7 +376,10 @@ static const struct keyword attr_keywords[] =
{"switch_is", tSWITCHIS},
{"switch_type", tSWITCHTYPE},
{"transmit_as", tTRANSMITAS},
{"uidefault", tUIDEFAULT},
{"unique", tUNIQUE},
{"user_marshal", tUSERMARSHAL},
{"usesgetlasterror", tUSESGETLASTERROR},
{"uuid", tUUID},
{"v1_enum", tV1ENUM},
{"vararg", tVARARG},
...
...
@@ -366,6 +387,13 @@ static const struct keyword attr_keywords[] =
{"wire_marshal", tWIREMARSHAL},
};
/* attributes TODO:
custom
first_is
last_is
max_is
min_is
*/
#define KWP(p) ((const struct keyword *)(p))
...
...
tools/widl/parser.y
View file @
537773fb
This diff is collapsed.
Click to expand it.
tools/widl/widltypes.h
View file @
537773fb
...
...
@@ -74,20 +74,29 @@ enum attr_type
ATTR_CALLAS
,
ATTR_CALLCONV
,
/* calling convention pseudo-attribute */
ATTR_CASE
,
ATTR_CODE
,
ATTR_COMMSTATUS
,
ATTR_CONST
,
/* const pseudo-attribute */
ATTR_CONTEXTHANDLE
,
ATTR_CONTROL
,
ATTR_DECODE
,
ATTR_DEFAULT
,
ATTR_DEFAULTBIND
,
ATTR_DEFAULTCOLLELEM
,
ATTR_DEFAULTVALUE
,
ATTR_DEFAULTVTABLE
,
ATTR_DISABLECONSISTENCYCHECK
,
ATTR_DISPINTERFACE
,
ATTR_DISPLAYBIND
,
ATTR_DLLNAME
,
ATTR_DUAL
,
ATTR_ENABLEALLOCATE
,
ATTR_ENCODE
,
ATTR_ENDPOINT
,
ATTR_ENTRY
,
ATTR_EXPLICIT_HANDLE
,
ATTR_FAULTSTATUS
,
ATTR_FORCEALLOCATE
,
ATTR_HANDLE
,
ATTR_HELPCONTEXT
,
ATTR_HELPFILE
,
...
...
@@ -97,6 +106,7 @@ enum attr_type
ATTR_HIDDEN
,
ATTR_ID
,
ATTR_IDEMPOTENT
,
ATTR_IGNORE
,
ATTR_IIDIS
,
ATTR_IMMEDIATEBIND
,
ATTR_IMPLICIT_HANDLE
,
...
...
@@ -105,24 +115,34 @@ enum attr_type
ATTR_INPUTSYNC
,
ATTR_LENGTHIS
,
ATTR_LIBLCID
,
ATTR_LICENSED
,
ATTR_LOCAL
,
ATTR_MAYBE
,
ATTR_MESSAGE
,
ATTR_NOCODE
,
ATTR_NONBROWSABLE
,
ATTR_NONCREATABLE
,
ATTR_NONEXTENSIBLE
,
ATTR_NOTIFY
,
ATTR_NOTIFYFLAG
,
ATTR_OBJECT
,
ATTR_ODL
,
ATTR_OLEAUTOMATION
,
ATTR_OPTIMIZE
,
ATTR_OPTIONAL
,
ATTR_OUT
,
ATTR_PARAMLCID
,
ATTR_PARTIALIGNORE
,
ATTR_POINTERDEFAULT
,
ATTR_POINTERTYPE
,
ATTR_PROPGET
,
ATTR_PROPPUT
,
ATTR_PROPPUTREF
,
ATTR_PROXY
,
ATTR_PUBLIC
,
ATTR_RANGE
,
ATTR_READONLY
,
ATTR_REPRESENTAS
,
ATTR_REQUESTEDIT
,
ATTR_RESTRICTED
,
ATTR_RETVAL
,
...
...
@@ -133,6 +153,9 @@ enum attr_type
ATTR_SWITCHIS
,
ATTR_SWITCHTYPE
,
ATTR_TRANSMITAS
,
ATTR_UIDEFAULT
,
ATTR_USERMARSHAL
,
ATTR_USESGETLASTERROR
,
ATTR_UUID
,
ATTR_V1ENUM
,
ATTR_VARARG
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment