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
4acabfd7
Commit
4acabfd7
authored
Dec 26, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Dec 26, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Out parameters.
Marshall and unmarshall out parameters for servers and clients respectively. Write out array components for declared local variables in generated server code.
parent
e0dd7b6e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
1 deletion
+7
-1
client.c
tools/widl/client.c
+2
-0
header.c
tools/widl/header.c
+1
-1
header.h
tools/widl/header.h
+1
-0
server.c
tools/widl/server.c
+3
-0
No files found.
tools/widl/client.c
View file @
4acabfd7
...
...
@@ -210,6 +210,8 @@ static void write_function_stubs(type_t *iface)
print_client
(
"_StubMsg.BufferStart = (unsigned char *)_RpcMessage.Buffer;
\n
"
);
print_client
(
"_StubMsg.BufferEnd = _StubMsg.BufferStart + _RpcMessage.BufferLength;
\n\n
"
);
unmarshall_arguments
(
client
,
indent
,
func
,
&
type_offset
,
PASS_OUT
);
/* unmarshal return value */
if
(
!
is_void
(
def
->
type
,
NULL
))
{
...
...
tools/widl/header.c
View file @
4acabfd7
...
...
@@ -115,7 +115,7 @@ const char* get_name(const var_t *v)
return
v
->
name
;
}
static
void
write_array
(
FILE
*
h
,
const
expr_t
*
v
,
int
field
)
void
write_array
(
FILE
*
h
,
const
expr_t
*
v
,
int
field
)
{
if
(
!
v
)
return
;
while
(
NEXT_LINK
(
v
))
v
=
NEXT_LINK
(
v
);
...
...
tools/widl/header.h
View file @
4acabfd7
...
...
@@ -32,6 +32,7 @@ extern int is_object(attr_t *a);
extern
int
is_local
(
attr_t
*
a
);
extern
var_t
*
is_callas
(
attr_t
*
a
);
extern
void
write_args
(
FILE
*
h
,
var_t
*
arg
,
const
char
*
name
,
int
obj
,
int
do_indent
);
extern
void
write_array
(
FILE
*
h
,
const
expr_t
*
v
,
int
field
);
extern
void
write_forward
(
type_t
*
iface
);
extern
void
write_interface
(
type_t
*
iface
);
extern
void
write_dispinterface
(
type_t
*
iface
);
...
...
tools/widl/server.c
View file @
4acabfd7
...
...
@@ -153,6 +153,7 @@ static void write_function_stubs(type_t *iface)
write_type
(
server
,
var
->
type
,
var
,
var
->
tname
);
fprintf
(
server
,
" "
);
write_name
(
server
,
var
);
write_array
(
server
,
var
->
array
,
0
);
fprintf
(
server
,
";
\n
"
);
var
=
PREV_LINK
(
var
);
...
...
@@ -293,6 +294,8 @@ static void write_function_stubs(type_t *iface)
fprintf
(
server
,
"
\n
"
);
}
marshall_arguments
(
server
,
indent
,
func
,
&
type_offset
,
PASS_OUT
);
/* marshall the return value */
if
(
!
is_void
(
def
->
type
,
NULL
))
{
...
...
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