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
b568287e
Commit
b568287e
authored
Aug 01, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Add support for generating typelibs directly in resource format.
parent
36e73eb3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
6 deletions
+10
-6
parser.y
tools/widl/parser.y
+0
-1
typelib.c
tools/widl/typelib.c
+0
-2
widl.man.in
tools/widl/widl.man.in
+3
-1
widltypes.h
tools/widl/widltypes.h
+0
-1
write_msft.c
tools/widl/write_msft.c
+7
-1
No files found.
tools/widl/parser.y
View file @
b568287e
...
...
@@ -1725,7 +1725,6 @@ static typelib_t *make_library(const char *name, const attr_list_t *attrs)
{
typelib_t *typelib = xmalloc(sizeof(*typelib));
typelib->name = xstrdup(name);
typelib->filename = NULL;
typelib->attrs = attrs;
list_init( &typelib->importlibs );
return typelib;
...
...
tools/widl/typelib.c
View file @
b568287e
...
...
@@ -255,9 +255,7 @@ unsigned short get_type_vt(type_t *t)
void
start_typelib
(
typelib_t
*
typelib_type
)
{
if
(
!
do_typelib
)
return
;
typelib
=
typelib_type
;
typelib
->
filename
=
xstrdup
(
typelib_name
);
}
void
end_typelib
(
void
)
...
...
tools/widl/widl.man.in
View file @
b568287e
...
...
@@ -48,7 +48,9 @@ Use old naming conventions.
.PP
.B Type library options:
.IP \fB-t\fR
Generate a type library. The default output filename is \fIinfile\fB.tlb\fR.
Generate a type library. The default output filename is
\fIinfile\fB.tlb\fR. If the output file name ends in \fB.res\fR, a
binary resource file containing the type library is generated instead.
.IP "\fB-m32, -m64\fR"
Generate a Win32, respectively Win64, type library.
.PP
...
...
tools/widl/widltypes.h
View file @
b568287e
...
...
@@ -494,7 +494,6 @@ struct _importlib_t {
struct
_typelib_t
{
char
*
name
;
char
*
filename
;
const
attr_list_t
*
attrs
;
struct
list
importlibs
;
statement_list_t
*
stmts
;
...
...
tools/widl/write_msft.c
View file @
b568287e
...
...
@@ -2542,7 +2542,13 @@ static void save_all_changes(msft_typelib_t *typelib)
ctl2_write_segment
(
typelib
,
MSFT_SEG_CUSTDATAGUID
);
ctl2_write_typeinfos
(
typelib
);
flush_output_buffer
(
typelib
->
typelib
->
filename
);
if
(
strendswith
(
typelib_name
,
".res"
))
/* create a binary resource file */
{
add_output_to_resources
(
"TYPELIB"
,
"#1"
);
flush_output_resources
(
typelib_name
);
}
else
flush_output_buffer
(
typelib_name
);
}
int
create_msft_typelib
(
typelib_t
*
typelib
)
...
...
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