1 #ifndef __WINE_CRTDLL_H
2 #define __WINE_CRTDLL_H
6 #define CRTDLL_LC_ALL 0
7 #define CRTDLL_LC_COLLATE 1
8 #define CRTDLL_LC_CTYPE 2
9 #define CRTDLL_LC_MONETARY 3
10 #define CRTDLL_LC_NUMERIC 4
11 #define CRTDLL_LC_TIME 5
12 #define CRTDLL_LC_MIN LC_ALL
13 #define CRTDLL_LC_MAX LC_TIME
16 #define CRTDLL_UPPER 0x1
17 #define CRTDLL_LOWER 0x2
18 #define CRTDLL_DIGIT 0x4
19 #define CRTDLL_SPACE 0x8
20 #define CRTDLL_PUNCT 0x10
21 #define CRTDLL_CONTROL 0x20
22 #define CRTDLL_BLANK 0x40
23 #define CRTDLL_HEX 0x80
24 #define CRTDLL_LEADBYTE 0x8000
25 #define CRTDLL_ALPHA (0x0100|CRTDLL_UPPER|CRTDLL_LOWER)
27 /* function prototypes used in crtdll.c */
28 extern int LastErrorToErrno(DWORD
);
30 void __cdecl
*CRTDLL_malloc( DWORD size
);
31 void __cdecl
CRTDLL_free( void *ptr
);
33 LPSTR __cdecl
CRTDLL__mbsinc( LPCSTR str
);
34 INT __cdecl
CRTDLL__mbslen( LPCSTR str
);
35 LPSTR __cdecl
CRTDLL__strlwr( LPSTR str
);
36 LPWSTR __cdecl
CRTDLL__wcsdup( LPCWSTR str
);
37 INT __cdecl
CRTDLL__wcsicmp( LPCWSTR str1
, LPCWSTR str2
);
38 INT __cdecl
CRTDLL__wcsicoll( LPCWSTR str1
, LPCWSTR str2
);
39 LPWSTR __cdecl
CRTDLL__wcslwr( LPWSTR str
);
40 INT __cdecl
CRTDLL__wcsnicmp( LPCWSTR str1
, LPCWSTR str2
, INT n
);
41 LPWSTR __cdecl
CRTDLL__wcsnset( LPWSTR str
, WCHAR c
, INT n
);
42 LPWSTR __cdecl
CRTDLL__wcsrev( LPWSTR str
);
43 LPWSTR __cdecl
CRTDLL__wcsset( LPWSTR str
, WCHAR c
);
44 LPWSTR __cdecl
CRTDLL__wcsupr( LPWSTR str
);
45 INT __cdecl
CRTDLL_iswalnum( WCHAR wc
);
46 INT __cdecl
CRTDLL_iswalpha( WCHAR wc
);
47 INT __cdecl
CRTDLL_iswcntrl( WCHAR wc
);
48 INT __cdecl
CRTDLL_iswdigit( WCHAR wc
);
49 INT __cdecl
CRTDLL_iswgraph( WCHAR wc
);
50 INT __cdecl
CRTDLL_iswlower( WCHAR wc
);
51 INT __cdecl
CRTDLL_iswprint( WCHAR wc
);
52 INT __cdecl
CRTDLL_iswpunct( WCHAR wc
);
53 INT __cdecl
CRTDLL_iswspace( WCHAR wc
);
54 INT __cdecl
CRTDLL_iswupper( WCHAR wc
);
55 INT __cdecl
CRTDLL_iswxdigit( WCHAR wc
);
56 INT __cdecl
CRTDLL_iswctype( WCHAR wc
, WCHAR wct
);
57 INT __cdecl
CRTDLL_mbstowcs( LPWSTR dst
, LPCSTR src
, INT n
);
58 INT __cdecl
CRTDLL_mbtowc( WCHAR
*dst
, LPCSTR str
, INT n
);
59 WCHAR __cdecl
CRTDLL_towlower( WCHAR ch
);
60 WCHAR __cdecl
CRTDLL_towupper( WCHAR ch
);
61 LPWSTR __cdecl
CRTDLL_wcscat( LPWSTR dst
, LPCWSTR src
);
62 LPWSTR __cdecl
CRTDLL_wcschr( LPCWSTR str
, WCHAR ch
);
63 INT __cdecl
CRTDLL_wcscmp( LPCWSTR str1
, LPCWSTR str2
);
64 DWORD __cdecl
CRTDLL_wcscoll( LPCWSTR str1
, LPCWSTR str2
);
65 LPWSTR __cdecl
CRTDLL_wcscpy( LPWSTR dst
, LPCWSTR src
);
66 INT __cdecl
CRTDLL_wcscspn( LPCWSTR str
, LPCWSTR reject
);
67 INT __cdecl
CRTDLL_wcslen( LPCWSTR str
);
68 LPWSTR __cdecl
CRTDLL_wcsncat( LPWSTR s1
, LPCWSTR s2
, INT n
);
69 INT __cdecl
CRTDLL_wcsncmp( LPCWSTR str1
, LPCWSTR str2
, INT n
);
70 LPWSTR __cdecl
CRTDLL_wcsncpy( LPWSTR s1
, LPCWSTR s2
, INT n
);
71 LPWSTR __cdecl
CRTDLL_wcspbrk( LPCWSTR str
, LPCWSTR accept
);
72 LPWSTR __cdecl
CRTDLL_wcsrchr( LPWSTR str
, WCHAR ch
);
73 INT __cdecl
CRTDLL_wcsspn( LPCWSTR str
, LPCWSTR accept
);
74 LPWSTR __cdecl
CRTDLL_wcsstr( LPCWSTR str
, LPCWSTR sub
);
75 LPWSTR __cdecl
CRTDLL_wcstok( LPWSTR str
, LPCWSTR delim
);
76 INT __cdecl
CRTDLL_wcstol( LPWSTR s
, LPWSTR
*end
, INT base
);
77 INT __cdecl
CRTDLL_wcstombs( LPSTR dst
, LPCWSTR src
, INT n
);
78 INT __cdecl
CRTDLL_wctomb( LPSTR dst
, WCHAR ch
);
81 #define _mbsinc CRTDLL__mbsinc
82 #define _mbslen CRTDLL__mbslen
83 #define _wcsdup CRTDLL__wcsdup
84 #define _wcsicmp CRTDLL__wcsicmp
85 #define _wcsicoll CRTDLL__wcsicoll
86 #define _wcslwr CRTDLL__wcslwr
87 #define _wcsnicmp CRTDLL__wcsnicmp
88 #define _wcsnset CRTDLL__wcsnset
89 #define _wcsrev CRTDLL__wcsrev
90 #define _wcsset CRTDLL__wcsset
91 #define _wcsupr CRTDLL__wcsupr
92 #define iswalnum CRTDLL_iswalnum
93 #define iswalpha CRTDLL_iswalpha
94 #define iswcntrl CRTDLL_iswcntrl
95 #define iswdigit CRTDLL_iswdigit
96 #define iswgraph CRTDLL_iswgraph
97 #define iswlower CRTDLL_iswlower
98 #define iswprint CRTDLL_iswprint
99 #define iswpunct CRTDLL_iswpunct
100 #define iswspace CRTDLL_iswspace
101 #define iswupper CRTDLL_iswupper
102 #define iswxdigit CRTDLL_iswxdigit
103 #define mbstowcs CRTDLL_mbstowcs
104 #define mbtowc CRTDLL_mbtowc
105 #define towlower CRTDLL_towlower
106 #define towupper CRTDLL_towupper
107 #define wcscat CRTDLL_wcscat
108 #define wcschr CRTDLL_wcschr
109 #define wcscmp CRTDLL_wcscmp
110 #define wcscoll CRTDLL_wcscoll
111 #define wcscpy CRTDLL_wcscpy
112 #define wcscspn CRTDLL_wcscspn
113 #define wcslen CRTDLL_wcslen
114 #define wcsncat CRTDLL_wcsncat
115 #define wcsncmp CRTDLL_wcsncmp
116 #define wcsncpy CRTDLL_wcsncpy
117 #define wcspbrk CRTDLL_wcspbrk
118 #define wcsrchr CRTDLL_wcsrchr
119 #define wcsspn CRTDLL_wcsspn
120 #define wcsstr CRTDLL_wcsstr
121 #define wcstok CRTDLL_wcstok
122 #define wcstombs CRTDLL_wcstombs
123 #define wctomb CRTDLL_wctomb
126 #endif /* __WINE_CRTDLL_H */