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
226e9634
Commit
226e9634
authored
Oct 21, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Use get_size_procformatstring_func() for clients too instead of duplicating the code.
parent
2debb114
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
client.c
tools/widl/client.c
+1
-10
No files found.
tools/widl/client.c
View file @
226e9634
...
...
@@ -76,7 +76,6 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset)
{
const
statement_t
*
stmt
;
const
char
*
implicit_handle
=
get_attrp
(
iface
->
attrs
,
ATTR_IMPLICIT_HANDLE
);
const
var_t
*
var
;
int
method_count
=
0
;
if
(
!
implicit_handle
)
...
...
@@ -297,15 +296,7 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset)
}
/* update proc_offset */
if
(
args
)
{
LIST_FOR_EACH_ENTRY
(
var
,
args
,
const
var_t
,
entry
)
*
proc_offset
+=
get_size_procformatstring_type
(
var
->
name
,
var
->
type
,
var
->
attrs
);
}
if
(
!
is_void
(
type_function_get_rettype
(
func
->
type
)))
*
proc_offset
+=
get_size_procformatstring_type
(
"return value"
,
type_function_get_rettype
(
func
->
type
),
NULL
);
else
*
proc_offset
+=
2
;
/* FC_END and FC_PAD */
*
proc_offset
+=
get_size_procformatstring_func
(
func
);
indent
--
;
print_client
(
"}
\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