Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
527acc7e
Commit
527acc7e
authored
Jan 20, 2016
by
Dmitry Timoshkov
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Fix generation of resources containing an old typelib.
parent
1ea7eac3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
register.c
tools/widl/register.c
+6
-1
widl.c
tools/widl/widl.c
+3
-2
widl.h
tools/widl/widl.h
+1
-0
No files found.
tools/widl/register.c
View file @
527acc7e
...
...
@@ -316,7 +316,12 @@ void write_typelib_regscript( const statement_list_t *stmts )
if
(
count
&&
!
strendswith
(
typelib_name
,
".res"
))
error
(
"Cannot store multiple typelibs into %s
\n
"
,
typelib_name
);
else
create_msft_typelib
(
stmt
->
u
.
lib
);
{
if
(
do_old_typelib
)
create_sltg_typelib
(
stmt
->
u
.
lib
);
else
create_msft_typelib
(
stmt
->
u
.
lib
);
}
count
++
;
}
if
(
count
&&
strendswith
(
typelib_name
,
".res"
))
flush_output_resources
(
typelib_name
);
...
...
tools/widl/widl.c
View file @
527acc7e
...
...
@@ -102,6 +102,7 @@ int do_everything = 1;
static
int
preprocess_only
=
0
;
int
do_header
=
0
;
int
do_typelib
=
0
;
int
do_old_typelib
=
0
;
int
do_proxies
=
0
;
int
do_client
=
0
;
int
do_server
=
0
;
...
...
@@ -268,6 +269,7 @@ static void set_everything(int x)
{
do_header
=
x
;
do_typelib
=
x
;
do_old_typelib
=
x
;
do_proxies
=
x
;
do_client
=
x
;
do_server
=
x
;
...
...
@@ -648,8 +650,7 @@ static void option_callback( int optc, char *optarg )
do_typelib
=
1
;
break
;
case
OLD_TYPELIB_OPTION
:
do_everything
=
0
;
do_typelib
=
2
;
do_old_typelib
=
1
;
break
;
case
'T'
:
typelib_name
=
xstrdup
(
optarg
);
...
...
tools/widl/widl.h
View file @
527acc7e
...
...
@@ -39,6 +39,7 @@ extern int pedantic;
extern
int
do_everything
;
extern
int
do_header
;
extern
int
do_typelib
;
extern
int
do_old_typelib
;
extern
int
do_proxies
;
extern
int
do_client
;
extern
int
do_server
;
...
...
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