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
996c4f1f
Commit
996c4f1f
authored
Jun 06, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jun 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Support coclass forward declarations.
parent
63c8dd4f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
header.c
tools/widl/header.c
+8
-0
header.h
tools/widl/header.h
+1
-0
parser.y
tools/widl/parser.y
+2
-0
No files found.
tools/widl/header.c
View file @
996c4f1f
...
...
@@ -1004,3 +1004,11 @@ void write_coclass(class_t *cocl)
write_coclass_guid
(
cocl
);
fprintf
(
header
,
"
\n
"
);
}
void
write_coclass_forward
(
class_t
*
cocl
)
{
fprintf
(
header
,
"#ifndef __%s_FWD_DEFINED__
\n
"
,
cocl
->
name
);
fprintf
(
header
,
"#define __%s_FWD_DEFINED__
\n
"
,
cocl
->
name
);
fprintf
(
header
,
"typedef struct %s %s;
\n
"
,
cocl
->
name
,
cocl
->
name
);
fprintf
(
header
,
"#endif /* defined __%s_FWD_DEFINED__
\n\n
"
,
cocl
->
name
);
}
tools/widl/header.h
View file @
996c4f1f
...
...
@@ -37,6 +37,7 @@ extern void write_forward(type_t *iface);
extern
void
write_interface
(
type_t
*
iface
);
extern
void
write_dispinterface
(
type_t
*
iface
);
extern
void
write_coclass
(
class_t
*
iface
);
extern
void
write_coclass_forward
(
class_t
*
iface
);
extern
void
write_typedef
(
type_t
*
type
,
const
var_t
*
names
);
extern
void
write_expr
(
FILE
*
h
,
const
expr_t
*
e
,
int
brackets
);
extern
void
write_constdef
(
const
var_t
*
v
);
...
...
tools/widl/parser.y
View file @
996c4f1f
...
...
@@ -239,6 +239,7 @@ input: gbl_statements { write_proxies($1); write_client
gbl_statements: { $$ = NULL; }
| gbl_statements interfacedec { $$ = $1; }
| gbl_statements interfacedef { $$ = make_ifref($2); LINK($$, $1); }
| gbl_statements coclass ';' { $$ = $1; if (!parse_only && do_header) write_coclass_forward($2); }
| gbl_statements coclassdef { $$ = $1; add_coclass($2); }
| gbl_statements moduledef { $$ = $1; add_module($2); }
| gbl_statements librarydef { $$ = $1; }
...
...
@@ -248,6 +249,7 @@ gbl_statements: { $$ = NULL; }
imp_statements: {}
| imp_statements interfacedec { if (!parse_only) add_interface($2); }
| imp_statements interfacedef { if (!parse_only) add_interface($2); }
| imp_statements coclass ';' {}
| imp_statements coclassdef { if (!parse_only) add_coclass($2); }
| imp_statements moduledef { if (!parse_only) add_module($2); }
| imp_statements statement {}
...
...
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