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
3d9454bc
Commit
3d9454bc
authored
Jan 18, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Make it possible to set typelib resource id with id attribute.
parent
e73aa3e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
parser.y
tools/widl/parser.y
+1
-1
write_msft.c
tools/widl/write_msft.c
+6
-1
No files found.
tools/widl/parser.y
View file @
3d9454bc
...
...
@@ -2057,7 +2057,7 @@ struct allowed_attr allowed_attr[] =
/* ATTR_HELPSTRINGCONTEXT */ { 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, "helpstringcontext" },
/* ATTR_HELPSTRINGDLL */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, "helpstringdll" },
/* ATTR_HIDDEN */ { 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, "hidden" },
/* ATTR_ID */ { 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
0
, 0, 0, 0, "id" },
/* ATTR_ID */ { 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
1
, 0, 0, 0, "id" },
/* ATTR_IDEMPOTENT */ { 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "idempotent" },
/* ATTR_IGNORE */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, "ignore" },
/* ATTR_IIDIS */ { 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, "iid_is" },
...
...
tools/widl/write_msft.c
View file @
3d9454bc
...
...
@@ -2547,7 +2547,12 @@ static void save_all_changes(msft_typelib_t *typelib)
if
(
strendswith
(
typelib_name
,
".res"
))
/* create a binary resource file */
{
add_output_to_resources
(
"TYPELIB"
,
"#1"
);
char
typelib_id
[
13
]
=
"#1"
;
expr_t
*
expr
=
get_attrp
(
typelib
->
typelib
->
attrs
,
ATTR_ID
);
if
(
expr
)
sprintf
(
typelib_id
,
"#%d"
,
expr
->
cval
);
add_output_to_resources
(
"TYPELIB"
,
typelib_id
);
output_typelib_regscript
(
typelib
->
typelib
);
flush_output_resources
(
typelib_name
);
}
...
...
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