[PATCH 1/3] d3dxof: Group and simplify templates and objects in a cleaner manner.
Christian Costa
titan.costa at gmail.com
Sun May 19 15:32:58 CDT 2013
This cleanup prepares for next patches.
---
dlls/d3dxof/tests/d3dxof.c | 29 +++++++++++------------------
1 file changed, 11 insertions(+), 18 deletions(-)
diff --git a/dlls/d3dxof/tests/d3dxof.c b/dlls/d3dxof/tests/d3dxof.c
index 87b7985..8e380a8 100644
--- a/dlls/d3dxof/tests/d3dxof.c
+++ b/dlls/d3dxof/tests/d3dxof.c
@@ -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;
More information about the wine-patches
mailing list