ReactOS 0.4.17-dev-940-g8bd6e85
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 <ctype.h>
25#include <stdarg.h>
26#include <stdio.h>
27#include <windef.h>
28#ifndef GUID_DEFINED
29#include <guiddef.h>
30#endif
31
32#ifndef __RELFILE__
33#define __RELFILE__ __FILE__
34#endif
35
36/* Tests are not supposed to pull this in, but current Wine tests reach it
37 * through wine/strmbase.h, which needs wine_dbg_sprintf() for debugstr_time().
38 * When wine/test.h got here first it already supplies the same debug string
39 * helpers, so defer to it below rather than declaring them a second time. */
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45struct _GUID;
46
47/*
48 * Internal definitions (do not use these directly)
49 */
50
52{
53 __WINE_DBCL_FIXME = 0, /* 0x1 */
54 __WINE_DBCL_ERR = 1, /* 0x2 */
55 __WINE_DBCL_WARN = 2, /* 0x4 */
56 __WINE_DBCL_TRACE = 3, /* 0x8 */
57
58 /* lazy init flag */
60};
61
63{
64 unsigned char flags;
65 char name[15];
66};
67
68#define UNIMPLEMENTED WINE_FIXME("%s is UNIMPLEMENTED!\n", __FUNCTION__)
69
70#ifndef WINE_NO_TRACE_MSGS
71# define __WINE_GET_DEBUGGING_TRACE(dbch) ((dbch)->flags & (1 << __WINE_DBCL_TRACE))
72#else
73# define __WINE_GET_DEBUGGING_TRACE(dbch) 0
74#endif
75
76#ifndef WINE_NO_DEBUG_MSGS
77# define __WINE_GET_DEBUGGING_WARN(dbch) ((dbch)->flags & (1 << __WINE_DBCL_WARN))
78# define __WINE_GET_DEBUGGING_FIXME(dbch) ((dbch)->flags & (1 << __WINE_DBCL_FIXME))
79#else
80# define __WINE_GET_DEBUGGING_WARN(dbch) 0
81# define __WINE_GET_DEBUGGING_FIXME(dbch) 0
82#endif
83
84/* define error macro regardless of what is configured */
85#define __WINE_GET_DEBUGGING_ERR(dbch) ((dbch)->flags & (1 << __WINE_DBCL_ERR))
86
87#define __WINE_GET_DEBUGGING(dbcl,dbch) __WINE_GET_DEBUGGING##dbcl(dbch)
88
89#define __WINE_IS_DEBUG_ON(dbcl,dbch) \
90 (__WINE_GET_DEBUGGING##dbcl(dbch) && (__wine_dbg_get_channel_flags(dbch) & (1 << __WINE_DBCL##dbcl)))
91
92#define __WINE_DPRINTF(dbcl,dbch) \
93 do { if(__WINE_GET_DEBUGGING(dbcl,(dbch))) { \
94 struct __wine_debug_channel * const __dbch = (dbch); \
95 const enum __wine_debug_class __dbcl = __WINE_DBCL##dbcl; \
96 __WINE_DBG_LOG
97
98#define __WINE_DBG_LOG(...) \
99 ros_dbg_log( __dbcl, __dbch, __RELFILE__, __FUNCTION__, __LINE__, __VA_ARGS__); } } while(0)
100
101#ifndef __WINE_PRINTF_ATTR /* wine/test.h defines this too; either may come first */
102#if !defined(__REACTOS__) // (defined(__GNUC__) || defined(__clang__)) && (defined(__MINGW32__) || defined (_MSC_VER) || !defined(__WINE_USE_MSVCRT))
103#define __WINE_PRINTF_ATTR(fmt,args) __attribute__((format (printf,fmt,args)))
104#else
105#define __WINE_PRINTF_ATTR(fmt,args)
106#endif
107#endif /* !__WINE_PRINTF_ATTR */
108
109#ifdef WINE_NO_TRACE_MSGS
110#define WINE_TRACE(...) do { } while(0)
111#define WINE_TRACE_(ch) WINE_TRACE
112#endif
113
114#ifdef WINE_NO_DEBUG_MSGS
115#define WINE_WARN(...) do { } while(0)
116#define WINE_WARN_(ch) WINE_WARN
117#define WINE_FIXME(...) do { } while(0)
118#define WINE_FIXME_(ch) WINE_FIXME
119#endif
120
122{
123 char * (* const get_temp_buffer)( size_t n );
124 void (* const release_temp_buffer)( char *buffer, size_t n );
125 const char * (* const dbgstr_an)( const char * s, int n );
126 const char * (* const dbgstr_wn)( const WCHAR *s, int n );
127 int (* const dbg_vprintf)( const char *format, va_list args );
129 const char *file, const char *function, const int line, const char *format, va_list args );
130};
131
132extern unsigned char __wine_dbg_get_channel_flags( struct __wine_debug_channel *channel );
134 unsigned char set, unsigned char clear );
135extern void __wine_dbg_set_functions( const struct __wine_debug_functions *new_funcs,
136 struct __wine_debug_functions *old_funcs, size_t size );
137
138/*
139 * Exported definitions and macros
140 */
141
142/* These functions return a printable version of a string, including
143 quotes. The string will be valid for some time, but not indefinitely
144 as strings are re-used. */
145#ifndef __WINE_WINE_TEST_H /* wine/test.h declares these with intptr_t lengths */
146extern const char *wine_dbgstr_an( const char * s, int n );
147extern const char *wine_dbgstr_wn( const WCHAR *s, int n );
148#endif /* !__WINE_WINE_TEST_H */
149extern const char *wine_dbg_sprintf( const char *format, ... ) __WINE_PRINTF_ATTR(1,2);
150
151extern int wine_dbg_printf( const char *format, ... ) __WINE_PRINTF_ATTR(1,2);
152extern int __cdecl __wine_dbg_output( const char *str );
154 const char *format, ... ) __WINE_PRINTF_ATTR(4,5);
155/* ReactOS compliant debug format */
157 const char *func, const int line, const char *format, ... ) __WINE_PRINTF_ATTR(6,7);
158
159#ifndef __WINE_WINE_TEST_H /* see the note above: wine/test.h already has these */
160static __inline const char *wine_dbgstr_a( const char *s )
161{
162 return wine_dbgstr_an( s, -1 );
163}
164
165static __inline const char *wine_dbgstr_w( const WCHAR *s )
166{
167 return wine_dbgstr_wn( s, -1 );
168}
169#endif /* !__WINE_WINE_TEST_H */
170
171#if defined(__hstring_h__) && defined(__WINSTRING_H_)
172static inline const char *wine_dbgstr_hstring( HSTRING hstr )
173{
174 UINT32 len;
175 const WCHAR *str = WindowsGetStringRawBuffer( hstr, &len );
176 return wine_dbgstr_wn( str, len );
177}
178#endif
179
180#ifndef __WINE_WINE_TEST_H /* wine/test.h declares these too */
181static __inline const char *wine_dbgstr_guid( const GUID *id )
182{
183 if (!id) return "(null)";
184 if (!((ULONG_PTR)id >> 16)) return wine_dbg_sprintf( "<guid-0x%04lx>", (ULONG_PTR)id & 0xffff );
185 return wine_dbg_sprintf( "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
186 id->Data1, id->Data2, id->Data3,
187 id->Data4[0], id->Data4[1], id->Data4[2], id->Data4[3],
188 id->Data4[4], id->Data4[5], id->Data4[6], id->Data4[7] );
189}
190#endif /* !__WINE_WINE_TEST_H */
191
192/* wine/test.h has no fourcc helper, so this one is always needed. */
193#ifdef __REACTOS__ /* wine-8.18 */
194static inline const char *wine_dbgstr_fourcc( unsigned int fourcc )
195{
196 char str[4] = { (char)fourcc, (char)(fourcc >> 8), (char)(fourcc >> 16), (char)(fourcc >> 24) };
197 if (!fourcc)
198 return "''";
199 if (isprint( str[0] ) && isprint( str[1] ) && isprint( str[2] ) && isprint( str[3] ))
200 return wine_dbg_sprintf( "'%.4s'", str );
201 return wine_dbg_sprintf( "0x%08x", fourcc );
202}
203#endif
204
205#ifndef __WINE_WINE_TEST_H /* wine/test.h declares these too */
206static __inline const char *wine_dbgstr_point( const POINT *pt )
207{
208 if (!pt) return "(null)";
209 return wine_dbg_sprintf( "(%ld,%ld)", pt->x, pt->y );
210}
211
212static __inline const char *wine_dbgstr_size( const SIZE *size )
213{
214 if (!size) return "(null)";
215 return wine_dbg_sprintf( "(%ld,%ld)", size->cx, size->cy );
216}
217
218static __inline const char *wine_dbgstr_rect( const RECT *rect )
219{
220 if (!rect) return "(null)";
221 return wine_dbg_sprintf( "(%ld,%ld)-(%ld,%ld)", rect->left, rect->top,
222 rect->right, rect->bottom );
223}
224#endif /* !__WINE_WINE_TEST_H */
225
226/* wine/test.h only declares this one under WINETEST_USE_DBGSTR_LONGLONG. */
227#if !defined(__WINE_WINE_TEST_H) || !defined(WINETEST_USE_DBGSTR_LONGLONG)
229{
230 if (/*sizeof(ll) > sizeof(unsigned long) &&*/ ll >> 32) /* ULONGLONG is always > long in ReactOS */
231 return wine_dbg_sprintf( "%lx%08lx", (unsigned long)(ll >> 32), (unsigned long)ll );
232 else return wine_dbg_sprintf( "%lx", (unsigned long)ll );
233}
234#endif /* !__WINE_WINE_TEST_H */
235
236#if defined(__oaidl_h__) && defined(V_VT)
237
238static inline const char *wine_dbgstr_vt( VARTYPE vt )
239{
240 static const char *const variant_types[] =
241 {
242 "VT_EMPTY","VT_NULL","VT_I2","VT_I4","VT_R4","VT_R8","VT_CY","VT_DATE",
243 "VT_BSTR","VT_DISPATCH","VT_ERROR","VT_BOOL","VT_VARIANT","VT_UNKNOWN",
244 "VT_DECIMAL","15","VT_I1","VT_UI1","VT_UI2","VT_UI4","VT_I8","VT_UI8",
245 "VT_INT","VT_UINT","VT_VOID","VT_HRESULT","VT_PTR","VT_SAFEARRAY",
246 "VT_CARRAY","VT_USERDEFINED","VT_LPSTR","VT_LPWSTR","32","33","34","35",
247 "VT_RECORD","VT_INT_PTR","VT_UINT_PTR","39","40","41","42","43","44","45",
248 "46","47","48","49","50","51","52","53","54","55","56","57","58","59","60",
249 "61","62","63","VT_FILETIME","VT_BLOB","VT_STREAM","VT_STORAGE",
250 "VT_STREAMED_OBJECT","VT_STORED_OBJECT","VT_BLOB_OBJECT","VT_CF","VT_CLSID",
251 "VT_VERSIONED_STREAM"
252 };
253
254 static const char *const variant_flags[16] =
255 {
256 "",
257 "|VT_VECTOR",
258 "|VT_ARRAY",
259 "|VT_VECTOR|VT_ARRAY",
260 "|VT_BYREF",
261 "|VT_VECTOR|VT_BYREF",
262 "|VT_ARRAY|VT_BYREF",
263 "|VT_VECTOR|VT_ARRAY|VT_BYREF",
264 "|VT_RESERVED",
265 "|VT_VECTOR|VT_RESERVED",
266 "|VT_ARRAY|VT_RESERVED",
267 "|VT_VECTOR|VT_ARRAY|VT_RESERVED",
268 "|VT_BYREF|VT_RESERVED",
269 "|VT_VECTOR|VT_BYREF|VT_RESERVED",
270 "|VT_ARRAY|VT_BYREF|VT_RESERVED",
271 "|VT_VECTOR|VT_ARRAY|VT_BYREF|VT_RESERVED",
272 };
273
274 if (vt & ~VT_TYPEMASK)
275 return wine_dbg_sprintf( "%s%s", wine_dbgstr_vt(vt&VT_TYPEMASK), variant_flags[vt>>12] );
276
277 if (vt < sizeof(variant_types)/sizeof(*variant_types))
278 return variant_types[vt];
279
280 if (vt == VT_BSTR_BLOB)
281 return "VT_BSTR_BLOB";
282
283 return wine_dbg_sprintf( "vt(invalid %x)", vt );
284}
285
286static inline const char *wine_dbgstr_variant( const VARIANT *v )
287{
288 if (!v)
289 return "(null)";
290
291 if (V_VT(v) & VT_BYREF) {
292 if (V_VT(v) == (VT_VARIANT|VT_BYREF))
293 return wine_dbg_sprintf( "%p {VT_VARIANT|VT_BYREF: %s}", v, wine_dbgstr_variant(V_VARIANTREF(v)) );
294 if (V_VT(v) == (VT_BSTR|VT_BYREF))
295 return wine_dbg_sprintf( "%p {VT_BSTR|VT_BYREF: %s}", v, V_BSTRREF(v) ? wine_dbgstr_w(*V_BSTRREF(v)) : "(none)" );
296 return wine_dbg_sprintf( "%p {%s %p}", v, wine_dbgstr_vt(V_VT(v)), V_BYREF(v) );
297 }
298
299 if (V_ISARRAY(v) || V_ISVECTOR(v))
300 return wine_dbg_sprintf( "%p {%s %p}", v, wine_dbgstr_vt(V_VT(v)), V_ARRAY(v) );
301
302 switch(V_VT(v)) {
303 case VT_EMPTY:
304 return wine_dbg_sprintf( "%p {VT_EMPTY}", v );
305 case VT_NULL:
306 return wine_dbg_sprintf( "%p {VT_NULL}", v );
307 case VT_I2:
308 return wine_dbg_sprintf( "%p {VT_I2: %d}", v, V_I2(v) );
309 case VT_I4:
310 return wine_dbg_sprintf( "%p {VT_I4: %d}", v, V_I4(v) );
311 case VT_R4:
312 return wine_dbg_sprintf( "%p {VT_R4: %f}", v, V_R4(v) );
313 case VT_R8:
314 return wine_dbg_sprintf( "%p {VT_R8: %lf}", v, V_R8(v) );
315 case VT_CY:
316 return wine_dbg_sprintf( "%p {VT_CY: %s}", v, wine_dbgstr_longlong(V_CY(v).int64) );
317 case VT_DATE:
318 return wine_dbg_sprintf( "%p {VT_DATE: %lf}", v, V_DATE(v) );
319 case VT_BSTR:
320 return wine_dbg_sprintf( "%p {VT_BSTR: %s}", v, wine_dbgstr_w(V_BSTR(v)) );
321 case VT_DISPATCH:
322 return wine_dbg_sprintf( "%p {VT_DISPATCH: %p}", v, V_DISPATCH(v) );
323 case VT_ERROR:
324 return wine_dbg_sprintf( "%p {VT_ERROR: %08x}", v, V_ERROR(v) );
325 case VT_BOOL:
326 return wine_dbg_sprintf( "%p {VT_BOOL: %x}", v, V_BOOL(v) );
327 case VT_UNKNOWN:
328 return wine_dbg_sprintf( "%p {VT_UNKNOWN: %p}", v, V_UNKNOWN(v) );
329 case VT_I1:
330 return wine_dbg_sprintf( "%p {VT_I1: %d}", v, V_I1(v) );
331 case VT_UI1:
332 return wine_dbg_sprintf( "%p {VT_UI1: %u}", v, V_UI1(v) );
333 case VT_UI2:
334 return wine_dbg_sprintf( "%p {VT_UI2: %d}", v, V_UI2(v) );
335 case VT_UI4:
336 return wine_dbg_sprintf( "%p {VT_UI4: %d}", v, V_UI4(v) );
337 case VT_I8:
338 return wine_dbg_sprintf( "%p {VT_I8: %s}", v, wine_dbgstr_longlong(V_I8(v)) );
339 case VT_UI8:
340 return wine_dbg_sprintf( "%p {VT_UI8: %s}", v, wine_dbgstr_longlong(V_UI8(v)) );
341 case VT_INT:
342 return wine_dbg_sprintf( "%p {VT_INT: %d}", v, V_INT(v) );
343 case VT_UINT:
344 return wine_dbg_sprintf( "%p {VT_UINT: %u}", v, V_UINT(v) );
345 case VT_VOID:
346 return wine_dbg_sprintf( "%p {VT_VOID}", v );
347 case VT_RECORD:
348 return wine_dbg_sprintf( "%p {VT_RECORD: %p %p}", v, V_RECORD(v), V_RECORDINFO(v) );
349 default:
350 return wine_dbg_sprintf( "%p {vt %s}", v, wine_dbgstr_vt(V_VT(v)) );
351 }
352}
353
354#endif /* defined(__oaidl_h__) && defined(V_VT) */
355
356#ifndef WINE_TRACE
357#define WINE_TRACE __WINE_DPRINTF(_TRACE,__wine_dbch___default)
358#define WINE_TRACE_(ch) __WINE_DPRINTF(_TRACE,&__wine_dbch_##ch)
359#endif
360#define WINE_TRACE_ON(ch) __WINE_IS_DEBUG_ON(_TRACE,&__wine_dbch_##ch)
361
362#ifndef WINE_WARN
363#define WINE_WARN __WINE_DPRINTF(_WARN,__wine_dbch___default)
364#define WINE_WARN_(ch) __WINE_DPRINTF(_WARN,&__wine_dbch_##ch)
365#endif
366#define WINE_WARN_ON(ch) __WINE_IS_DEBUG_ON(_WARN,&__wine_dbch_##ch)
367
368#ifndef WINE_FIXME
369#define WINE_FIXME __WINE_DPRINTF(_FIXME,__wine_dbch___default)
370#define WINE_FIXME_(ch) __WINE_DPRINTF(_FIXME,&__wine_dbch_##ch)
371#endif
372#define WINE_FIXME_ON(ch) __WINE_IS_DEBUG_ON(_FIXME,&__wine_dbch_##ch)
373
374#define WINE_ERR __WINE_DPRINTF(_ERR,__wine_dbch___default)
375#define WINE_ERR_(ch) __WINE_DPRINTF(_ERR,&__wine_dbch_##ch)
376#define WINE_ERR_ON(ch) __WINE_IS_DEBUG_ON(_ERR,&__wine_dbch_##ch)
377
378#define WINE_DECLARE_DEBUG_CHANNEL(ch) \
379 static struct __wine_debug_channel __wine_dbch_##ch = { (unsigned char)~0, #ch }
380#define WINE_DEFAULT_DEBUG_CHANNEL(ch) \
381 static struct __wine_debug_channel __wine_dbch_##ch = { (unsigned char)~0, #ch }; \
382 static struct __wine_debug_channel * const __wine_dbch___default = &__wine_dbch_##ch
383
384#define WINE_DPRINTF wine_dbg_printf
385#define WINE_MESSAGE wine_dbg_printf
386
387/* Wine uses shorter names that are very likely to conflict with other software */
388
389#ifndef __WINE_WINE_TEST_H /* wine/test.h defines these too */
390static __inline const char *debugstr_an( const char * s, int n ) { return wine_dbgstr_an( s, n ); }
391static __inline const char *debugstr_wn( const WCHAR *s, int n ) { return wine_dbgstr_wn( s, n ); }
392static __inline const char *debugstr_guid( const struct _GUID *id ) { return wine_dbgstr_guid(id); }
393static __inline const char *debugstr_a( const char *s ) { return wine_dbgstr_an( s, -1 ); }
394static __inline const char *debugstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 ); }
395#endif /* !__WINE_WINE_TEST_H */
396/* wine/test.h has no debugstr_fourcc(), so this one is always needed. */
397static __inline const char *debugstr_fourcc( unsigned int cc ) { return wine_dbgstr_fourcc( cc ); }
398
399#if defined(__hstring_h__) && defined(__WINSTRING_H_)
400static inline const char *debugstr_hstring( struct HSTRING__ *s ) { return wine_dbgstr_hstring( s ); }
401#endif
402
403#if defined(__oaidl_h__) && defined(V_VT)
404static __inline const char *debugstr_vt( VARTYPE vt ) { return wine_dbgstr_vt( vt ); }
405static __inline const char *debugstr_variant( const VARIANT *v ) { return wine_dbgstr_variant( v ); }
406#endif
407
408#define TRACE WINE_TRACE
409#define TRACE_(ch) WINE_TRACE_(ch)
410#define TRACE_ON(ch) WINE_TRACE_ON(ch)
411
412#define WARN WINE_WARN
413#define WARN_(ch) WINE_WARN_(ch)
414#define WARN_ON(ch) WINE_WARN_ON(ch)
415
416#define FIXME WINE_FIXME
417#define FIXME_(ch) WINE_FIXME_(ch)
418#define FIXME_ON(ch) WINE_FIXME_ON(ch)
419
420#undef ERR /* Solaris got an 'ERR' define in <sys/reg.h> */
421#define ERR WINE_ERR
422#define ERR_(ch) WINE_ERR_(ch)
423#define ERR_ON(ch) WINE_ERR_ON(ch)
424
425#define DPRINTF WINE_DPRINTF
426#define MESSAGE WINE_MESSAGE
427
428#ifdef __cplusplus
429}
430#endif
431
432#endif /* __WINE_DEBUG_H */
#define __inline
Definition: _wctype.cpp:15
#define isprint(c)
Definition: acclib.h:73
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:90
unsigned char ch[4][2]
Definition: console.c:118
#define __cdecl
Definition: corecrt.h:121
char * va_list
Definition: vadefs.h:50
unsigned char
Definition: typeof.h:29
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
uint32_t cc
Definition: isohybrid.c:75
#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:52
@ __WINE_DBCL_ERR
Definition: debug.h:54
@ __WINE_DBCL_TRACE
Definition: debug.h:56
@ __WINE_DBCL_INIT
Definition: debug.h:59
@ __WINE_DBCL_FIXME
Definition: debug.h:53
@ __WINE_DBCL_WARN
Definition: debug.h:55
int __wine_dbg_set_channel_flags(struct __wine_debug_channel *channel, unsigned char set, unsigned char clear)
Definition: debug.c:88
const char int int __cdecl __wine_dbg_output(const char *str)
Definition: debug.c:273
const char * wine_dbgstr_an(const char *s, int n)
Definition: compat.c:313
static __inline const char * wine_dbgstr_point(const POINT *pt)
Definition: debug.h:206
static __inline const char * debugstr_an(const char *s, int n)
Definition: debug.h:390
const char * wine_dbg_sprintf(const char *format,...) __WINE_PRINTF_ATTR(1
Definition: compat.c:296
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_longlong(ULONGLONG ll)
Definition: debug.h:228
#define __WINE_PRINTF_ATTR(fmt, args)
Definition: debug.h:103
static __inline const char * wine_dbgstr_size(const SIZE *size)
Definition: debug.h:212
static __inline const char * wine_dbgstr_rect(const RECT *rect)
Definition: debug.h:218
int int static __inline const char * wine_dbgstr_a(const char *s)
Definition: debug.h:160
static __inline const char * wine_dbgstr_guid(const GUID *id)
Definition: debug.h:181
void __wine_dbg_set_functions(const struct __wine_debug_functions *new_funcs, struct __wine_debug_functions *old_funcs, size_t size)
Definition: debug.c:552
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
static __inline const char * debugstr_fourcc(unsigned int cc)
Definition: debug.h:397
#define args
Definition: format.c:66
Definition: dcommon.idl:28
long bottom
Definition: dcommon.idl:29
long right
Definition: dcommon.idl:29
long left
Definition: dcommon.idl:29
long top
Definition: dcommon.idl:29
Definition: scsiwmi.h:51
unsigned char flags
Definition: debug.h:64
void(*const release_temp_buffer)(char *buffer, size_t n)
Definition: debug.h:124
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:128
const char *(*const dbgstr_wn)(const WCHAR *s, int n)
Definition: debug.h:126
const char *(*const dbgstr_an)(const char *s, int n)
Definition: debug.h:125
int(*const dbg_vprintf)(const char *format, va_list args)
Definition: debug.h:127
char *(*const get_temp_buffer)(size_t n)
Definition: debug.h:123
Definition: fci.c:123
Definition: parser.c:49
Definition: name.c:39
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