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
83f49b98
Commit
83f49b98
authored
May 19, 2013
by
Christian Costa
Committed by
Alexandre Julliard
May 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Group and simplify templates and objects in a cleaner manner.
parent
89312f9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
d3dxof.c
dlls/d3dxof/tests/d3dxof.c
+11
-18
No files found.
dlls/d3dxof/tests/d3dxof.c
View file @
83f49b98
...
...
@@ -84,6 +84,15 @@ static char empty_bzip_file[] = "xof 0302bzip0064\x11\x00\x00\x00\x01\x00\x05\x0
static
char
empty_cmp_file
[]
=
"xof 0302cmp 0064"
;
static
char
empty_xxxx_file
[]
=
"xof 0302xxxx0064"
;
static
char
templates_bad_file_type1
[]
=
"xOf 0302txt 0064
\n
"
;
static
char
templates_bad_file_version
[]
=
"xof 0102txt 0064
\n
"
;
static
char
templates_bad_file_type2
[]
=
"xof 0302foo 0064
\n
"
;
static
char
templates_bad_file_float_size
[]
=
"xof 0302txt 0050
\n
"
;
static
char
templates_parse_error
[]
=
"xof 0302txt 0064"
"foobar;
\n
"
;
static
char
object_noname
[]
=
"xof 0302txt 0064
\n
"
"Header
\n
"
...
...
@@ -91,7 +100,7 @@ static char object_noname[] =
"1; 2; 3;
\n
"
"}
\n
"
;
static
char
template_syntax_
empty_array
[]
=
static
char
template_syntax_
array_mixed
[]
=
"xof 0302txt 0064
\n
"
"template Buffer
\n
"
"{
\n
"
...
...
@@ -140,22 +149,6 @@ static char object_syntax_string_with_separator[] =
"
\"
foo;bar
\"
;
\n
"
"}
\n
"
;
static
char
templates_bad_file_type1
[]
=
"xOf 0302txt 0064
\n
"
;
static
char
templates_bad_file_version
[]
=
"xof 0102txt 0064
\n
"
;
static
char
templates_bad_file_type2
[]
=
"xof 0302foo 0064
\n
"
;
static
char
templates_bad_file_float_size
[]
=
"xof 0302txt 0050
\n
"
;
static
char
templates_parse_error
[]
=
"xof 0302txt 0064"
"foobar;
\n
"
;
static
void
init_function_pointers
(
void
)
{
/* We have to use LoadLibrary as no d3dxof functions are referenced directly */
...
...
@@ -592,7 +585,7 @@ static void test_syntax(void)
return
;
}
hr
=
IDirectXFile_RegisterTemplates
(
lpDirectXFile
,
template_syntax_
empty_array
,
sizeof
(
template_syntax_empty_array
)
-
1
);
hr
=
IDirectXFile_RegisterTemplates
(
lpDirectXFile
,
template_syntax_
array_mixed
,
sizeof
(
template_syntax_array_mixed
)
-
1
);
ok
(
hr
==
DXFILE_OK
,
"IDirectXFileImpl_RegisterTemplates: %x
\n
"
,
hr
);
dxflm
.
lpMemory
=
&
object_syntax_empty_array_semicolon
;
...
...
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