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
25116ae3
Commit
25116ae3
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: Treat variables with array indices the same as pointers.
parent
c0f4605b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
typegen.c
tools/widl/typegen.c
+6
-4
No files found.
tools/widl/typegen.c
View file @
25116ae3
...
...
@@ -293,7 +293,7 @@ void marshall_arguments(FILE *file, int indent, func_t *func, unsigned int *type
while
(
NEXT_LINK
(
var
))
var
=
NEXT_LINK
(
var
);
for
(;
var
;
*
type_offset
+=
get_size_typeformatstring_var
(
var
),
var
=
PREV_LINK
(
var
))
{
if
(
var
->
ptr_level
==
0
)
if
(
var
->
ptr_level
==
0
&&
!
var
->
array
)
{
unsigned
int
size
;
unsigned
int
alignment
=
0
;
...
...
@@ -351,7 +351,8 @@ void marshall_arguments(FILE *file, int indent, func_t *func, unsigned int *type
last_size
=
size
;
}
else
if
(
var
->
ptr_level
==
1
)
else
if
(
var
->
ptr_level
==
1
||
(
var
->
ptr_level
==
0
&&
var
->
array
&&
!
NEXT_LINK
(
var
->
array
)))
{
if
(
is_attr
(
var
->
attrs
,
ATTR_STRING
))
{
...
...
@@ -397,7 +398,7 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func, unsigned int *ty
while
(
NEXT_LINK
(
var
))
var
=
NEXT_LINK
(
var
);
for
(;
var
;
*
type_offset
+=
get_size_typeformatstring_var
(
var
),
var
=
PREV_LINK
(
var
))
{
if
(
var
->
ptr_level
==
0
)
if
(
var
->
ptr_level
==
0
&&
!
var
->
array
)
{
unsigned
int
size
;
unsigned
int
alignment
=
0
;
...
...
@@ -456,7 +457,8 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func, unsigned int *ty
last_size
=
size
;
}
else
if
(
var
->
ptr_level
==
1
)
else
if
(
var
->
ptr_level
==
1
||
(
var
->
ptr_level
==
0
&&
var
->
array
&&
!
NEXT_LINK
(
var
->
array
)))
{
if
(
is_attr
(
var
->
attrs
,
ATTR_STRING
))
{
...
...
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