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
607062f3
Commit
607062f3
authored
Nov 23, 2008
by
Christian Costa
Committed by
Alexandre Julliard
Nov 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Support multi-dimentional array in templates.
parent
c880ccea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
7 deletions
+24
-7
d3dxof.c
dlls/d3dxof/d3dxof.c
+24
-7
No files found.
dlls/d3dxof/d3dxof.c
View file @
607062f3
...
...
@@ -1100,11 +1100,6 @@ static BOOL parse_template_members_list(parse_buffer * buf)
{
while
(
check_TOKEN
(
buf
)
==
TOKEN_OBRACKET
)
{
if
(
nb_dims
)
{
FIXME
(
"No support for multi-dimensional array yet
\n
"
);
return
FALSE
;
}
get_TOKEN
(
buf
);
if
(
check_TOKEN
(
buf
)
==
TOKEN_INTEGER
)
{
...
...
@@ -1114,11 +1109,33 @@ static BOOL parse_template_members_list(parse_buffer * buf)
}
else
{
int
i
;
if
(
get_TOKEN
(
buf
)
!=
TOKEN_NAME
)
return
FALSE
;
for
(
i
=
0
;
i
<
idx_member
;
i
++
)
{
if
(
!
strcmp
((
char
*
)
buf
->
value
,
buf
->
pdxf
->
xtemplates
[
buf
->
pdxf
->
nb_xtemplates
].
members
[
i
].
name
))
{
if
(
buf
->
pdxf
->
xtemplates
[
buf
->
pdxf
->
nb_xtemplates
].
members
[
i
].
nb_dims
)
{
ERR
(
"Array cannot be used to specify variable array size
\n
"
);
return
FALSE
;
}
if
(
buf
->
pdxf
->
xtemplates
[
buf
->
pdxf
->
nb_xtemplates
].
members
[
i
].
type
!=
TOKEN_DWORD
)
{
FIXME
(
"Only DWORD supported to specify variable array size
\n
"
);
return
FALSE
;
}
break
;
}
}
if
(
i
==
idx_member
)
{
ERR
(
"Reference to unknown member %s
\n
"
,
(
char
*
)
buf
->
value
);
return
FALSE
;
}
cur_member
->
dim_fixed
[
nb_dims
]
=
FALSE
;
/* Hack: Assume array size is specified in previous member */
cur_member
->
dim_value
[
nb_dims
]
=
idx_member
-
1
;
cur_member
->
dim_value
[
nb_dims
]
=
i
;
}
if
(
get_TOKEN
(
buf
)
!=
TOKEN_CBRACKET
)
return
FALSE
;
...
...
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