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
40672f99
Commit
40672f99
authored
Jul 22, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support objects with no method definitions (suggested by Jon
Griffiths).
parent
a1c16d28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
header.c
tools/widl/header.c
+13
-3
proxy.c
tools/widl/proxy.c
+1
-5
No files found.
tools/widl/header.c
View file @
40672f99
...
...
@@ -426,6 +426,7 @@ static void write_icom_method_def(type_t *iface)
{
func_t
*
cur
=
iface
->
funcs
;
if
(
iface
->
ref
)
write_icom_method_def
(
iface
->
ref
);
if
(
!
cur
)
return
;
while
(
NEXT_LINK
(
cur
))
cur
=
NEXT_LINK
(
cur
);
if
(
cur
)
fprintf
(
header
,
"
\\\n
/*** %s methods ***/"
,
iface
->
name
);
while
(
cur
)
{
...
...
@@ -461,10 +462,13 @@ static int write_method_macro(type_t *iface, char *name)
{
int
idx
;
func_t
*
cur
=
iface
->
funcs
;
while
(
NEXT_LINK
(
cur
))
cur
=
NEXT_LINK
(
cur
);
if
(
iface
->
ref
)
idx
=
write_method_macro
(
iface
->
ref
,
name
);
else
idx
=
0
;
if
(
!
cur
)
return
idx
;
while
(
NEXT_LINK
(
cur
))
cur
=
NEXT_LINK
(
cur
);
fprintf
(
header
,
"/*** %s methods ***/
\n
"
,
iface
->
name
);
while
(
cur
)
{
var_t
*
def
=
cur
->
def
;
...
...
@@ -533,6 +537,8 @@ void write_args(FILE *h, var_t *arg, char *name, int method)
static
void
write_cpp_method_def
(
type_t
*
iface
)
{
func_t
*
cur
=
iface
->
funcs
;
if
(
!
cur
)
return
;
while
(
NEXT_LINK
(
cur
))
cur
=
NEXT_LINK
(
cur
);
while
(
cur
)
{
var_t
*
def
=
cur
->
def
;
...
...
@@ -554,9 +560,11 @@ static void write_cpp_method_def(type_t *iface)
static
void
do_write_c_method_def
(
type_t
*
iface
,
char
*
name
)
{
func_t
*
cur
=
iface
->
funcs
;
while
(
NEXT_LINK
(
cur
))
cur
=
NEXT_LINK
(
cur
);
if
(
iface
->
ref
)
do_write_c_method_def
(
iface
->
ref
,
name
);
if
(
!
cur
)
return
;
while
(
NEXT_LINK
(
cur
))
cur
=
NEXT_LINK
(
cur
);
indent
(
0
);
fprintf
(
header
,
"/*** %s methods ***/
\n
"
,
iface
->
name
);
while
(
cur
)
{
...
...
@@ -583,6 +591,8 @@ static void write_c_method_def(type_t *iface)
static
void
write_method_proto
(
type_t
*
iface
)
{
func_t
*
cur
=
iface
->
funcs
;
if
(
!
cur
)
return
;
while
(
NEXT_LINK
(
cur
))
cur
=
NEXT_LINK
(
cur
);
while
(
cur
)
{
var_t
*
def
=
cur
->
def
;
...
...
@@ -679,7 +689,7 @@ void write_guid(type_t *iface)
void
write_com_interface
(
type_t
*
iface
)
{
if
(
!
iface
->
funcs
)
{
if
(
!
iface
->
funcs
&&
!
iface
->
ref
)
{
yywarning
(
"%s has no methods"
,
iface
->
name
);
return
;
}
...
...
tools/widl/proxy.c
View file @
40672f99
...
...
@@ -232,11 +232,7 @@ void write_proxy(type_t *iface)
func_t
*
cur
=
iface
->
funcs
;
if_list
*
if_cur
;
if
(
!
cur
)
{
yywarning
(
"%s has no methods"
,
iface
->
name
);
return
;
}
if
(
!
cur
)
return
;
if
(
header_only
)
return
;
while
(
NEXT_LINK
(
cur
))
cur
=
NEXT_LINK
(
cur
);
...
...
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