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
73dff5c4
Commit
73dff5c4
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: Prepare marshall and unmarshall code generation functions for
accepting pointers.
parent
86c3a2e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
typegen.c
tools/widl/typegen.c
+21
-6
No files found.
tools/widl/typegen.c
View file @
73dff5c4
...
...
@@ -283,8 +283,6 @@ unsigned int get_required_buffer_size(type_t *type)
void
marshall_arguments
(
FILE
*
file
,
int
indent
,
func_t
*
func
)
{
unsigned
int
alignment
;
unsigned
int
size
;
unsigned
int
last_size
=
0
;
var_t
*
var
;
...
...
@@ -295,7 +293,10 @@ void marshall_arguments(FILE *file, int indent, func_t *func)
while
(
NEXT_LINK
(
var
))
var
=
NEXT_LINK
(
var
);
while
(
var
)
{
alignment
=
0
;
if
(
var
->
ptr_level
==
0
)
{
unsigned
int
size
;
unsigned
int
alignment
=
0
;
switch
(
var
->
type
->
type
)
{
case
RPC_FC_BYTE
:
...
...
@@ -349,6 +350,12 @@ void marshall_arguments(FILE *file, int indent, func_t *func)
fprintf
(
file
,
"
\n
"
);
last_size
=
size
;
}
else
{
error
(
"marshall_arguments: Pointer level %d not supported for variable %s
\n
"
,
var
->
ptr_level
,
var
->
name
);
last_size
=
0
;
}
var
=
PREV_LINK
(
var
);
}
...
...
@@ -356,8 +363,6 @@ void marshall_arguments(FILE *file, int indent, func_t *func)
void
unmarshall_arguments
(
FILE
*
file
,
int
indent
,
func_t
*
func
)
{
unsigned
int
alignment
;
unsigned
int
size
;
unsigned
int
last_size
=
0
;
var_t
*
var
;
...
...
@@ -368,7 +373,11 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func)
while
(
NEXT_LINK
(
var
))
var
=
NEXT_LINK
(
var
);
while
(
var
)
{
alignment
=
0
;
if
(
var
->
ptr_level
==
0
)
{
unsigned
int
size
;
unsigned
int
alignment
=
0
;
switch
(
var
->
type
->
type
)
{
case
RPC_FC_BYTE
:
...
...
@@ -422,6 +431,12 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func)
fprintf
(
file
,
"
\n
"
);
last_size
=
size
;
}
else
{
error
(
"unmarshall_arguments: Pointer level %d not supported for variable %s
\n
"
,
var
->
ptr_level
,
var
->
name
);
last_size
=
0
;
}
var
=
PREV_LINK
(
var
);
}
...
...
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