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
5764d551
Commit
5764d551
authored
Jan 31, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Fix the writing of arrays with size specified in the array
expression instead of the size_is expression.
parent
06ab21b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
typegen.c
tools/widl/typegen.c
+7
-5
No files found.
tools/widl/typegen.c
View file @
5764d551
...
...
@@ -634,7 +634,7 @@ static size_t write_array_tfs(FILE *file, const attr_t *attrs,
const
expr_t
*
length_is
=
get_attrp
(
attrs
,
ATTR_LENGTHIS
);
const
expr_t
*
size_is
=
get_attrp
(
attrs
,
ATTR_SIZEIS
);
int
has_length
=
length_is
&&
(
length_is
->
type
!=
EXPR_VOID
);
int
has_size
=
size_is
&&
(
size_is
->
type
!=
EXPR_VOID
)
&&
!
array
->
is_const
;
int
has_size
=
(
size_is
&&
(
size_is
->
type
!=
EXPR_VOID
))
||
!
array
->
is_const
;
size_t
start_offset
=
*
typestring_offset
;
/* FIXME: need to analyse type for pointers */
...
...
@@ -735,7 +735,8 @@ static size_t write_array_tfs(FILE *file, const attr_t *attrs,
*
typestring_offset
+=
4
;
*
typestring_offset
+=
write_conf_or_var_desc
(
file
,
current_func
,
current_structure
,
size_is
);
current_structure
,
size_is
?
size_is
:
array
);
/* FIXME: write out pointer descriptor if necessary */
...
...
@@ -758,7 +759,8 @@ static size_t write_array_tfs(FILE *file, const attr_t *attrs,
*
typestring_offset
+=
4
;
*
typestring_offset
+=
write_conf_or_var_desc
(
file
,
current_func
,
current_structure
,
size_is
);
current_structure
,
size_is
?
size_is
:
array
);
*
typestring_offset
+=
write_conf_or_var_desc
(
file
,
current_func
,
current_structure
,
length_is
);
...
...
@@ -1159,7 +1161,7 @@ void marshall_arguments(FILE *file, int indent, func_t *func,
const
expr_t
*
size_is
=
get_attrp
(
var
->
attrs
,
ATTR_SIZEIS
);
const
char
*
array_type
;
int
has_length
=
length_is
&&
(
length_is
->
type
!=
EXPR_VOID
);
int
has_size
=
size_is
&&
(
size_is
->
type
!=
EXPR_VOID
)
&&
!
var
->
array
->
is_const
;
int
has_size
=
(
size_is
&&
(
size_is
->
type
!=
EXPR_VOID
))
||
!
var
->
array
->
is_const
;
if
(
NEXT_LINK
(
var
->
array
))
/* multi-dimensional array */
array_type
=
"ComplexArray"
;
...
...
@@ -1353,7 +1355,7 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func,
const
expr_t
*
size_is
=
get_attrp
(
var
->
attrs
,
ATTR_SIZEIS
);
const
char
*
array_type
;
int
has_length
=
length_is
&&
(
length_is
->
type
!=
EXPR_VOID
);
int
has_size
=
size_is
&&
(
size_is
->
type
!=
EXPR_VOID
)
&&
!
var
->
array
->
is_const
;
int
has_size
=
(
size_is
&&
(
size_is
->
type
!=
EXPR_VOID
))
||
!
var
->
array
->
is_const
;
if
(
NEXT_LINK
(
var
->
array
))
/* multi-dimensional array */
array_type
=
"ComplexArray"
;
...
...
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