1
2list(APPEND SOURCE_NTDLL
3#    _CIcos.c
4#    _CIlog.c
5#    _CIsin.c
6#    _CIsqrt.c
7#    __isascii.c
8#    __iscsym.c
9#    __iscsymf.c
10#    __toascii.c
11#    _atoi64.c
12#    _fltused.c
13#    _i64toa.c
14#    _i64tow.c
15#    _itoa.c
16#    _itow.c
17#    _lfind.c
18#    _ltoa.c
19#    _ltow.c
20#    _memccpy.c
21#    _memicmp.c
22    _snprintf.c
23    _snwprintf.c
24#    _splitpath.c
25    # _strcmpi == _stricmp
26#    _stricmp.c
27#    _strlwr.c
28#    _strnicmp.c
29#    _strupr.c
30#    _tolower.c
31#    _toupper.c
32#    _ui64toa.c
33#    _ui64tow.c
34#    _ultoa.c
35#    _ultow.c
36    _vscwprintf.c
37    _vsnprintf.c
38    _vsnwprintf.c
39#    _wcsicmp.c
40#    _wcslwr.c
41#    _wcsnicmp.c
42#    _wcsupr.c
43#    _wtoi.c
44#    _wtoi64.c
45#    _wtol.c
46#    abs.c
47#    atan.c
48#    atoi.c
49#    atol.c
50#    bsearch.c
51#    ceil.c
52#    cos.c
53#    fabs.c
54#    floor.c
55#    isalnum.c
56#    isalpha.c
57#    iscntrl.c
58#    isdigit.c
59#    isgraph.c
60#    islower.c
61#    isprint.c
62#    ispunct.c
63#    isspace.c
64#    isupper.c
65#    iswalpha.c
66#    iswctype.c
67#    iswdigit.c
68#    iswlower.c
69#    iswspace.c
70#    iswxdigit.c
71#    isxdigit.c
72#    labs.c
73#    log.c
74    mbstowcs.c
75    mbtowc.c
76#    memchr.c
77#    memcmp.c
78    # memcpy == memmove
79#    memmove.c
80#    memset.c
81#    pow.c
82#    qsort.c
83#    sin.c
84    sprintf.c
85#    sqrt.c
86#    sscanf.c
87#    strcat.c
88#    strchr.c
89#    strcmp.c
90    strcpy.c
91#    strcspn.c
92    strlen.c
93#    strncat.c
94#    strncmp.c
95#    strncpy.c
96#    strpbrk.c
97#    strrchr.c
98#    strspn.c
99#    strstr.c
100#    strtol.c
101    strtoul.c
102#    swprintf.c
103#    tan.c
104#    tolower.c
105#    toupper.c
106#    towlower.c
107#    towupper.c
108#    vsprintf.c
109#    wcscat.c
110#    wcschr.c
111#    wcscmp.c
112#    wcscpy.c
113#    wcscspn.c
114#    wcslen.c
115#    wcsncat.c
116#    wcsncmp.c
117#    wcsncpy.c
118#    wcspbrk.c
119#    wcsrchr.c
120#    wcsspn.c
121#    wcsstr.c
122#    wcstok.c
123#    wcstol.c
124    wcstombs.c
125    wcstoul.c
126    wctomb.c
127)
128
129if(ARCH STREQUAL "i386")
130    list(APPEND SOURCE_NTDLL
131    #    _CIpow.c
132    #    _ftol.c
133    #    _alldiv.c
134    #    _alldvrm.c
135    #    _allmul.c
136    #    _allrem.c
137    #    _allshl.c
138    #    _allshr.c
139    #    _alloca_probe.c
140    #    _aulldiv.c
141    #    _aulldvrm.c
142    #    _aullrem.c
143    #    _aullshr.c
144    #    _chkstk.c
145    )
146elseif(ARCH STREQUAL "amd64")
147    list(APPEND SOURCE_NTDLL
148    #    __C_specific_handler
149    #    _setjmp.c
150    #    _setjmpex.c
151    #    _local_unwind.c
152    #    longjmp.c
153    )
154endif()
155
156add_executable(ntdll_crt_apitest testlist.c ${SOURCE_NTDLL})
157target_compile_definitions(ntdll_crt_apitest PRIVATE TEST_NTDLL)
158target_link_libraries(ntdll_crt_apitest wine ${PSEH_LIB})
159set_module_type(ntdll_crt_apitest win32cui)
160add_importlibs(ntdll_crt_apitest ntdll msvcrt kernel32)
161add_rostests_file(TARGET ntdll_crt_apitest)
162