OSDN Git Service

Redo the filters based on assumptions discussed in mingw-dvlpr list.
[mingw/mingw-org-wsl.git] / include / rtutils.h
1 /**
2  * @file rtutils.h
3  * @copy 2012 MinGW.org project
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  * 
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  * 
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 #ifndef _RTUTILS_H
25 #define _RTUTILS_H
26 #pragma GCC system_header
27 #include <_mingw.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 /*--- Tracing Reference */
34 #if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K)
35 DWORD WINAPI TraceDeregisterA(DWORD);
36 DWORD WINAPI TraceDeregisterW(DWORD);
37 DWORD WINAPI TraceDeregisterExA(DWORD,DWORD);
38 DWORD WINAPI TraceDeregisterExW(DWORD,DWORD);
39 #define TRACE_NO_SYNCH 0x00000004
40 #define TraceDumpA(a,b,c,d,e,f) TraceDumpExA((a),0,(b),(c),(d),(e),(f))
41 #define TraceDumpW(a,b,c,d,e,f) TraceDumpExW((a),0,(b),(c),(d),(e),(f))
42 DWORD WINAPI TraceDumpExA(DWORD,DWORD,LPBYTE,DWORD,DWORD,BOOL,LPCSTR);
43 DWORD WINAPI TraceDumpExW(DWORD,DWORD,LPBYTE,DWORD,DWORD,BOOL,LPCWSTR);
44 DWORD WINAPI TracePrintfA(DWORD,LPCSTR,...);
45 DWORD WINAPI TracePrintfW(DWORD,LPCWSTR,...);
46 DWORD WINAPI TracePrintfExA(DWORD,DWORD,LPCSTR,...);
47 DWORD WINAPI TracePrintfExW(DWORD,DWORD,LPCWSTR,...);
48 #define TracePutsA(a,b) TracePutsExA((a),0,(b))
49 #define TracePutsW(a,b) TracePutsExW((a),0,(b))
50 DWORD WINAPI TracePutsExA(DWORD,DWORD,LPCSTR);
51 DWORD WINAPI TracePutsExW(DWORD,DWORD,LPCWSTR);
52 #define TraceRegisterA(a) TraceRegisterExA((a),0)
53 #define TraceRegisterW(a) TraceRegisterExW((a),0)
54 DWORD WINAPI TraceRegisterExA(LPCSTR,DWORD);
55 DWORD WINAPI TraceRegisterExW(LPCWSTR,DWORD);
56 #define TRACE_USE_FILE 0x00000001
57 #define TRACE_USE_CONSOLE 0x00000002
58 #define INVALID_TRACEID 0xFFFFFFFF
59 #define TraceVprintfA(a,b,c) TraceVprintfExA((a),0,(b),(c))
60 #define TraceVprintfW(a,b,c) TraceVprintfExW((a),0,(b),(c))
61 DWORD WINAPI TraceVprintfExA(DWORD,DWORD,LPCSTR,va_list);
62 DWORD WINAPI TraceVprintfExW(DWORD,DWORD,LPCWSTR,va_list);
63 #define TRACE_NO_STDINFO 0x00000001
64 #define TRACE_USE_MASK 0x00000002
65 #define TRACE_USE_MSEC 0x00000004
66
67 #define TraceDeregister __AW(TraceDeregister)
68 #define TraceDeregisterEx __AW(TraceDeregisterEx)
69 #define TraceDump __AW(TraceDump)
70 #define TraceDumpEx __AW(TraceDumpEx)
71 #define TracePrintf __AW(TracePrintf)
72 #define TracePrintfEx __AW(TracePrintfEx)
73 #define TracePuts __AW(TracePuts)
74 #define TracePutsEx __AW(TracePutsEx)
75 #define TraceRegister __AW(TraceRegister)
76 #define TraceRegisterEx __AW(TraceRegisterEx)
77 #define TraceVprintf __AW(TraceVprintf)
78 #define TraceVprintfEx __AW(TraceVprintfEx)
79
80 #endif /* (_WIN32_WINNT >= _WIN32_WINNT_WIN2K) */
81
82 #ifdef __cplusplus
83 }
84 #endif
85
86 #endif