31#define WIN32_NO_STATUS
40static const char *
const debug_classes[] = {
"fixme",
"err",
"warn",
"trace" };
42#define MAX_DEBUG_OPTIONS 256
66 const char *
name = p1;
80 if (opt)
return opt->
flags;
89 unsigned char set,
unsigned char clear )
150 unsigned char set = 0, clear = 0;
162 if (
len != (
p - opt))
continue;
165 if (*
p ==
'+')
set |= 1 <<
i;
166 else clear |= 1 <<
i;
175 if (*
p ==
'-') clear = ~0;
178 if (*
p ==
'+' || *
p ==
'-')
p++;
239 if (
strcmp(wine_debug,
"wine") == 0)
244 if (
strcmp(wine_debug,
"extended") == 0 ||
245 strcmp(wine_debug,
"ext") == 0)
327 static char *
list[32];
348 static const char hex[16] =
"0123456789abcdef";
354 if (!
str)
return "(null)";
366 unsigned char c = *
str++;
369 case '\n': *
dst++ =
'\\'; *
dst++ =
'n';
break;
370 case '\r': *
dst++ =
'\\'; *
dst++ =
'r';
break;
371 case '\t': *
dst++ =
'\\'; *
dst++ =
't';
break;
372 case '"': *
dst++ =
'\\'; *
dst++ =
'"';
break;
373 case '\\': *
dst++ =
'\\'; *
dst++ =
'\\';
break;
375 if (
c >=
' ' &&
c <= 126)
407 if (!
str)
return "(null)";
428 case '\n': *
dst++ =
'\\'; *
dst++ =
'n';
break;
429 case '\r': *
dst++ =
'\\'; *
dst++ =
'r';
break;
430 case '\t': *
dst++ =
'\\'; *
dst++ =
't';
break;
431 case '"': *
dst++ =
'\\'; *
dst++ =
'"';
break;
432 case '\\': *
dst++ =
'\\'; *
dst++ =
'\\';
break;
434 if (
c >=
' ' &&
c <= 126)
int strcmp(const char *String1, const char *String2)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
ACPI_SIZE strlen(const char *String)
char * strchr(const char *String, int ch)
#define WINE_DECLARE_DEBUG_CHANNEL(x)
#define GetEnvironmentVariableA(x, y, z)
static DWORD DWORD * dwLength
static LPSTR get_temp_buffer(void)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define memcpy(s1, s2, n)
#define memmove(s1, s2, n)
#define sprintf(buf, format,...)
static unsigned __int64 next
_Check_return_ _CRTIMP size_t __cdecl strcspn(_In_z_ const char *_Str, _In_z_ const char *_Control)
#define interlocked_xchg_add
const char * wine_dbg_sprintf(const char *format,...)
static void release_temp_buffer(char *buffer, size_t size)
int __wine_dbg_set_channel_flags(struct __wine_debug_channel *channel, unsigned char set, unsigned char clear)
static const char *const debug_classes[]
static void parse_options(const char *str)
static unsigned char default_flags
int ros_dbg_log(enum __wine_debug_class cls, struct __wine_debug_channel *channel, const char *file, const char *func, const int line, const char *format,...)
static int nb_debug_options
static void debug_init(void)
const char * wine_dbgstr_an(const char *s, int n)
static void add_option(const char *name, unsigned char set, unsigned char clear)
static int extfmt_default_dbg_vlog(enum __wine_debug_class cls, struct __wine_debug_channel *channel, const char *file, const char *func, const int line, const char *format, va_list args)
#define MAX_DEBUG_OPTIONS
static struct __wine_debug_functions funcs
static const char * default_dbgstr_an(const char *str, int n)
int wine_dbg_printf(const char *format,...)
static int winefmt_default_dbg_vlog(enum __wine_debug_class cls, struct __wine_debug_channel *channel, const char *file, const char *func, const int line, const char *format, va_list args)
static struct __wine_debug_channel debug_options[MAX_DEBUG_OPTIONS]
static int default_dbg_vprintf(const char *format, va_list args)
static int rosfmt_default_dbg_vlog(enum __wine_debug_class cls, struct __wine_debug_channel *channel, const char *file, const char *func, const int line, const char *format, va_list args)
void __wine_dbg_set_functions(const struct __wine_debug_functions *new_funcs, struct __wine_debug_functions *old_funcs, size_t size)
static const char * default_dbgstr_wn(const WCHAR *str, int n)
static int __cdecl cmp_name(const void *p1, const void *p2)
int wine_dbg_log(enum __wine_debug_class cls, struct __wine_debug_channel *channel, const char *func, const char *format,...)
ULONG NTAPI vDbgPrintExWithPrefix(IN PCCH Prefix, IN ULONG ComponentId, IN ULONG Level, IN PCCH Format, IN va_list ap)
DWORD WINAPI GetLastError(void)
_In_ ULONG_PTR _In_ ULONG _Out_ ULONG_PTR * pid
#define __wine_dbg_get_channel_flags(channel)
_Out_ PCLIENT_ID ClientId