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
5c982650
Commit
5c982650
authored
Oct 18, 2004
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added writing forward declaration of dispinterface.
parent
0fb8f4a1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
header.c
tools/widl/header.c
+2
-1
parser.y
tools/widl/parser.y
+1
-1
widltypes.h
tools/widl/widltypes.h
+1
-0
No files found.
tools/widl/header.c
View file @
5c982650
...
...
@@ -682,7 +682,8 @@ void write_forward(type_t *iface)
* attributes - however, if we don't have a full definition at this point
* (i.e. this is an IDL forward), then we also assume that it is an object
* interface, since non-object interfaces shouldn't need forwards */
if
((
!
iface
->
defined
||
is_object
(
iface
->
attrs
))
&&
!
iface
->
written
)
{
if
((
!
iface
->
defined
||
is_object
(
iface
->
attrs
)
||
is_attr
(
iface
->
attrs
,
ATTR_DISPINTERFACE
))
&&
!
iface
->
written
)
{
fprintf
(
header
,
"#ifndef __%s_FWD_DEFINED__
\n
"
,
iface
->
name
);
fprintf
(
header
,
"#define __%s_FWD_DEFINED__
\n
"
,
iface
->
name
);
fprintf
(
header
,
"typedef struct %s %s;
\n
"
,
iface
->
name
,
iface
->
name
);
...
...
tools/widl/parser.y
View file @
5c982650
...
...
@@ -595,7 +595,7 @@ dispinterface: tDISPINTERFACE aIDENTIFIER { $$ = get_type(0, $2, 0); }
dispinterfacehdr: attributes dispinterface { $$ = $2;
if ($$->defined) yyerror("multiple definition error\n");
$$->attrs = $1;
/* $$->attrs = make_attr(ATTR_DISPINTERFACE); */
$$->attrs = make_attr(ATTR_DISPINTERFACE);
/* LINK($$->attrs, $1); */
$$->ref = find_type("IDispatch", 0);
if (!$$->ref) yyerror("IDispatch is undefined\n");
...
...
tools/widl/widltypes.h
View file @
5c982650
...
...
@@ -98,6 +98,7 @@ enum attr_type
ATTR_V1ENUM
,
ATTR_VERSION
,
ATTR_WIREMARSHAL
,
ATTR_DISPINTERFACE
};
enum
expr_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