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 LPWSTR __cdecl
CRTDLL__wcsdup( LPCWSTR str
);
36 INT __cdecl
CRTDLL__wcsicoll( LPCWSTR str1
, LPCWSTR str2
);
37 LPWSTR __cdecl
CRTDLL__wcsnset( LPWSTR str
, WCHAR c
, INT n
);
38 LPWSTR __cdecl
CRTDLL__wcsrev( LPWSTR str
);
39 LPWSTR __cdecl
CRTDLL__wcsset( LPWSTR str
, WCHAR c
);
40 INT __cdecl
CRTDLL_iswalnum( WCHAR wc
);
41 INT __cdecl
CRTDLL_iswalpha( WCHAR wc
);
42 INT __cdecl
CRTDLL_iswcntrl( WCHAR wc
);
43 INT __cdecl
CRTDLL_iswdigit( WCHAR wc
);
44 INT __cdecl
CRTDLL_iswgraph( WCHAR wc
);
45 INT __cdecl
CRTDLL_iswlower( WCHAR wc
);
46 INT __cdecl
CRTDLL_iswprint( WCHAR wc
);
47 INT __cdecl
CRTDLL_iswpunct( WCHAR wc
);
48 INT __cdecl
CRTDLL_iswspace( WCHAR wc
);
49 INT __cdecl
CRTDLL_iswupper( WCHAR wc
);
50 INT __cdecl
CRTDLL_iswxdigit( WCHAR wc
);
51 INT __cdecl
CRTDLL_iswctype( WCHAR wc
, WCHAR wct
);
52 INT __cdecl
CRTDLL_mbstowcs( LPWSTR dst
, LPCSTR src
, INT n
);
53 INT __cdecl
CRTDLL_mbtowc( WCHAR
*dst
, LPCSTR str
, INT n
);
54 DWORD __cdecl
CRTDLL_wcscoll( LPCWSTR str1
, LPCWSTR str2
);
55 LPWSTR __cdecl
CRTDLL_wcspbrk( LPCWSTR str
, LPCWSTR accept
);
56 INT __cdecl
CRTDLL_wctomb( LPSTR dst
, WCHAR ch
);
59 #define _mbsinc CRTDLL__mbsinc
60 #define _mbslen CRTDLL__mbslen
61 #define _wcsdup CRTDLL__wcsdup
62 #define _wcsicoll CRTDLL__wcsicoll
63 #define _wcsnset CRTDLL__wcsnset
64 #define _wcsrev CRTDLL__wcsrev
65 #define _wcsset CRTDLL__wcsset
66 #define iswalnum CRTDLL_iswalnum
67 #define iswalpha CRTDLL_iswalpha
68 #define iswcntrl CRTDLL_iswcntrl
69 #define iswdigit CRTDLL_iswdigit
70 #define iswgraph CRTDLL_iswgraph
71 #define iswlower CRTDLL_iswlower
72 #define iswprint CRTDLL_iswprint
73 #define iswpunct CRTDLL_iswpunct
74 #define iswspace CRTDLL_iswspace
75 #define iswupper CRTDLL_iswupper
76 #define iswxdigit CRTDLL_iswxdigit
77 #define mbtowc CRTDLL_mbtowc
78 #define wcscoll CRTDLL_wcscoll
79 #define wctomb CRTDLL_wctomb
82 #endif /* __WINE_CRTDLL_H */