16#define SETLOCALE(locale) \
17 loc = setlocale(LC_ALL, locale); \
20 puts("setlocale failed for " locale ", this locale is probably not installed on your system"); \
24#define OK(condition, fail_message, ...) \
26 printf("%d: " fail_message "\n", __LINE__, ##__VA_ARGS__);
34wchar_t wcs[5] = {
'T',
'h', 1088,
'i', 0};
35wchar_t dbwcs[3] = {28953, 25152, 0};
51 OK(
mbs[0] == 0,
"mbs[0] is %d",
mbs[0]);
183 OK(
mbs[0] == 0,
"mbs[0] is %d",
mbs[0]);
189 OK(
mbs[0] == 84,
"mbs[0] is %d",
mbs[0]);
204 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
FALSE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
210 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
TRUE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
216 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
FALSE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
222 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
FALSE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
229 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
TRUE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
235 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
TRUE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
242 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
TRUE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
249 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
FALSE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
256 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
TRUE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
265 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
TRUE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
273 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
TRUE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
282 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
TRUE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
288 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
FALSE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
295 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
FALSE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
300 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
FALSE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
308 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
FALSE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
314 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
TRUE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
319 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
TRUE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
324 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
FALSE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
329 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
FALSE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
335 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
FALSE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
342 if(bUsedDefaultChar)
OK(*bUsedDefaultChar ==
TRUE,
"bUsedDefaultChar is %d", *bUsedDefaultChar);
359 BOOL UsedDefaultChar;
int strcmp(const char *String1, const char *String2)
int puts(const char *string)
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_INVALID_PARAMETER
#define WideCharToMultiByte
#define WC_NO_BEST_FIT_CHARS
size_t __cdecl wcstombs(_Out_writes_opt_z_(_MaxCount) char *_Dest, _In_z_ const wchar_t *_Source, _In_ size_t _MaxCount)
#define OK(condition, fail_message,...)
#define SETLOCALE(locale)
void Win32_Tests(LPBOOL bUsedDefaultChar)
DWORD WINAPI GetLastError(void)