"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/msvcp90/tests/misc.c" between
wine-6.0.tar.xz and wine-6.0.1.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs.

misc.c  (wine-6.0.tar.xz):misc.c  (wine-6.0.1.tar.xz)
skipping to change at line 109 skipping to change at line 109
static char* (__cdecl *p_Copy_s)(char*, size_t, const char*, size_t); static char* (__cdecl *p_Copy_s)(char*, size_t, const char*, size_t);
static unsigned short (__cdecl *p_wctype)(const char*); static unsigned short (__cdecl *p_wctype)(const char*);
static MSVCP__Ctypevec* (__cdecl *p__Getctype)(MSVCP__Ctypevec*); static MSVCP__Ctypevec* (__cdecl *p__Getctype)(MSVCP__Ctypevec*);
static /*MSVCP__Collvec*/ULONGLONG (__cdecl *p__Getcoll)(void); static /*MSVCP__Collvec*/ULONGLONG (__cdecl *p__Getcoll)(void);
static wctrans_t (__cdecl *p_wctrans)(const char*); static wctrans_t (__cdecl *p_wctrans)(const char*);
static wint_t (__cdecl *p_towctrans)(wint_t, wctrans_t); static wint_t (__cdecl *p_towctrans)(wint_t, wctrans_t);
static void (__cdecl *p_locale__Locimp__Locimp_Addfac)(locale__Locimp*,locale_fa cet*,size_t); static void (__cdecl *p_locale__Locimp__Locimp_Addfac)(locale__Locimp*,locale_fa cet*,size_t);
static size_t (__cdecl *p__Strxfrm)(char*, char*, const char*, const char*, cons t MSVCP__Collvec*); static size_t (__cdecl *p__Strxfrm)(char*, char*, const char*, const char*, cons t MSVCP__Collvec*);
static size_t (__cdecl *p__Wcsxfrm)(wchar_t*, wchar_t*, const wchar_t*,
const wchar_t*, const MSVCP__Collvec*);
#undef __thiscall #undef __thiscall
#ifdef __i386__ #ifdef __i386__
#define __thiscall __stdcall #define __thiscall __stdcall
#else #else
#define __thiscall __cdecl #define __thiscall __cdecl
#endif #endif
static char* (__thiscall *p_char_address)(void*, char*); static char* (__thiscall *p_char_address)(void*, char*);
static void* (__thiscall *p_char_ctor)(void*); static void* (__thiscall *p_char_ctor)(void*);
skipping to change at line 253 skipping to change at line 255
} }
p_set_invalid_parameter_handler(test_invalid_parameter_handler); p_set_invalid_parameter_handler(test_invalid_parameter_handler);
SET(p_wctype, "wctype"); SET(p_wctype, "wctype");
SET(p__Getctype, "_Getctype"); SET(p__Getctype, "_Getctype");
SET(p__Getcoll, "_Getcoll"); SET(p__Getcoll, "_Getcoll");
SET(p_wctrans, "wctrans"); SET(p_wctrans, "wctrans");
SET(p_towctrans, "towctrans"); SET(p_towctrans, "towctrans");
SET(p__Strxfrm, "_Strxfrm"); SET(p__Strxfrm, "_Strxfrm");
SET(p__Wcsxfrm, "_Wcsxfrm");
SET(basic_ostringstream_char_vbtable, "??_8?$basic_ostringstream@DU?$char_tr aits@D@std@@V?$allocator@D@2@@std@@7B@"); SET(basic_ostringstream_char_vbtable, "??_8?$basic_ostringstream@DU?$char_tr aits@D@std@@V?$allocator@D@2@@std@@7B@");
SET(p_std_Ctraits_float__Isnan, "?_Isnan@?$_Ctraits@M@std@@SA_NM@Z"); SET(p_std_Ctraits_float__Isnan, "?_Isnan@?$_Ctraits@M@std@@SA_NM@Z");
SET(p_std_Ctraits_double__Isnan, "?_Isnan@?$_Ctraits@N@std@@SA_NN@Z"); SET(p_std_Ctraits_double__Isnan, "?_Isnan@?$_Ctraits@N@std@@SA_NN@Z");
SET(p_std_Ctraits_long_double__Isnan, "?_Isnan@?$_Ctraits@O@std@@SA_NO@Z"); SET(p_std_Ctraits_long_double__Isnan, "?_Isnan@?$_Ctraits@O@std@@SA_NO@Z");
if(sizeof(void*) == 8) { /* 64-bit initialization */ if(sizeof(void*) == 8) { /* 64-bit initialization */
SET(p_locale__Locimp__Locimp_Addfac, SET(p_locale__Locimp__Locimp_Addfac,
"?_Locimp_Addfac@_Locimp@locale@std@@CAXPEAV123@PEAVfacet@23@_K@ Z"); "?_Locimp_Addfac@_Locimp@locale@std@@CAXPEAV123@PEAVfacet@23@_K@ Z");
SET(p_char_assign, "?assign@?$char_traits@D@std@@SAXAEADAEBD@Z"); SET(p_char_assign, "?assign@?$char_traits@D@std@@SAXAEADAEBD@Z");
skipping to change at line 1111 skipping to change at line 1114
out[0] = 'z'; out[0] = 'z';
ret = p__Strxfrm(out, out + 1, in, in + 2, &coll); ret = p__Strxfrm(out, out + 1, in, in + 2, &coll);
ok(ret == 2, "ret = %d\n", (int)ret); ok(ret == 2, "ret = %d\n", (int)ret);
ok(out[0] == 'z', "out[0] = %x\n", out[0]); ok(out[0] == 'z', "out[0] = %x\n", out[0]);
ret = p__Strxfrm(out, out + sizeof(out), in, in + 4, &coll); ret = p__Strxfrm(out, out + sizeof(out), in, in + 4, &coll);
ok(ret == 4, "ret = %d\n", (int)ret); ok(ret == 4, "ret = %d\n", (int)ret);
ok(!strcmp(in, out), "out = %s\n", out); ok(!strcmp(in, out), "out = %s\n", out);
} }
static void test__Wcsxfrm(void)
{
const wchar_t in[] = L"abc";
MSVCP__Collvec coll;
wchar_t out[64];
size_t ret;
memset(&coll, 0, sizeof(coll));
out[0] = 'z';
ret = p__Wcsxfrm(out, out + 1, in, in + 2, &coll);
ok(ret == 2, "ret = %d\n", (int)ret);
ok(out[0] == 'z', "out[0] = %x\n", out[0]);
ret = p__Wcsxfrm(out, out + ARRAY_SIZE(out), in, in + 4, &coll);
ok(ret == 4, "ret = %d\n", (int)ret);
ok(!wcscmp(in, out), "out = %s\n", wine_dbgstr_w(out));
}
START_TEST(misc) START_TEST(misc)
{ {
if(!init()) if(!init())
return; return;
test_assign(); test_assign();
test_equal(); test_equal();
test_Copy_s(); test_Copy_s();
test_wctype(); test_wctype();
test__Getctype(); test__Getctype();
skipping to change at line 1132 skipping to change at line 1155
test_towctrans(); test_towctrans();
test_virtual_call(); test_virtual_call();
test_virtual_base_dtors(); test_virtual_base_dtors();
test_allocator_char(); test_allocator_char();
test_Ctraits_math_functions(); test_Ctraits_math_functions();
test_complex(); test_complex();
test_vbtable_size_exports(); test_vbtable_size_exports();
test_locale__Locimp__Locimp_Addfac(); test_locale__Locimp__Locimp_Addfac();
test_raise_handler(); test_raise_handler();
test__Strxfrm(); test__Strxfrm();
test__Wcsxfrm();
ok(!invalid_parameter, "invalid_parameter_handler was invoked too many times \n"); ok(!invalid_parameter, "invalid_parameter_handler was invoked too many times \n");
FreeLibrary(msvcr); FreeLibrary(msvcr);
FreeLibrary(msvcp); FreeLibrary(msvcp);
} }
 End of changes. 4 change blocks. 
0 lines changed or deleted 24 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)