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
8f156e26
Commit
8f156e26
authored
May 24, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Return the buffer size of the object pointed by a ref pointer for all types.
parent
2099d940
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
22 deletions
+3
-22
typegen.c
tools/widl/typegen.c
+3
-22
No files found.
tools/widl/typegen.c
View file @
8f156e26
...
...
@@ -3111,7 +3111,7 @@ static unsigned int get_required_buffer_size_type(
const
type_t
*
type
,
const
char
*
name
,
const
attr_list_t
*
attrs
,
int
toplevel_param
,
unsigned
int
*
alignment
)
{
*
alignment
=
0
;
switch
(
typegen_detect_type
(
type
,
NULL
,
TDT_IGNORE_
STRINGS
|
TDT_IGNORE_
RANGES
))
switch
(
typegen_detect_type
(
type
,
NULL
,
TDT_IGNORE_RANGES
))
{
case
TGT_USER_TYPE
:
{
...
...
@@ -3188,27 +3188,8 @@ static unsigned int get_required_buffer_size_type(
if
(
get_pointer_fc
(
type
,
attrs
,
toplevel_param
)
==
RPC_FC_RP
)
{
const
type_t
*
ref
=
type_pointer_get_ref
(
type
);
switch
(
typegen_detect_type
(
ref
,
NULL
,
TDT_ALL_TYPES
))
{
case
TGT_BASIC
:
case
TGT_ENUM
:
case
TGT_RANGE
:
return
get_required_buffer_size_type
(
ref
,
name
,
NULL
,
FALSE
,
alignment
);
case
TGT_STRUCT
:
if
(
get_struct_fc
(
ref
)
==
RPC_FC_STRUCT
)
return
get_required_buffer_size_type
(
ref
,
name
,
NULL
,
FALSE
,
alignment
);
break
;
case
TGT_USER_TYPE
:
case
TGT_CTXT_HANDLE
:
case
TGT_CTXT_HANDLE_POINTER
:
case
TGT_STRING
:
case
TGT_POINTER
:
case
TGT_ARRAY
:
case
TGT_IFACE_POINTER
:
case
TGT_UNION
:
case
TGT_INVALID
:
break
;
}
if
(
is_string_type
(
attrs
,
ref
))
break
;
return
get_required_buffer_size_type
(
ref
,
name
,
ref
->
attrs
,
FALSE
,
alignment
);
}
break
;
...
...
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