2012-04-18 17:21:18 +00:00
|
|
|
#define __ROS_LONG64__
|
|
|
|
|
|
|
|
#define STANDALONE
|
2013-09-22 17:52:42 +00:00
|
|
|
#include <apitest.h>
|
2012-04-18 17:21:18 +00:00
|
|
|
|
2024-01-12 17:31:12 +00:00
|
|
|
extern void func__mbsncmp(void);
|
|
|
|
extern void func__mbsstr(void);
|
2012-07-21 20:00:56 +00:00
|
|
|
#if defined(TEST_MSVCRT)
|
|
|
|
extern void func__vscprintf(void);
|
|
|
|
extern void func__vscwprintf(void);
|
2020-10-22 13:13:56 +00:00
|
|
|
extern void func_atexit(void);
|
2012-07-21 20:00:56 +00:00
|
|
|
#endif
|
2021-09-08 17:10:11 +00:00
|
|
|
#if defined(TEST_STATIC_CRT) || defined(TEST_MSVCRT)
|
|
|
|
#if defined(_M_ARM)
|
|
|
|
extern void func___rt_div(void);
|
|
|
|
extern void func___fto64(void);
|
2021-09-08 22:14:44 +00:00
|
|
|
extern void func___64tof(void);
|
2021-09-08 17:10:11 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
2012-07-21 20:00:56 +00:00
|
|
|
#if defined(TEST_NTDLL)
|
|
|
|
extern void func__vscwprintf(void);
|
|
|
|
#endif
|
2021-08-05 22:10:44 +00:00
|
|
|
extern void func_ceil(void);
|
2021-08-04 15:22:01 +00:00
|
|
|
extern void func_fabs(void);
|
2021-08-05 22:10:44 +00:00
|
|
|
extern void func_floor(void);
|
|
|
|
extern void func_fpcontrol(void);
|
2015-12-28 15:24:47 +00:00
|
|
|
extern void func_fputc(void);
|
|
|
|
extern void func_fputwc(void);
|
|
|
|
extern void func__snprintf(void);
|
|
|
|
extern void func__snwprintf(void);
|
2012-07-21 17:15:08 +00:00
|
|
|
extern void func__vsnprintf(void);
|
2012-07-21 20:00:56 +00:00
|
|
|
extern void func__vsnwprintf(void);
|
2015-10-24 23:18:33 +00:00
|
|
|
extern void func_mbstowcs(void);
|
2020-04-26 10:18:41 +00:00
|
|
|
extern void func_mbtowc(void);
|
2012-07-04 17:33:56 +00:00
|
|
|
extern void func_sprintf(void);
|
2012-04-18 17:21:18 +00:00
|
|
|
extern void func_strcpy(void);
|
2015-12-26 19:20:54 +00:00
|
|
|
extern void func_strlen(void);
|
2015-12-28 15:24:47 +00:00
|
|
|
extern void func_strnlen(void);
|
|
|
|
extern void func_strtoul(void);
|
2023-03-05 12:01:14 +00:00
|
|
|
extern void func_system(void);
|
2015-12-28 15:24:47 +00:00
|
|
|
extern void func_wcsnlen(void);
|
2015-10-24 23:18:33 +00:00
|
|
|
extern void func_wcstombs(void);
|
2015-12-28 15:24:47 +00:00
|
|
|
extern void func_wcstoul(void);
|
2020-05-01 14:01:11 +00:00
|
|
|
extern void func_wctomb(void);
|
2023-03-05 12:01:14 +00:00
|
|
|
extern void func__wsystem(void);
|
2016-08-12 21:31:32 +00:00
|
|
|
extern void func___getmainargs(void);
|
2012-04-18 17:21:18 +00:00
|
|
|
|
2015-11-21 12:04:36 +00:00
|
|
|
extern void func_static_construct(void);
|
|
|
|
extern void func_static_init(void);
|
2021-07-25 13:50:33 +00:00
|
|
|
extern void func_crtdata(void);
|
2015-11-21 12:04:36 +00:00
|
|
|
|
2012-04-18 17:21:18 +00:00
|
|
|
const struct test winetest_testlist[] =
|
|
|
|
{
|
2012-07-21 17:15:08 +00:00
|
|
|
{ "_vsnprintf", func__vsnprintf },
|
2012-07-21 20:00:56 +00:00
|
|
|
{ "_vsnwprintf", func__vsnwprintf },
|
2015-10-24 23:18:33 +00:00
|
|
|
{ "mbstowcs", func_mbstowcs },
|
2020-04-26 10:18:41 +00:00
|
|
|
{ "mbtowc", func_mbtowc },
|
2015-12-28 15:24:47 +00:00
|
|
|
{ "_snprintf", func__snprintf },
|
|
|
|
{ "_snwprintf", func__snwprintf },
|
2012-07-04 17:33:56 +00:00
|
|
|
{ "sprintf", func_sprintf },
|
2012-04-18 17:21:18 +00:00
|
|
|
{ "strcpy", func_strcpy },
|
2015-12-26 19:20:54 +00:00
|
|
|
{ "strlen", func_strlen },
|
2015-12-28 15:24:47 +00:00
|
|
|
{ "strtoul", func_strtoul },
|
2023-03-05 12:01:14 +00:00
|
|
|
#if defined(TEST_CRTDLL) || defined(TEST_MSVCRT)
|
2024-01-12 17:31:12 +00:00
|
|
|
{ "_mbsncmp", func__mbsncmp },
|
|
|
|
{ "_mbsstr", func__mbsstr },
|
2023-03-05 12:01:14 +00:00
|
|
|
{ "system", func_system },
|
|
|
|
#endif
|
|
|
|
#if defined(TEST_MSVCRT)
|
|
|
|
{ "_wsystem", func__wsystem },
|
|
|
|
#endif
|
2015-12-28 15:24:47 +00:00
|
|
|
{ "wcstoul", func_wcstoul },
|
2020-05-01 14:01:11 +00:00
|
|
|
{ "wctomb", func_wctomb },
|
2015-10-24 23:18:33 +00:00
|
|
|
{ "wcstombs", func_wcstombs },
|
2012-07-04 17:04:44 +00:00
|
|
|
#if defined(TEST_CRTDLL) || defined(TEST_MSVCRT) || defined(TEST_STATIC_CRT)
|
2012-04-18 17:21:18 +00:00
|
|
|
// ...
|
2012-07-04 17:04:44 +00:00
|
|
|
#endif
|
|
|
|
#if defined(TEST_STATIC_CRT) || defined(TEST_MSVCRT)
|
2021-08-05 22:10:44 +00:00
|
|
|
{ "ceil", func_ceil },
|
|
|
|
{ "fabs", func_fabs },
|
|
|
|
{ "floor", func_floor },
|
2022-07-14 17:31:31 +00:00
|
|
|
#ifdef _M_AMD64 // x86 / arm need fixing
|
|
|
|
{ "fpcontrol", func_fpcontrol },
|
|
|
|
#endif
|
2021-09-08 17:10:11 +00:00
|
|
|
#if defined(_M_ARM)
|
|
|
|
{ "__rt_div", func___rt_div },
|
|
|
|
{ "__fto64", func___fto64 },
|
2021-09-08 22:14:44 +00:00
|
|
|
{ "__64tof", func___64tof },
|
2021-09-08 17:10:11 +00:00
|
|
|
#endif
|
2012-07-04 17:04:44 +00:00
|
|
|
#endif
|
|
|
|
#if defined(TEST_STATIC_CRT)
|
2012-04-18 17:21:18 +00:00
|
|
|
#elif defined(TEST_MSVCRT)
|
2020-10-22 13:13:56 +00:00
|
|
|
{ "atexit", func_atexit },
|
2021-07-25 13:50:33 +00:00
|
|
|
{ "crtdata", func_crtdata },
|
2019-08-18 19:48:44 +00:00
|
|
|
#if defined(_M_IX86)
|
2016-08-12 21:31:32 +00:00
|
|
|
{ "__getmainargs", func___getmainargs },
|
2017-07-24 15:09:22 +00:00
|
|
|
#endif
|
2012-07-21 20:00:56 +00:00
|
|
|
{ "_vscprintf", func__vscprintf },
|
|
|
|
{ "_vscwprintf", func__vscwprintf },
|
2015-11-21 12:04:36 +00:00
|
|
|
|
|
|
|
{ "static_construct", func_static_construct },
|
|
|
|
{ "static_init", func_static_init },
|
2012-04-18 17:21:18 +00:00
|
|
|
#elif defined(TEST_NTDLL)
|
2012-07-21 20:00:56 +00:00
|
|
|
{ "_vscwprintf", func__vscwprintf },
|
2012-04-18 17:21:18 +00:00
|
|
|
#elif defined(TEST_CRTDLL)
|
|
|
|
#endif
|
|
|
|
{ 0, 0 }
|
|
|
|
};
|
|
|
|
|