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
9f1e9ad3
Commit
9f1e9ad3
authored
Jan 26, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Copy the UserMarshal support into the generic code.
parent
790e80b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
typegen.c
tools/widl/typegen.c
+19
-1
No files found.
tools/widl/typegen.c
View file @
9f1e9ad3
...
@@ -159,6 +159,20 @@ void write_formatstringsdecl(FILE *f, int indent, ifref_list_t *ifaces, int for_
...
@@ -159,6 +159,20 @@ void write_formatstringsdecl(FILE *f, int indent, ifref_list_t *ifaces, int for_
print_file
(
f
,
indent
,
"
\n
"
);
print_file
(
f
,
indent
,
"
\n
"
);
}
}
static
int
is_user_derived
(
const
var_t
*
v
)
{
const
type_t
*
type
=
v
->
type
;
if
(
v
->
attrs
&&
is_attr
(
v
->
attrs
,
ATTR_WIREMARSHAL
))
return
1
;
while
(
type
)
{
if
(
type
->
attrs
&&
is_attr
(
type
->
attrs
,
ATTR_WIREMARSHAL
))
return
1
;
type
=
type
->
ref
;
}
return
0
;
}
static
inline
int
is_base_type
(
unsigned
char
type
)
static
inline
int
is_base_type
(
unsigned
char
type
)
{
{
switch
(
type
)
switch
(
type
)
...
@@ -1835,7 +1849,11 @@ void write_remoting_arguments(FILE *file, int indent, const func_t *func,
...
@@ -1835,7 +1849,11 @@ void write_remoting_arguments(FILE *file, int indent, const func_t *func,
rtype
=
type
->
type
;
rtype
=
type
->
type
;
if
(
is_string_type
(
var
->
attrs
,
var
->
ptr_level
,
var
->
array
))
if
(
is_user_derived
(
var
))
{
print_phase_function
(
file
,
indent
,
"UserMarshal"
,
phase
,
var
->
name
,
*
type_offset
);
}
else
if
(
is_string_type
(
var
->
attrs
,
var
->
ptr_level
,
var
->
array
))
{
{
if
(
var
->
array
&&
!
is_conformant_array
(
var
->
array
))
if
(
var
->
array
&&
!
is_conformant_array
(
var
->
array
))
print_phase_function
(
file
,
indent
,
"NonConformantString"
,
phase
,
var
->
name
,
*
type_offset
);
print_phase_function
(
file
,
indent
,
"NonConformantString"
,
phase
,
var
->
name
,
*
type_offset
);
...
...
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