Updated.
[wine] / dlls / msvcrt / msvcrt.h
1 #ifndef __WINE_MSVCRT_H
2 #define __WINE_MSVCRT_H
3
4 #include "config.h"
5 #include "windef.h"
6 #include "debugtools.h"
7 #include "winbase.h"
8 #include "winerror.h"
9 #include "winnls.h"
10 #include <stdarg.h>
11 #include <ctype.h>
12 #include <string.h>
13
14 /* Files */
15 #define MSVCRT_EOF   -1
16 #define MSVCRT_WEOF (WCHAR)(0xFFFF)
17
18 /* TLS data */
19 extern DWORD MSVCRT_tls_index;
20
21 typedef struct __MSVCRT_thread_data
22 {
23   int errno;
24   int doserrno;
25 } MSVCRT_thread_data;
26
27 #define GET_THREAD_DATA(x) \
28   x = TlsGetValue(MSVCRT_tls_index)
29 #define GET_THREAD_VAR(x) \
30   ((MSVCRT_thread_data*)TlsGetValue(MSVCRT_tls_index))->x
31 #define GET_THREAD_VAR_PTR(x) \
32   (&((MSVCRT_thread_data*)TlsGetValue(MSVCRT_tls_index))->x)
33 #define SET_THREAD_VAR(x,y) \
34   ((MSVCRT_thread_data*)TlsGetValue(MSVCRT_tls_index))->x = y
35
36 void  MSVCRT__set_errno(int);
37 int   __cdecl MSVCRT__set_new_mode(int mode);
38 int   __cdecl MSVCRT__fcloseall(void);
39 void *__cdecl MSVCRT_malloc(unsigned int);
40 void *__cdecl MSVCRT_calloc(unsigned int, unsigned int);
41 void  __cdecl MSVCRT_free(void *);
42 int   __cdecl MSVCRT__cputs(const char *);
43 int   __cdecl MSVCRT__cprintf( const char *, ... );
44 char *__cdecl MSVCRT__strdup(const char *);
45
46 #endif /* __WINE_MSVCRT_H */