| Index: src/base/ftdebug.c
|
| diff --git a/src/base/ftdebug.c b/src/base/ftdebug.c
|
| index 2adbeabeb23e072b64d9ff011e9a4f536d062829..b9156d15ee3c570c712eed6ba0ba002f563172eb 100644
|
| --- a/src/base/ftdebug.c
|
| +++ b/src/base/ftdebug.c
|
| @@ -4,7 +4,7 @@
|
| /* */
|
| /* Debugging and logging component (body). */
|
| /* */
|
| -/* Copyright 1996-2001, 2002, 2004, 2008 by */
|
| +/* Copyright 1996-2001, 2002, 2004, 2008, 2013 by */
|
| /* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
| /* */
|
| /* This file is part of the FreeType project, and may only be used, */
|
| @@ -51,7 +51,8 @@
|
| /* documentation is in ftdebug.h */
|
|
|
| FT_BASE_DEF( void )
|
| - FT_Message( const char* fmt, ... )
|
| + FT_Message( const char* fmt,
|
| + ... )
|
| {
|
| va_list ap;
|
|
|
| @@ -65,7 +66,8 @@
|
| /* documentation is in ftdebug.h */
|
|
|
| FT_BASE_DEF( void )
|
| - FT_Panic( const char* fmt, ... )
|
| + FT_Panic( const char* fmt,
|
| + ... )
|
| {
|
| va_list ap;
|
|
|
| @@ -77,6 +79,21 @@
|
| exit( EXIT_FAILURE );
|
| }
|
|
|
| +
|
| + /* documentation is in ftdebug.h */
|
| +
|
| + FT_BASE_DEF( int )
|
| + FT_Throw( FT_Error error,
|
| + int line,
|
| + const char* file )
|
| + {
|
| + FT_UNUSED( error );
|
| + FT_UNUSED( line );
|
| + FT_UNUSED( file );
|
| +
|
| + return 0;
|
| + }
|
| +
|
| #endif /* FT_DEBUG_LEVEL_ERROR */
|
|
|
|
|
| @@ -164,6 +181,9 @@
|
| while ( *p && *p != ':' )
|
| p++;
|
|
|
| + if ( !*p )
|
| + break;
|
| +
|
| if ( *p == ':' && p > q )
|
| {
|
| FT_Int n, i, len = (FT_Int)( p - q );
|
| @@ -192,7 +212,7 @@
|
| p++;
|
| if ( *p )
|
| {
|
| - level = *p++ - '0';
|
| + level = *p - '0';
|
| if ( level < 0 || level > 7 )
|
| level = -1;
|
| }
|
|
|