48#ifdef FT_DEBUG_LEVEL_ERROR
65 static char buf[8192];
85 static char buf[8192];
108 "%s:%d: error 0x%02x: %s\n",
125#ifdef FT_DEBUG_LEVEL_TRACE
129 static int ft_trace_levels_enabled[trace_count];
132 static int ft_trace_levels_disabled[trace_count];
136 int* ft_trace_levels;
139#define FT_TRACE_DEF( x ) #x ,
141 static const char* ft_trace_toggles[trace_count + 1] =
168 return ft_trace_toggles[
idx];
179 ft_trace_levels = ft_trace_levels_disabled;
188 ft_trace_levels = ft_trace_levels_enabled;
213 const char* ft2_debug =
getenv(
"FT2_DEBUG" );
218 const char*
p = ft2_debug;
225 if ( *
p ==
' ' || *
p ==
'\t' || *
p ==
',' || *
p ==
';' || *
p ==
'=' )
230 while ( *
p && *
p !=
':' )
236 if ( *
p ==
':' &&
p >
q )
242 for (
n = 0;
n < trace_count;
n++ )
244 const char* toggle = ft_trace_toggles[
n];
247 for (
i = 0;
i <
len;
i++ )
249 if ( toggle[
i] !=
q[
i] )
253 if (
i ==
len && toggle[
i] == 0 )
265 if ( level < 0 || level > 7 )
269 if ( found >= 0 &&
level >= 0 )
271 if ( found == trace_any )
274 for (
n = 0;
n < trace_count;
n++ )
275 ft_trace_levels_enabled[
n] =
level;
278 ft_trace_levels_enabled[found] =
level;
284 ft_trace_levels = ft_trace_levels_enabled;
char *CDECL getenv(const char *name)
int WINAPIV fprintf(FILE *file, const char *format,...)
int CDECL vfprintf(FILE *file, const char *format, va_list valist)
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl vsprintf(char *, const char *, va_list) __WINE_CRT_PRINTF_ATTR(2
void FT_Panic(const char *format,...)
FT_Trace_Get_Name(FT_Int idx)
FT_BEGIN_HEADER FT_Error_String(FT_Error error_code)
void FT_Message(const char *format,...)
GLdouble GLdouble GLdouble GLdouble q
GLenum GLuint GLenum GLsizei const GLchar * buf
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
void WINAPI SHIM_OBJ_NAME() OutputDebugStringA(LPCSTR lpOutputString)
void int int ULONGLONG int va_list * ap