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
1845d10c
Commit
1845d10c
authored
Apr 02, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Pass type attributes from write_array_tfs to write_array_element_type.
This allows to differentiate strings and write appropriate rpc type (FC_C_C[W]STRING instead of FC_[W]CHAR).
parent
eb54b5b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
typegen.c
tools/widl/typegen.c
+4
-4
No files found.
tools/widl/typegen.c
View file @
1845d10c
...
...
@@ -2316,7 +2316,7 @@ static void write_member_type(FILE *file, const type_t *cont,
error
(
"Unsupported member type %d
\n
"
,
type_get_type
(
type
));
}
static
void
write_array_element_type
(
FILE
*
file
,
const
type_t
*
type
,
static
void
write_array_element_type
(
FILE
*
file
,
const
attr_list_t
*
attrs
,
const
type_t
*
type
,
int
cont_is_complex
,
unsigned
int
*
tfsoff
)
{
type_t
*
elem
=
type_array_get_element
(
type
);
...
...
@@ -2331,7 +2331,7 @@ static void write_array_element_type(FILE *file, const type_t *type,
ref
->
typestring_offset
,
tfsoff
);
return
;
}
if
(
cont_is_complex
&&
is_string_type
(
NULL
,
elem
))
if
(
cont_is_complex
&&
is_string_type
(
attrs
,
elem
))
{
write_string_tfs
(
file
,
NULL
,
elem
,
TYPE_CONTEXT_CONTAINER
,
NULL
,
tfsoff
);
return
;
...
...
@@ -2967,7 +2967,7 @@ static unsigned int write_array_tfs(FILE *file, const attr_list_t *attrs, type_t
*
typestring_offset
+=
1
;
}
write_array_element_type
(
file
,
type
,
FALSE
,
typestring_offset
);
write_array_element_type
(
file
,
is_string_type
(
attrs
,
type
)
?
attrs
:
NULL
,
type
,
FALSE
,
typestring_offset
);
write_end
(
file
,
typestring_offset
);
}
else
...
...
@@ -2982,7 +2982,7 @@ static unsigned int write_array_tfs(FILE *file, const attr_list_t *attrs, type_t
+=
write_conf_or_var_desc
(
file
,
current_structure
,
baseoff
,
type
,
length_is
);
write_array_element_type
(
file
,
type
,
TRUE
,
typestring_offset
);
write_array_element_type
(
file
,
is_string_type
(
attrs
,
type
)
?
attrs
:
NULL
,
type
,
TRUE
,
typestring_offset
);
write_end
(
file
,
typestring_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