ReactOS 0.4.17-dev-218-g5635d24
debug.h
Go to the documentation of this file.
1/*
2 * Wine debugging interface
3 *
4 * Copyright 1999 Patrik Stridvall
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21#ifndef __WINE_DEBUG_H
22#define __WINE_DEBUG_H
23
24#include <stdarg.h>
25#include <stdio.h>
26#include <windef.h>
27#ifndef GUID_DEFINED
28#include <guiddef.h>
29#endif
30
31#ifndef __RELFILE__
32#define __RELFILE__ __FILE__
33#endif
34
35#ifdef __WINE_WINE_TEST_H
36#error This file should not be used in Wine tests
37#endif
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43struct _GUID;
44
45/*
46 * Internal definitions (do not use these directly)
47 */
48
50{
51 __WINE_DBCL_FIXME = 0, /* 0x1 */
52 __WINE_DBCL_ERR = 1, /* 0x2 */
53 __WINE_DBCL_WARN = 2, /* 0x4 */
54 __WINE_DBCL_TRACE = 3, /* 0x8 */
55
56 /* lazy init flag */
58};
59
61{
62 unsigned char flags;
63 char name[15];
64};
65
66#define UNIMPLEMENTED WINE_FIXME("%s is UNIMPLEMENTED!\n", __FUNCTION__)
67
68#ifndef WINE_NO_TRACE_MSGS
69# define __WINE_GET_DEBUGGING_TRACE(dbch) ((dbch)->flags & (1 << __WINE_DBCL_TRACE))
70#else
71# define __WINE_GET_DEBUGGING_TRACE(dbch) 0
72#endif
73
74#ifndef WINE_NO_DEBUG_MSGS
75# define __WINE_GET_DEBUGGING_WARN(dbch) ((dbch)->flags & (1 << __WINE_DBCL_WARN))
76# define __WINE_GET_DEBUGGING_FIXME(dbch) ((dbch)->flags & (1 << __WINE_DBCL_FIXME))
77#else
78# define __WINE_GET_DEBUGGING_WARN(dbch) 0
79# define __WINE_GET_DEBUGGING_FIXME(dbch) 0
80#endif
81
82/* define error macro regardless of what is configured */
83#define __WINE_GET_DEBUGGING_ERR(dbch) ((dbch)->flags & (1 << __WINE_DBCL_ERR))
84
85#define __WINE_GET_DEBUGGING(dbcl,dbch) __WINE_GET_DEBUGGING##dbcl(dbch)
86
87#define __WINE_IS_DEBUG_ON(dbcl,dbch) \
88 (__WINE_GET_DEBUGGING##dbcl(dbch) && (__wine_dbg_get_channel_flags(dbch) & (1 << __WINE_DBCL##dbcl)))
89
90#define __WINE_DPRINTF(dbcl,dbch) \
91 do { if(__WINE_GET_DEBUGGING(dbcl,(dbch))) { \
92 struct __wine_debug_channel * const __dbch = (dbch); \
93 const enum __wine_debug_class __dbcl = __WINE_DBCL##dbcl; \
94 __WINE_DBG_LOG
95
96#define __WINE_DBG_LOG(...) \
97 ros_dbg_log( __dbcl, __dbch, __RELFILE__, __FUNCTION__, __LINE__, __VA_ARGS__); } } while(0)
98
99#if !defined(__REACTOS__) // (defined(__GNUC__) || defined(__clang__)) && (defined(__MINGW32__) || defined (_MSC_VER) || !defined(__WINE_USE_MSVCRT))
100#define __WINE_PRINTF_ATTR(fmt,args) __attribute__((format (printf,fmt,args)))
101#else
102#define __WINE_PRINTF_ATTR(fmt,args)
103#endif
104
105#ifdef WINE_NO_TRACE_MSGS
106#define WINE_TRACE(...) do { } while(0)
107#define WINE_TRACE_(ch) WINE_TRACE
108#endif
109
110#ifdef WINE_NO_DEBUG_MSGS
111#define WINE_WARN(...) do { } while(0)
112#define WINE_WARN_(ch) WINE_WARN
113#define WINE_FIXME(...) do { } while(0)
114#define WINE_FIXME_(ch) WINE_FIXME
115#endif
116
118{
119 char * (* const get_temp_buffer)( size_t n );
120 void (* const release_temp_buffer)( char *buffer, size_t n );
121 const char * (* const dbgstr_an)( const char * s, int n );
122 const char * (* const dbgstr_wn)( const WCHAR *s, int n );
123 int (* const dbg_vprintf)( const char *format, va_list args );
124 int (* dbg_vlog)( enum __wine_debug_class cls, struct __wine_debug_channel *channel,
125 const char *file, const char *function, const int line, const char *format, va_list args );
126};
127
128extern unsigned char __wine_dbg_get_channel_flags( struct __wine_debug_channel *channel );
129extern int __wine_dbg_set_channel_flags( struct __wine_debug_channel *channel,
130 unsigned char set, unsigned char clear );
131extern void __wine_dbg_set_functions( const struct __wine_debug_functions *new_funcs,
132 struct __wine_debug_functions *old_funcs, size_t size );
133
134/*
135 * Exported definitions and macros
136 */
137
138/* These functions return a printable version of a string, including
139 quotes. The string will be valid for some time, but not indefinitely
140 as strings are re-used. */
141extern const char *wine_dbgstr_an( const char * s, int n );
142extern const char *wine_dbgstr_wn( const WCHAR *s, int n );
143extern const char *wine_dbg_sprintf( const char *format, ... ) __WINE_PRINTF_ATTR(1,2);
144
145extern int wine_dbg_printf( const char *format, ... ) __WINE_PRINTF_ATTR(1,2);
147 const char *format, ... ) __WINE_PRINTF_ATTR(4,5);
148/* ReactOS compliant debug format */
150 const char *func, const int line, const char *format, ... ) __WINE_PRINTF_ATTR(6,7);
151
152static __inline const char *wine_dbgstr_a( const char *s )
153{
154 return wine_dbgstr_an( s, -1 );
155}
156
157static __inline const char *wine_dbgstr_w( const WCHAR *s )
158{
159 return wine_dbgstr_wn( s, -1 );
160}
161
162#if defined(__hstring_h__) && defined(__WINSTRING_H_)
163static inline const char *wine_dbgstr_hstring( HSTRING hstr )
164{
165 UINT32 len;
166 const WCHAR *str = WindowsGetStringRawBuffer( hstr, &len );
167 return wine_dbgstr_wn( str, len );
168}
169#endif
170
171static __inline const char *wine_dbgstr_guid( const GUID *id )
172{
173 if (!id) return "(null)";
174 if (!((ULONG_PTR)id >> 16)) return wine_dbg_sprintf( "<guid-0x%04lx>", (ULONG_PTR)id & 0xffff );
175 return wine_dbg_sprintf( "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
176 id->Data1, id->Data2, id->Data3,
177 id->Data4[0], id->Data4[1], id->Data4[2], id->Data4[3],
178 id->Data4[4], id->Data4[5], id->Data4[6], id->Data4[7] );
179}
180
181static __inline const char *wine_dbgstr_point( const POINT *pt )
182{
183 if (!pt) return "(null)";
184 return wine_dbg_sprintf( "(%ld,%ld)", pt->x, pt->y );
185}
186
187static __inline const char *wine_dbgstr_size( const SIZE *size )
188{
189 if (!size) return "(null)";
190 return wine_dbg_sprintf( "(%ld,%ld)", size->cx, size->cy );
191}
192
193static __inline const char *wine_dbgstr_rect( const RECT *rect )
194{
195 if (!rect) return "(null)";
196 return wine_dbg_sprintf( "(%ld,%ld)-(%ld,%ld)", rect->left, rect->top,
197 rect->right, rect->bottom );
198}
199
201{
202 if (/*sizeof(ll) > sizeof(unsigned long) &&*/ ll >> 32) /* ULONGLONG is always > long in ReactOS */
203 return wine_dbg_sprintf( "%lx%08lx", (unsigned long)(ll >> 32), (unsigned long)ll );
204 else return wine_dbg_sprintf( "%lx", (unsigned long)ll );
205}
206
207#if defined(__oaidl_h__) && defined(V_VT)
208
209static inline const char *wine_dbgstr_vt( VARTYPE vt )
210{
211 static const char *const variant_types[] =
212 {
213 "VT_EMPTY","VT_NULL","VT_I2","VT_I4","VT_R4","VT_R8","VT_CY","VT_DATE",
214 "VT_BSTR","VT_DISPATCH","VT_ERROR","VT_BOOL","VT_VARIANT","VT_UNKNOWN",
215 "VT_DECIMAL","15","VT_I1","VT_UI1","VT_UI2","VT_UI4","VT_I8","VT_UI8",
216 "VT_INT","VT_UINT","VT_VOID","VT_HRESULT","VT_PTR","VT_SAFEARRAY",
217 "VT_CARRAY","VT_USERDEFINED","VT_LPSTR","VT_LPWSTR","32","33","34","35",
218 "VT_RECORD","VT_INT_PTR","VT_UINT_PTR","39","40","41","42","43","44","45",
219 "46","47","48","49","50","51","52","53","54","55","56","57","58","59","60",
220 "61","62","63","VT_FILETIME","VT_BLOB","VT_STREAM","VT_STORAGE",
221 "VT_STREAMED_OBJECT","VT_STORED_OBJECT","VT_BLOB_OBJECT","VT_CF","VT_CLSID",
222 "VT_VERSIONED_STREAM"
223 };
224
225 static const char *const variant_flags[16] =
226 {
227 "",
228 "|VT_VECTOR",
229 "|VT_ARRAY",
230 "|VT_VECTOR|VT_ARRAY",
231 "|VT_BYREF",
232 "|VT_VECTOR|VT_BYREF",
233 "|VT_ARRAY|VT_BYREF",
234 "|VT_VECTOR|VT_ARRAY|VT_BYREF",
235 "|VT_RESERVED",
236 "|VT_VECTOR|VT_RESERVED",
237 "|VT_ARRAY|VT_RESERVED",
238 "|VT_VECTOR|VT_ARRAY|VT_RESERVED",
239 "|VT_BYREF|VT_RESERVED",
240 "|VT_VECTOR|VT_BYREF|VT_RESERVED",
241 "|VT_ARRAY|VT_BYREF|VT_RESERVED",
242 "|VT_VECTOR|VT_ARRAY|VT_BYREF|VT_RESERVED",
243 };
244
245 if (vt & ~VT_TYPEMASK)
246 return wine_dbg_sprintf( "%s%s", wine_dbgstr_vt(vt&VT_TYPEMASK), variant_flags[vt>>12] );
247
248 if (vt < sizeof(variant_types)/sizeof(*variant_types))
249 return variant_types[vt];
250
251 if (vt == VT_BSTR_BLOB)
252 return "VT_BSTR_BLOB";
253
254 return wine_dbg_sprintf( "vt(invalid %x)", vt );
255}
256
257static inline const char *wine_dbgstr_variant( const VARIANT *v )
258{
259 if (!v)
260 return "(null)";
261
262 if (V_VT(v) & VT_BYREF) {
263 if (V_VT(v) == (VT_VARIANT|VT_BYREF))
264 return wine_dbg_sprintf( "%p {VT_VARIANT|VT_BYREF: %s}", v, wine_dbgstr_variant(V_VARIANTREF(v)) );
265 if (V_VT(v) == (VT_BSTR|VT_BYREF))
266 return wine_dbg_sprintf( "%p {VT_BSTR|VT_BYREF: %s}", v, V_BSTRREF(v) ? wine_dbgstr_w(*V_BSTRREF(v)) : "(none)" );
267 return wine_dbg_sprintf( "%p {%s %p}", v, wine_dbgstr_vt(V_VT(v)), V_BYREF(v) );
268 }
269
270 if (V_ISARRAY(v) || V_ISVECTOR(v))
271 return wine_dbg_sprintf( "%p {%s %p}", v, wine_dbgstr_vt(V_VT(v)), V_ARRAY(v) );
272
273 switch(V_VT(v)) {
274 case VT_EMPTY:
275 return wine_dbg_sprintf( "%p {VT_EMPTY}", v );
276 case VT_NULL:
277 return wine_dbg_sprintf( "%p {VT_NULL}", v );
278 case VT_I2:
279 return wine_dbg_sprintf( "%p {VT_I2: %d}", v, V_I2(v) );
280 case VT_I4:
281 return wine_dbg_sprintf( "%p {VT_I4: %d}", v, V_I4(v) );
282 case VT_R4:
283 return wine_dbg_sprintf( "%p {VT_R4: %f}", v, V_R4(v) );
284 case VT_R8:
285 return wine_dbg_sprintf( "%p {VT_R8: %lf}", v, V_R8(v) );
286 case VT_CY:
287 return wine_dbg_sprintf( "%p {VT_CY: %s}", v, wine_dbgstr_longlong(V_CY(v).int64) );
288 case VT_DATE:
289 return wine_dbg_sprintf( "%p {VT_DATE: %lf}", v, V_DATE(v) );
290 case VT_BSTR:
291 return wine_dbg_sprintf( "%p {VT_BSTR: %s}", v, wine_dbgstr_w(V_BSTR(v)) );
292 case VT_DISPATCH:
293 return wine_dbg_sprintf( "%p {VT_DISPATCH: %p}", v, V_DISPATCH(v) );
294 case VT_ERROR:
295 return wine_dbg_sprintf( "%p {VT_ERROR: %08x}", v, V_ERROR(v) );
296 case VT_BOOL:
297 return wine_dbg_sprintf( "%p {VT_BOOL: %x}", v, V_BOOL(v) );
298 case VT_UNKNOWN:
299 return wine_dbg_sprintf( "%p {VT_UNKNOWN: %p}", v, V_UNKNOWN(v) );
300 case VT_I1:
301 return wine_dbg_sprintf( "%p {VT_I1: %d}", v, V_I1(v) );
302 case VT_UI1:
303 return wine_dbg_sprintf( "%p {VT_UI1: %u}", v, V_UI1(v) );
304 case VT_UI2:
305 return wine_dbg_sprintf( "%p {VT_UI2: %d}", v, V_UI2(v) );
306 case VT_UI4:
307 return wine_dbg_sprintf( "%p {VT_UI4: %d}", v, V_UI4(v) );
308 case VT_I8:
309 return wine_dbg_sprintf( "%p {VT_I8: %s}", v, wine_dbgstr_longlong(V_I8(v)) );
310 case VT_UI8:
311 return wine_dbg_sprintf( "%p {VT_UI8: %s}", v, wine_dbgstr_longlong(V_UI8(v)) );
312 case VT_INT:
313 return wine_dbg_sprintf( "%p {VT_INT: %d}", v, V_INT(v) );
314 case VT_UINT:
315 return wine_dbg_sprintf( "%p {VT_UINT: %u}", v, V_UINT(v) );
316 case VT_VOID:
317 return wine_dbg_sprintf( "%p {VT_VOID}", v );
318 case VT_RECORD:
319 return wine_dbg_sprintf( "%p {VT_RECORD: %p %p}", v, V_RECORD(v), V_RECORDINFO(v) );
320 default:
321 return wine_dbg_sprintf( "%p {vt %s}", v, wine_dbgstr_vt(V_VT(v)) );
322 }
323}
324
325#endif /* defined(__oaidl_h__) && defined(V_VT) */
326
327#ifndef WINE_TRACE
328#define WINE_TRACE __WINE_DPRINTF(_TRACE,__wine_dbch___default)
329#define WINE_TRACE_(ch) __WINE_DPRINTF(_TRACE,&__wine_dbch_##ch)
330#endif
331#define WINE_TRACE_ON(ch) __WINE_IS_DEBUG_ON(_TRACE,&__wine_dbch_##ch)
332
333#ifndef WINE_WARN
334#define WINE_WARN __WINE_DPRINTF(_WARN,__wine_dbch___default)
335#define WINE_WARN_(ch) __WINE_DPRINTF(_WARN,&__wine_dbch_##ch)
336#endif
337#define WINE_WARN_ON(ch) __WINE_IS_DEBUG_ON(_WARN,&__wine_dbch_##ch)
338
339#ifndef WINE_FIXME
340#define WINE_FIXME __WINE_DPRINTF(_FIXME,__wine_dbch___default)
341#define WINE_FIXME_(ch) __WINE_DPRINTF(_FIXME,&__wine_dbch_##ch)
342#endif
343#define WINE_FIXME_ON(ch) __WINE_IS_DEBUG_ON(_FIXME,&__wine_dbch_##ch)
344
345#define WINE_ERR __WINE_DPRINTF(_ERR,__wine_dbch___default)
346#define WINE_ERR_(ch) __WINE_DPRINTF(_ERR,&__wine_dbch_##ch)
347#define WINE_ERR_ON(ch) __WINE_IS_DEBUG_ON(_ERR,&__wine_dbch_##ch)
348
349#define WINE_DECLARE_DEBUG_CHANNEL(ch) \
350 static struct __wine_debug_channel __wine_dbch_##ch = { (unsigned char)~0, #ch }
351#define WINE_DEFAULT_DEBUG_CHANNEL(ch) \
352 static struct __wine_debug_channel __wine_dbch_##ch = { (unsigned char)~0, #ch }; \
353 static struct __wine_debug_channel * const __wine_dbch___default = &__wine_dbch_##ch
354
355#define WINE_DPRINTF wine_dbg_printf
356#define WINE_MESSAGE wine_dbg_printf
357
358/* Wine uses shorter names that are very likely to conflict with other software */
359
360static __inline const char *debugstr_an( const char * s, int n ) { return wine_dbgstr_an( s, n ); }
361static __inline const char *debugstr_wn( const WCHAR *s, int n ) { return wine_dbgstr_wn( s, n ); }
362static __inline const char *debugstr_guid( const struct _GUID *id ) { return wine_dbgstr_guid(id); }
363static __inline const char *debugstr_a( const char *s ) { return wine_dbgstr_an( s, -1 ); }
364static __inline const char *debugstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 ); }
365
366#if defined(__hstring_h__) && defined(__WINSTRING_H_)
367static inline const char *debugstr_hstring( struct HSTRING__ *s ) { return wine_dbgstr_hstring( s ); }
368#endif
369
370#if defined(__oaidl_h__) && defined(V_VT)
371static __inline const char *debugstr_vt( VARTYPE vt ) { return wine_dbgstr_vt( vt ); }
372static __inline const char *debugstr_variant( const VARIANT *v ) { return wine_dbgstr_variant( v ); }
373#endif
374
375#define TRACE WINE_TRACE
376#define TRACE_(ch) WINE_TRACE_(ch)
377#define TRACE_ON(ch) WINE_TRACE_ON(ch)
378
379#define WARN WINE_WARN
380#define WARN_(ch) WINE_WARN_(ch)
381#define WARN_ON(ch) WINE_WARN_ON(ch)
382
383#define FIXME WINE_FIXME
384#define FIXME_(ch) WINE_FIXME_(ch)
385#define FIXME_ON(ch) WINE_FIXME_ON(ch)
386
387#undef ERR /* Solaris got an 'ERR' define in <sys/reg.h> */
388#define ERR WINE_ERR
389#define ERR_(ch) WINE_ERR_(ch)
390#define ERR_ON(ch) WINE_ERR_ON(ch)
391
392#define DPRINTF WINE_DPRINTF
393#define MESSAGE WINE_MESSAGE
394
395#ifdef __cplusplus
396}
397#endif
398
399#endif /* __WINE_DEBUG_H */
#define __inline
Definition: _wctype.cpp:15
w ll
Definition: byte_order.h:167
Definition: _set.h:50
RECT rect
Definition: combotst.c:67
LPCWSTR WINAPI WindowsGetStringRawBuffer(HSTRING str, UINT32 *len)
Definition: string.c:263
unsigned short VARTYPE
Definition: compat.h:2254
@ VT_UI8
Definition: compat.h:2315
@ VT_BSTR
Definition: compat.h:2303
@ VT_VOID
Definition: compat.h:2318
@ VT_INT
Definition: compat.h:2316
@ VT_R4
Definition: compat.h:2299
@ VT_NULL
Definition: compat.h:2296
@ VT_UNKNOWN
Definition: compat.h:2308
@ VT_TYPEMASK
Definition: compat.h:2346
@ VT_BYREF
Definition: compat.h:2342
@ VT_UI2
Definition: compat.h:2312
@ VT_ERROR
Definition: compat.h:2305
@ VT_BSTR_BLOB
Definition: compat.h:2339
@ VT_R8
Definition: compat.h:2300
@ VT_CY
Definition: compat.h:2301
@ VT_VARIANT
Definition: compat.h:2307
@ VT_I8
Definition: compat.h:2314
@ VT_I1
Definition: compat.h:2310
@ VT_I4
Definition: compat.h:2298
@ VT_DATE
Definition: compat.h:2302
@ VT_BOOL
Definition: compat.h:2306
@ VT_I2
Definition: compat.h:2297
@ VT_UI4
Definition: compat.h:2313
@ VT_UINT
Definition: compat.h:2317
@ VT_EMPTY
Definition: compat.h:2295
@ VT_RECORD
Definition: compat.h:2326
@ VT_DISPATCH
Definition: compat.h:2304
@ VT_UI1
Definition: compat.h:2311
static REFPROPVARIANT PROPVAR_CHANGE_FLAGS VARTYPE vt
Definition: suminfo.c:91
unsigned char ch[4][2]
Definition: console.c:118
char * va_list
Definition: vadefs.h:50
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
static const char * debugstr_variant(const VARIANT *var)
Definition: dom.c:505
#define pt(x, y)
Definition: drawing.c:79
long long int64
Definition: platform.h:13
const GLdouble * v
Definition: gl.h:2040
GLdouble s
Definition: gl.h:2039
GLenum func
Definition: glext.h:6028
GLdouble n
Definition: glext.h:7729
GLuint buffer
Definition: glext.h:5915
GLsizeiptr size
Definition: glext.h:5919
GLenum GLsizei len
Definition: glext.h:6722
GLuint id
Definition: glext.h:5910
#define debugstr_guid
Definition: kernel32.h:35
#define debugstr_a
Definition: kernel32.h:31
#define debugstr_wn
Definition: kernel32.h:33
#define debugstr_w
Definition: kernel32.h:32
#define wine_dbgstr_w
Definition: kernel32.h:34
#define V_ERROR(A)
Definition: oleauto.h:241
#define V_UI1(A)
Definition: oleauto.h:266
#define V_I8(A)
Definition: oleauto.h:249
#define V_BOOL(A)
Definition: oleauto.h:224
#define V_ARRAY(A)
Definition: oleauto.h:222
#define V_RECORDINFO(A)
Definition: oleauto.h:214
#define V_INT(A)
Definition: oleauto.h:251
#define V_BSTRREF(A)
Definition: oleauto.h:227
#define V_UNKNOWN(A)
Definition: oleauto.h:281
#define V_UI2(A)
Definition: oleauto.h:268
#define V_I1(A)
Definition: oleauto.h:243
#define V_VARIANTREF(A)
Definition: oleauto.h:283
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
#define V_BYREF(A)
Definition: oleauto.h:228
#define V_I4(A)
Definition: oleauto.h:247
#define V_ISARRAY(A)
Definition: oleauto.h:218
#define V_R4(A)
Definition: oleauto.h:260
#define V_UINT(A)
Definition: oleauto.h:264
#define V_CY(A)
Definition: oleauto.h:229
#define V_ISVECTOR(A)
Definition: oleauto.h:219
#define V_UI4(A)
Definition: oleauto.h:270
#define V_DISPATCH(A)
Definition: oleauto.h:239
#define V_RECORD(A)
Definition: oleauto.h:213
#define V_R8(A)
Definition: oleauto.h:262
#define V_DATE(A)
Definition: oleauto.h:231
#define V_UI8(A)
Definition: oleauto.h:272
#define V_I2(A)
Definition: oleauto.h:245
short WCHAR
Definition: pedump.c:58
#define wine_dbgstr_wn
Definition: testlist.c:2
const WCHAR * str
__wine_debug_class
Definition: debug.h:50
@ __WINE_DBCL_ERR
Definition: debug.h:52
@ __WINE_DBCL_TRACE
Definition: debug.h:54
@ __WINE_DBCL_INIT
Definition: debug.h:57
@ __WINE_DBCL_FIXME
Definition: debug.h:51
@ __WINE_DBCL_WARN
Definition: debug.h:53
int __wine_dbg_set_channel_flags(struct __wine_debug_channel *channel, unsigned char set, unsigned char clear)
Definition: debug.c:88
const char * wine_dbgstr_an(const char *s, int n)
Definition: compat.c:313
const char int int int ros_dbg_log(enum __wine_debug_class cls, struct __wine_debug_channel *ch, const char *file, const char *func, const int line, const char *format,...) __WINE_PRINTF_ATTR(6
static __inline const char * wine_dbgstr_point(const POINT *pt)
Definition: debug.h:181
static __inline const char * debugstr_an(const char *s, int n)
Definition: debug.h:360
const char * wine_dbg_sprintf(const char *format,...) __WINE_PRINTF_ATTR(1
Definition: compat.c:296
static __inline const char * wine_dbgstr_longlong(ULONGLONG ll)
Definition: debug.h:200
#define __WINE_PRINTF_ATTR(fmt, args)
Definition: debug.h:100
static __inline const char * wine_dbgstr_size(const SIZE *size)
Definition: debug.h:187
static __inline const char * wine_dbgstr_rect(const RECT *rect)
Definition: debug.h:193
const char int int int static __inline const char * wine_dbgstr_a(const char *s)
Definition: debug.h:152
static __inline const char * wine_dbgstr_guid(const GUID *id)
Definition: debug.h:171
void __wine_dbg_set_functions(const struct __wine_debug_functions *new_funcs, struct __wine_debug_functions *old_funcs, size_t size)
Definition: debug.c:547
const char int int wine_dbg_log(enum __wine_debug_class cls, struct __wine_debug_channel *ch, const char *func, const char *format,...) __WINE_PRINTF_ATTR(4
const char int wine_dbg_printf(const char *format,...) __WINE_PRINTF_ATTR(1
#define args
Definition: format.c:66
Definition: scsiwmi.h:51
unsigned char flags
Definition: debug.h:62
void(*const release_temp_buffer)(char *buffer, size_t n)
Definition: debug.h:120
int(* dbg_vlog)(enum __wine_debug_class cls, struct __wine_debug_channel *channel, const char *file, const char *function, const int line, const char *format, va_list args)
Definition: debug.h:124
const char *(*const dbgstr_wn)(const WCHAR *s, int n)
Definition: debug.h:122
const char *(*const dbgstr_an)(const char *s, int n)
Definition: debug.h:121
int(*const dbg_vprintf)(const char *format, va_list args)
Definition: debug.h:123
char *(*const get_temp_buffer)(size_t n)
Definition: debug.h:119
Definition: fci.c:127
Definition: format.c:58
Definition: parser.c:49
Definition: name.c:39
LONG right
Definition: windef.h:108
LONG bottom
Definition: windef.h:109
LONG top
Definition: windef.h:107
LONG left
Definition: windef.h:106
uint64_t ULONGLONG
Definition: typedefs.h:67
uint32_t ULONG_PTR
Definition: typedefs.h:65
uint32_t UINT32
Definition: typedefs.h:59
#define __wine_dbg_get_channel_flags(channel)
Definition: wine_debug.c:172
#define const
Definition: zconf.h:233