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
ba533617
Commit
ba533617
authored
Jan 18, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Use the real argument names in the C method macros.
parent
2cba11aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
header.c
tools/widl/header.c
+9
-11
No files found.
tools/widl/header.c
View file @
ba533617
...
...
@@ -578,23 +578,21 @@ static void write_method_macro(const type_t *iface, const char *name)
var_t
*
def
=
cur
->
def
;
if
(
!
is_callas
(
def
->
attrs
))
{
const
var_t
*
arg
;
int
argc
=
0
;
int
c
;
if
(
cur
->
args
)
LIST_FOR_EACH_ENTRY
(
arg
,
cur
->
args
,
const
var_t
,
entry
)
argc
++
;
fprintf
(
header
,
"#define %s_"
,
name
);
write_name
(
header
,
def
);
fprintf
(
header
,
"(p"
);
for
(
c
=
0
;
c
<
argc
;
c
++
)
fprintf
(
header
,
",%c"
,
c
+
'a'
);
fprintf
(
header
,
"(This"
);
if
(
cur
->
args
)
LIST_FOR_EACH_ENTRY
(
arg
,
cur
->
args
,
const
var_t
,
entry
)
fprintf
(
header
,
",%s"
,
arg
->
name
);
fprintf
(
header
,
") "
);
fprintf
(
header
,
"(
p
)->lpVtbl->"
);
fprintf
(
header
,
"(
This
)->lpVtbl->"
);
write_name
(
header
,
def
);
fprintf
(
header
,
"(p"
);
for
(
c
=
0
;
c
<
argc
;
c
++
)
fprintf
(
header
,
",%c"
,
c
+
'a'
);
fprintf
(
header
,
"(This"
);
if
(
cur
->
args
)
LIST_FOR_EACH_ENTRY
(
arg
,
cur
->
args
,
const
var_t
,
entry
)
fprintf
(
header
,
",%s"
,
arg
->
name
);
fprintf
(
header
,
")
\n
"
);
}
}
...
...
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