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
a10740f3
Commit
a10740f3
authored
Mar 24, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Remove custom attribute creation helper.
parent
7771a9ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
13 deletions
+4
-13
attribute.c
tools/widl/attribute.c
+0
-11
parser.y
tools/widl/parser.y
+4
-1
widl.h
tools/widl/widl.h
+0
-1
No files found.
tools/widl/attribute.c
View file @
a10740f3
...
...
@@ -40,17 +40,6 @@ attr_t *attr_ptr( enum attr_type attr_type, void *val )
return
a
;
}
attr_t
*
make_custom_attr
(
struct
uuid
*
id
,
expr_t
*
pval
)
{
attr_t
*
a
=
xmalloc
(
sizeof
(
attr_t
)
);
attr_custdata_t
*
cstdata
=
xmalloc
(
sizeof
(
attr_custdata_t
)
);
a
->
type
=
ATTR_CUSTOM
;
cstdata
->
id
=
*
id
;
cstdata
->
pval
=
pval
;
a
->
u
.
pval
=
cstdata
;
return
a
;
}
int
is_attr
(
const
attr_list_t
*
list
,
enum
attr_type
attr_type
)
{
const
attr_t
*
attr
;
...
...
tools/widl/parser.y
View file @
a10740f3
...
...
@@ -625,7 +625,10 @@ attribute
| tCONTRACT '(' contract_req ')' { $$ = attr_ptr( ATTR_CONTRACT, $3 ); }
| tCONTRACTVERSION '(' contract_ver ')' { $$ = attr_int( ATTR_CONTRACTVERSION, $3 ); }
| tCONTROL { $$ = attr_int( ATTR_CONTROL, 0 ); }
| tCUSTOM '(' aUUID ',' expr_const ')' { $$ = make_custom_attr( $3, $5 ); }
| tCUSTOM '(' aUUID ',' expr_const ')' { attr_custdata_t *data = xmalloc( sizeof(*data) );
data->id = *$3; data->pval = $5;
$$ = attr_ptr( ATTR_CUSTOM, data );
}
| tDECODE { $$ = attr_int( ATTR_DECODE, 0 ); }
| tDEFAULT { $$ = attr_int( ATTR_DEFAULT, 0 ); }
| tDEFAULTBIND { $$ = attr_int( ATTR_DEFAULTBIND, 0 ); }
...
...
tools/widl/widl.h
View file @
a10740f3
...
...
@@ -99,7 +99,6 @@ extern void end_cplusplus_guard(FILE *fp);
extern
attr_t
*
attr_int
(
enum
attr_type
attr_type
,
unsigned
int
val
);
extern
attr_t
*
attr_ptr
(
enum
attr_type
attr_type
,
void
*
val
);
extern
attr_t
*
make_custom_attr
(
struct
uuid
*
id
,
expr_t
*
pval
);
extern
int
is_attr
(
const
attr_list_t
*
list
,
enum
attr_type
attr_type
);
extern
int
is_ptrchain_attr
(
const
var_t
*
var
,
enum
attr_type
attr_type
);
...
...
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