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
7e4462e2
Commit
7e4462e2
authored
Aug 29, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Generate names for imported nameless typedefs.
parent
2510ec47
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
parser.y
tools/widl/parser.y
+2
-2
widl.c
tools/widl/widl.c
+3
-2
widl.h
tools/widl/widl.h
+1
-0
No files found.
tools/widl/parser.y
View file @
7e4462e2
...
...
@@ -1840,7 +1840,7 @@ static type_t *reg_typedefs(decl_spec_t *decl_spec, declarator_list_t *decls, at
type_get_type_detect_alias(type) == TYPE_STRUCT ||
type_get_type_detect_alias(type) == TYPE_UNION ||
type_get_type_detect_alias(type) == TYPE_ENCAPSULATED_UNION) &&
!type->name
&& !parse_only
)
!type->name)
{
if (! is_attr(attrs, ATTR_PUBLIC) && ! is_attr (attrs, ATTR_HIDDEN))
attrs = append_attr( attrs, make_attr(ATTR_PUBLIC) );
...
...
@@ -1980,7 +1980,7 @@ static char *gen_name(void)
if (! file_id)
{
char *dst = dup_basename(input_name, ".idl");
char *dst = dup_basename(input_
idl_
name, ".idl");
file_id = dst;
for (; *dst; ++dst)
...
...
tools/widl/widl.c
View file @
7e4462e2
...
...
@@ -118,6 +118,7 @@ int do_rt_extension = 0;
static
enum
stub_mode
stub_mode
=
MODE_Os
;
char
*
input_name
;
char
*
input_idl_name
;
char
*
header_name
;
char
*
local_stubs_name
;
char
*
header_token
;
...
...
@@ -488,7 +489,7 @@ void write_id_data(const statement_list_t *stmts)
}
fprintf
(
idfile
,
"/*** Autogenerated by WIDL %s "
,
PACKAGE_VERSION
);
fprintf
(
idfile
,
"from %s - Do not edit ***/
\n\n
"
,
input_name
);
fprintf
(
idfile
,
"from %s - Do not edit ***/
\n\n
"
,
input_
idl_
name
);
fprintf
(
idfile
,
"#include <rpc.h>
\n
"
);
fprintf
(
idfile
,
"#include <rpcndr.h>
\n\n
"
);
fprintf
(
idfile
,
"#include <initguid.h>
\n\n
"
);
...
...
@@ -706,7 +707,7 @@ int main(int argc,char *argv[])
return
1
;
}
else
input_name
=
xstrdup
(
argv
[
optind
]);
input_
idl_name
=
input_
name
=
xstrdup
(
argv
[
optind
]);
}
else
{
fprintf
(
stderr
,
"%s"
,
usage
);
...
...
tools/widl/widl.h
View file @
7e4462e2
...
...
@@ -52,6 +52,7 @@ extern int win64_packing;
extern
int
do_rt_extension
;
extern
char
*
input_name
;
extern
char
*
input_idl_name
;
extern
char
*
header_name
;
extern
char
*
header_token
;
extern
char
*
local_stubs_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