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
e4b0266b
Commit
e4b0266b
authored
Apr 11, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Apr 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Support non-default calling conventions for non-object functions.
parent
5483ea9e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
client.c
tools/widl/client.c
+2
-0
header.c
tools/widl/header.c
+2
-0
No files found.
tools/widl/client.c
View file @
e4b0266b
...
...
@@ -102,6 +102,7 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset)
const
var_t
*
explicit_generic_handle_var
=
NULL
;
const
var_t
*
context_handle_var
=
NULL
;
int
has_full_pointer
=
is_full_pointer_function
(
func
);
const
char
*
callconv
=
get_attrp
(
def
->
type
->
attrs
,
ATTR_CALLCONV
);
/* check for a defined binding handle */
explicit_handle_var
=
get_explicit_handle_var
(
func
);
...
...
@@ -131,6 +132,7 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset)
write_type_decl_left
(
client
,
get_func_return_type
(
func
));
if
(
needs_space_after
(
get_func_return_type
(
func
)))
fprintf
(
client
,
" "
);
if
(
callconv
)
fprintf
(
client
,
"%s "
,
callconv
);
write_prefix_name
(
client
,
prefix_client
,
def
);
fprintf
(
client
,
"(
\n
"
);
indent
++
;
...
...
tools/widl/header.c
View file @
e4b0266b
...
...
@@ -879,10 +879,12 @@ void write_locals(FILE *fp, const type_t *iface, int body)
static
void
write_function_proto
(
const
type_t
*
iface
,
const
func_t
*
fun
,
const
char
*
prefix
)
{
var_t
*
def
=
fun
->
def
;
const
char
*
callconv
=
get_attrp
(
def
->
type
->
attrs
,
ATTR_CALLCONV
);
/* FIXME: do we need to handle call_as? */
write_type_decl_left
(
header
,
get_func_return_type
(
fun
));
fprintf
(
header
,
" "
);
if
(
callconv
)
fprintf
(
header
,
"%s "
,
callconv
);
write_prefix_name
(
header
,
prefix
,
def
);
fprintf
(
header
,
"(
\n
"
);
if
(
fun
->
args
)
...
...
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