- Implement URL_ESCAPE_SEGEMENT_ONLY, URL_ESCAPE_PERCENT,
[wine] / dlls / msvcrt / msvcrt.h
1 #ifndef __WINE_MSVCRT_H
2 #define __WINE_MSVCRT_H
3
4 #include <stdarg.h>
5 #include <ctype.h>
6 #include <string.h>
7
8 #include "windef.h"
9 #include "debugtools.h"
10 #include "winbase.h"
11 #include "winerror.h"
12 #include "winnls.h"
13
14 /* TLS data */
15 extern DWORD MSVCRT_tls_index;
16
17 typedef struct __MSVCRT_thread_data
18 {
19   int errno;
20   unsigned long doserrno;
21 } MSVCRT_thread_data;
22
23 #define GET_THREAD_DATA(x) \
24   x = TlsGetValue(MSVCRT_tls_index)
25 #define GET_THREAD_VAR(x) \
26   ((MSVCRT_thread_data*)TlsGetValue(MSVCRT_tls_index))->x
27 #define GET_THREAD_VAR_PTR(x) \
28   (&((MSVCRT_thread_data*)TlsGetValue(MSVCRT_tls_index))->x)
29 #define SET_THREAD_VAR(x,y) \
30   ((MSVCRT_thread_data*)TlsGetValue(MSVCRT_tls_index))->x = y
31
32 extern int MSVCRT_current_lc_all_cp;
33
34 void _purecall(void);
35 void   MSVCRT__set_errno(int);
36 char*  msvcrt_strndup(const char*,unsigned int);
37 LPWSTR msvcrt_wstrndup(LPCWSTR, unsigned int);
38
39 /* FIXME: This should be declared in new.h but it's not an extern "C" so 
40  * it would not be much use anyway. Even for Winelib applications.
41  */
42 int    MSVCRT__set_new_mode(int mode);
43
44 #endif /* __WINE_MSVCRT_H */