Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0b3b28c2
Commit
0b3b28c2
authored
Jul 02, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Aug 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Add support for default_overload attribute.
Needed for IDeviceInformationStatics.
parent
b26ec54e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
0 deletions
+6
-0
attribute.c
tools/widl/attribute.c
+1
-0
parser.l
tools/widl/parser.l
+1
-0
parser.y
tools/widl/parser.y
+2
-0
widltypes.h
tools/widl/widltypes.h
+1
-0
write_msft.c
tools/widl/write_msft.c
+1
-0
No files found.
tools/widl/attribute.c
View file @
0b3b28c2
...
...
@@ -153,6 +153,7 @@ struct allowed_attr allowed_attr[] =
/* ATTR_CUSTOM */
{
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
"custom"
},
/* ATTR_DECODE */
{
0
,
0
,
0
,
1
,
1
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
"decode"
},
/* ATTR_DEFAULT */
{
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
1
,
0
,
0
,
0
,
0
,
"default"
},
/* ATTR_DEFAULT_OVERLOAD */
{
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
"default_overload"
},
/* ATTR_DEFAULTBIND */
{
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
"defaultbind"
},
/* ATTR_DEFAULTCOLLELEM */
{
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
"defaultcollelem"
},
/* ATTR_DEFAULTVALUE */
{
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
"defaultvalue"
},
...
...
tools/widl/parser.l
View file @
0b3b28c2
...
...
@@ -254,6 +254,7 @@ static void winrt_enable( int ns_prefix )
control { return tCONTROL; }
custom { return tCUSTOM; }
decode { return tDECODE; }
default_overload { return tDEFAULT_OVERLOAD; }
defaultbind { return tDEFAULTBIND; }
defaultcollelem { return tDEFAULTCOLLELEM; }
defaultvalue { return tDEFAULTVALUE; }
...
...
tools/widl/parser.y
View file @
0b3b28c2
...
...
@@ -196,6 +196,7 @@ void pop_import( PARSER_LTYPE *yylloc );
%token tDECLARE
%token tDECODE tDEFAULT tDEFAULTBIND
%token tDELEGATE
%token tDEFAULT_OVERLOAD
%token tDEFAULTCOLLELEM
%token tDEFAULTVALUE
%token tDEFAULTVTABLE
...
...
@@ -662,6 +663,7 @@ attribute
}
| tDECODE { $$ = attr_int( @$, ATTR_DECODE, 0 ); }
| tDEFAULT { $$ = attr_int( @$, ATTR_DEFAULT, 0 ); }
| tDEFAULT_OVERLOAD { $$ = attr_int( @$, ATTR_DEFAULT_OVERLOAD, 0 ); }
| tDEFAULTBIND { $$ = attr_int( @$, ATTR_DEFAULTBIND, 0 ); }
| tDEFAULTCOLLELEM { $$ = attr_int( @$, ATTR_DEFAULTCOLLELEM, 0 ); }
| tDEFAULTVALUE '(' expr_const ')' { $$ = attr_ptr( @$, ATTR_DEFAULTVALUE, $3 ); }
...
...
tools/widl/widltypes.h
View file @
0b3b28c2
...
...
@@ -92,6 +92,7 @@ enum attr_type
ATTR_CUSTOM
,
ATTR_DECODE
,
ATTR_DEFAULT
,
ATTR_DEFAULT_OVERLOAD
,
ATTR_DEFAULTBIND
,
ATTR_DEFAULTCOLLELEM
,
ATTR_DEFAULTVALUE
,
...
...
tools/widl/write_msft.c
View file @
0b3b28c2
...
...
@@ -1418,6 +1418,7 @@ static int add_func_desc(msft_typeinfo_t* typeinfo, var_t *func, int index)
break
;
case
ATTR_OUT
:
break
;
case
ATTR_DEFAULT_OVERLOAD
:
case
ATTR_OVERLOAD
:
break
;
case
ATTR_PROPGET
:
...
...
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