*/*: s/FT_LOGGING/FT_DEBUG_LOGGING/.

This commit is contained in:
Werner Lemberg 2020-12-07 10:27:42 +01:00
parent 9f94d8533c
commit 015a9b8d8f
15 changed files with 77 additions and 73 deletions

View File

@ -1,3 +1,7 @@
2020-12-07 Werner Lemberg <wl@gnu.org>
*/*: s/FT_LOGGING/FT_DEBUG_LOGGING/.
2020-12-05 Werner Lemberg <wl@gnu.org> 2020-12-05 Werner Lemberg <wl@gnu.org>
* builds/toplevel.mk (do-dist): Remove `submodules` directory. * builds/toplevel.mk (do-dist): Remove `submodules` directory.

View File

@ -35,9 +35,9 @@ Similarly, a build with `cmake' can be done directly from the git
repository. repository.
For using the `FT_LOGGING' macro while debugging (see `docs/DEBUG' for For using the `FT_DEBUG_LOGGING' macro while debugging (see
more information) use the following git commands to checkout `dlg' `docs/DEBUG' for more information) use the following git commands to
library as a git submodule. checkout `dlg' library as a git submodule.
git submodule init git submodule init
git submodule update git submodule update

View File

@ -1128,9 +1128,9 @@ fi
if test "$have_pthread" != no; then if test "$have_pthread" != no; then
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS $PTHREAD_LIBS" LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS $PTHREAD_LIBS"
ftoption_set FT_LOGGING ftoption_set FT_DEBUG_LOGGING
else else
ftoption_unset FT_LOGGING ftoption_unset FT_DEBUG_LOGGING
fi fi
AC_SUBST([CFLAGS]) AC_SUBST([CFLAGS])
@ -1185,7 +1185,7 @@ fi
if test $have_pthread = no; then if test $have_pthread = no; then
AC_MSG_WARN([ AC_MSG_WARN([
\`FT_LOGGING' will not work since the \`pthread' library is not available. \`FT_DEBUG_LOGGING' will not work since the \`pthread' library is not available.
]) ])
fi fi

View File

@ -46,7 +46,7 @@
#include <freetype/internal/ftobjs.h> #include <freetype/internal/ftobjs.h>
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
/************************************************************************** /**************************************************************************
* *
@ -87,7 +87,7 @@
dlg_handler ft_default_log_handler = NULL; dlg_handler ft_default_log_handler = NULL;
FT_Custom_Log_Handler custom_output_handler = NULL; FT_Custom_Log_Handler custom_output_handler = NULL;
#endif /* FT_LOGGING*/ #endif /* FT_DEBUG_LOGGING*/
#ifdef FT_DEBUG_LEVEL_ERROR #ifdef FT_DEBUG_LEVEL_ERROR
@ -255,7 +255,7 @@
const char* ft2_debug = NULL; const char* ft2_debug = NULL;
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
if ( ft_custom_trace_level != NULL ) if ( ft_custom_trace_level != NULL )
ft2_debug = ft_custom_trace_level; ft2_debug = ft_custom_trace_level;
else else
@ -276,7 +276,7 @@
if ( *p == ' ' || *p == '\t' || *p == ',' || *p == ';' || *p == '=' ) if ( *p == ' ' || *p == '\t' || *p == ',' || *p == ';' || *p == '=' )
continue; continue;
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
/* check extra arguments for logging */ /* check extra arguments for logging */
if ( *p == '-' ) if ( *p == '-' )
@ -317,7 +317,7 @@
} }
} }
#endif /* FT_LOGGING */ #endif /* FT_DEBUG_LOGGING */
/* read toggle name, followed by ':' */ /* read toggle name, followed by ':' */
q = p; q = p;
@ -423,7 +423,7 @@
#endif /* !FT_DEBUG_LEVEL_TRACE */ #endif /* !FT_DEBUG_LEVEL_TRACE */
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
/************************************************************************** /**************************************************************************
* *
@ -621,7 +621,7 @@
va_end( ap ); va_end( ap );
} }
#endif /* FT_LOGGING */ #endif /* FT_DEBUG_LOGGING */
/* END */ /* END */

View File

@ -90,7 +90,7 @@
<ClCompile> <ClCompile>
<Optimization>Disabled</Optimization> <Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\..\..\src\dlg\;$(UserOptionDirectory);..\..\..\include;$(UserIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <AdditionalIncludeDirectories>..\..\..\src\dlg\;$(UserOptionDirectory);..\..\..\include;$(UserIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;DLL_EXPORT;FT_LOGGING;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;DLL_EXPORT;FT_DEBUG_LOGGING;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<DisableLanguageExtensions>false</DisableLanguageExtensions> <DisableLanguageExtensions>false</DisableLanguageExtensions>
@ -119,7 +119,7 @@
<ClCompile> <ClCompile>
<Optimization>Disabled</Optimization> <Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\..\..\src\dlg\;$(UserOptionDirectory);..\..\..\include;$(UserIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <AdditionalIncludeDirectories>..\..\..\src\dlg\;$(UserOptionDirectory);..\..\..\include;$(UserIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;DLL_EXPORT;FT_LOGGING;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;DLL_EXPORT;FT_DEBUG_LOGGING;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<DisableLanguageExtensions>false</DisableLanguageExtensions> <DisableLanguageExtensions>false</DisableLanguageExtensions>
@ -148,7 +148,7 @@
<ClCompile> <ClCompile>
<Optimization>Disabled</Optimization> <Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\..\..\src\dlg;$(UserOptionDirectory);..\..\..\include;$(UserIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <AdditionalIncludeDirectories>..\..\..\src\dlg;$(UserOptionDirectory);..\..\..\include;$(UserIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;FT_LOGGING;DLG_STATIC;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;FT_DEBUG_LOGGING;DLG_STATIC;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<DisableLanguageExtensions>false</DisableLanguageExtensions> <DisableLanguageExtensions>false</DisableLanguageExtensions>
@ -177,7 +177,7 @@
<ClCompile> <ClCompile>
<Optimization>Disabled</Optimization> <Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\..\..\src\dlg;$(UserOptionDirectory);..\..\..\include;$(UserIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <AdditionalIncludeDirectories>..\..\..\src\dlg;$(UserOptionDirectory);..\..\..\include;$(UserIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;FT_LOGGING;DLG_STATIC;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;FT_DEBUG_LOGGING;DLG_STATIC;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<DisableLanguageExtensions>false</DisableLanguageExtensions> <DisableLanguageExtensions>false</DisableLanguageExtensions>

View File

@ -443,7 +443,7 @@ FT_BEGIN_HEADER
* to a file, FreeType uses an the external `dlg` library (the source * to a file, FreeType uses an the external `dlg` library (the source
* code is in `src/dlg`). * code is in `src/dlg`).
*/ */
#define FT_LOGGING #define FT_DEBUG_LOGGING
/************************************************************************** /**************************************************************************

View File

@ -12,10 +12,10 @@ CHANGES BETWEEN 2.10.4 and 2.11.0
- `ttdebug' didn't show changed point coordinates (bug introduced in - `ttdebug' didn't show changed point coordinates (bug introduced in
version 2.10.3). version 2.10.3).
- A new configuration macro `FT_LOGGING` is available. It provides - A new configuration macro `FT_DEBUG_LOGGING` is available. It
extended debugging capabilities for FreeType, for example showing provides extended debugging capabilities for FreeType, for example
a time stamp or displaying the component a tracing message comes showing a time stamp or displaying the component a tracing message
from. See file `docs/DEBUG` for more information. comes from. See file `docs/DEBUG` for more information.
This work was Priyesh Kumar's GSoC 2020 project. This work was Priyesh Kumar's GSoC 2020 project.

View File

@ -44,7 +44,7 @@ located in the file `ftoption.h'. The macros are:
When `FT2_DEBUG_MEMORY' isn't defined at runtime, the debugging When `FT2_DEBUG_MEMORY' isn't defined at runtime, the debugging
memory manager is ignored, and performance is unaffected. memory manager is ignored, and performance is unaffected.
FT_LOGGING FT_DEBUG_LOGGING
#define this macro for enhanced logging support; it automatically #define this macro for enhanced logging support; it automatically
sets `FT_DEBUG_LEVEL_TRACE' and `FT_DEBUG_LEVEL_ERROR'. sets `FT_DEBUG_LEVEL_TRACE' and `FT_DEBUG_LEVEL_ERROR'.
@ -165,7 +165,7 @@ behaviour of FreeType at runtime.
the memory and io components, which are set to the trace levels 5 the memory and io components, which are set to the trace levels 5
and 4, respectively. and 4, respectively.
If `FT_LOGGING' is defined, two more options are available. If `FT_DEBUG_LOGGING' is defined, two more options are available.
* -v: Print also the name of FreeType's component from which the * -v: Print also the name of FreeType's component from which the
current log is produced. current log is produced.
@ -190,8 +190,8 @@ behaviour of FreeType at runtime.
FT_LOGGING_FILE FT_LOGGING_FILE
This variable is only used if FreeType is built with the This variable is only used if FreeType is built with the
`FT_LOGGING' macro defined. It contains the path to the file `FT_DEBUG_LOGGING' macro defined. It contains the path to the
where the user wants to put his log file. If it is not set, file where the user wants to put his log file. If it is not set,
FreeType uses stderr. FreeType uses stderr.
Examples: Examples:
@ -254,10 +254,10 @@ behaviour of FreeType at runtime.
freed blocks are released at runtime. freed blocks are released at runtime.
IV. Additional Capabilities with `FT_LOGGING' IV. Additional Capabilities with `FT_DEBUG_LOGGING'
--------------------------------------------- ---------------------------------------------------
If `FT_LOGGING' is defined, four APIs are available to provide If `FT_DEBUG_LOGGING' is defined, four APIs are available to provide
additional debugging support. Use additional debugging support. Use
#include<freetype/ftlogging.h> #include<freetype/ftlogging.h>

View File

@ -445,7 +445,7 @@ FT_BEGIN_HEADER
* *
* This option needs a C99 compiler. * This option needs a C99 compiler.
*/ */
/* #define FT_LOGGING */ /* #define FT_DEBUG_LOGGING */
/************************************************************************** /**************************************************************************

View File

@ -36,11 +36,11 @@ FT_BEGIN_HEADER
* External Debugging APIs * External Debugging APIs
* *
* @abstract: * @abstract:
* Public APIs to control the `FT_LOGGING` macro. * Public APIs to control the `FT_DEBUG_LOGGING` macro.
* *
* @description: * @description:
* This section contains the declarations of public functions that * This section contains the declarations of public functions that
* enables fine control of what the `FT_LOGGING` macro outputs. * enables fine control of what the `FT_DEBUG_LOGGING` macro outputs.
* *
*/ */
@ -66,8 +66,8 @@ FT_BEGIN_HEADER
* ``` * ```
* *
* @note: * @note:
* This function is only available if compilation option `@FT_LOGGING` * This function is only available if compilation option
* is set. * `FT_DEBUG_LOGGING` is set.
*/ */
FT_EXPORT( void ) FT_EXPORT( void )
FT_Trace_Set_Level( const char* tracing_level ); FT_Trace_Set_Level( const char* tracing_level );
@ -85,8 +85,8 @@ FT_BEGIN_HEADER
* *
* *
* @note: * @note:
* This function is only available if compilation option `@FT_LOGGING` * This function is only available if compilation option
* is set. * `FT_DEBUG_LOGGING` is set.
*/ */
FT_EXPORT( void ) FT_EXPORT( void )
FT_Trace_Set_Default_Level( void ); FT_Trace_Set_Default_Level( void );
@ -131,8 +131,8 @@ FT_BEGIN_HEADER
* New logging function. * New logging function.
* *
* @note: * @note:
* This function is only available if compilation option `@FT_LOGGING` * This function is only available if compilation option
* is set. * `FT_DEBUG_LOGGING` is set.
*/ */
FT_EXPORT( void ) FT_EXPORT( void )
FT_Set_Log_Handler( FT_Custom_Log_Handler handler ); FT_Set_Log_Handler( FT_Custom_Log_Handler handler );
@ -148,8 +148,8 @@ FT_BEGIN_HEADER
* log handler to FreeType's built-in version. * log handler to FreeType's built-in version.
* *
* @note: * @note:
* This function is only available if compilation option `@FT_LOGGING` * This function is only available if compilation option
* is set. * `FT_DEBUG_LOGGING` is set.
*/ */
FT_EXPORT( void ) FT_EXPORT( void )
FT_Set_Default_Log_Handler( void ); FT_Set_Default_Log_Handler( void );

View File

@ -31,20 +31,20 @@
#include "compiler-macros.h" #include "compiler-macros.h"
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
#include <../src/dlg/dlg/dlg.h> #include <../src/dlg/dlg/dlg.h>
#include <../src/dlg/dlg/output.h> #include <../src/dlg/dlg/output.h>
#include <freetype/ftlogging.h> #include <freetype/ftlogging.h>
#endif /* FT_LOGGING */ #endif /* FT_DEBUG_LOGGING */
FT_BEGIN_HEADER FT_BEGIN_HEADER
/* force the definition of FT_DEBUG_LEVEL_TRACE if FT_LOGGING is */ /* force the definition of FT_DEBUG_LEVEL_TRACE if FT_DEBUG_LOGGING is */
/* already defined. */ /* already defined. */
/* */ /* */
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
#undef FT_DEBUG_LEVEL_TRACE #undef FT_DEBUG_LEVEL_TRACE
#define FT_DEBUG_LEVEL_TRACE #define FT_DEBUG_LEVEL_TRACE
#endif #endif
@ -104,11 +104,11 @@ FT_BEGIN_HEADER
/************************************************************************* /*************************************************************************
* *
* If FT_LOGGING is enabled, tracing messages are sent to dlg's API. * If FT_DEBUG_LOGGING is enabled, tracing messages are sent to dlg's API.
* If FT_LOGGING is disabled, tracing messages are sent to `FT_Message` * If FT_DEBUG_LOGGING is disabled, tracing messages are sent to
* (defined in ftdebug.c). * `FT_Message` (defined in ftdebug.c).
*/ */
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
/* we need two macros to convert the names of `FT_COMPONENT` to a string */ /* we need two macros to convert the names of `FT_COMPONENT` to a string */
#define FT_LOGGING_TAG( x ) FT_LOGGING_TAG_( x ) #define FT_LOGGING_TAG( x ) FT_LOGGING_TAG_( x )
@ -132,7 +132,7 @@ FT_BEGIN_HEADER
ft_remove_tag( dlg_tag ); \ ft_remove_tag( dlg_tag ); \
} while( 0 ) } while( 0 )
#else /* !FT_LOGGING */ #else /* !FT_DEBUG_LOGGING */
#define FT_LOG( level, varformat ) \ #define FT_LOG( level, varformat ) \
do \ do \
@ -141,7 +141,7 @@ FT_BEGIN_HEADER
FT_Message varformat; \ FT_Message varformat; \
} while ( 0 ) } while ( 0 )
#endif /* !FT_LOGGING */ #endif /* !FT_DEBUG_LOGGING */
#ifdef FT_DEBUG_LEVEL_TRACE #ifdef FT_DEBUG_LEVEL_TRACE
@ -259,14 +259,14 @@ FT_BEGIN_HEADER
#ifdef FT_DEBUG_LEVEL_ERROR #ifdef FT_DEBUG_LEVEL_ERROR
/************************************************************************* /**************************************************************************
* *
* If FT_LOGGING is enabled, error messages are sent to dlg's API. * If FT_DEBUG_LOGGING is enabled, error messages are sent to dlg's API.
* If FT_LOGGING is disabled, error messages are sent to `FT_Message` * If FT_DEBUG_LOGGING is disabled, error messages are sent to `FT_Message`
* (defined in ftdebug.c). * (defined in ftdebug.c).
* *
*/ */
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
#define FT_ERROR( varformat ) \ #define FT_ERROR( varformat ) \
do \ do \
@ -279,11 +279,11 @@ FT_BEGIN_HEADER
ft_remove_tag( dlg_tag ); \ ft_remove_tag( dlg_tag ); \
} while ( 0 ) } while ( 0 )
#else /* !FT_LOGGING */ #else /* !FT_DEBUG_LOGGING */
#define FT_ERROR( varformat ) FT_Message varformat #define FT_ERROR( varformat ) FT_Message varformat
#endif /* !FT_LOGGING */ #endif /* !FT_DEBUG_LOGGING */
#else /* !FT_DEBUG_LEVEL_ERROR */ #else /* !FT_DEBUG_LEVEL_ERROR */
@ -358,7 +358,7 @@ FT_BEGIN_HEADER
ft_debug_init( void ); ft_debug_init( void );
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
/************************************************************************** /**************************************************************************
* *
@ -388,7 +388,7 @@ FT_BEGIN_HEADER
/************************************************************************** /**************************************************************************
* *
* If FT_LOGGING macro is enabled, FreeType needs to initialize and * If FT_DEBUG_LOGGING macro is enabled, FreeType needs to initialize and
* un-initialize `FILE*`. * un-initialize `FILE*`.
* *
* These functions are defined in `ftdebug.c`. * These functions are defined in `ftdebug.c`.
@ -425,7 +425,7 @@ FT_BEGIN_HEADER
FT_Logging_Callback( const char* fmt, FT_Logging_Callback( const char* fmt,
... ); ... );
#endif /* FT_LOGGING */ #endif /* FT_DEBUG_LOGGING */
FT_END_HEADER FT_END_HEADER

View File

@ -46,7 +46,7 @@
#include <freetype/internal/ftobjs.h> #include <freetype/internal/ftobjs.h>
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
/************************************************************************** /**************************************************************************
* *
@ -87,7 +87,7 @@
dlg_handler ft_default_log_handler = NULL; dlg_handler ft_default_log_handler = NULL;
FT_Custom_Log_Handler custom_output_handler = NULL; FT_Custom_Log_Handler custom_output_handler = NULL;
#endif /* FT_LOGGING*/ #endif /* FT_DEBUG_LOGGING*/
#ifdef FT_DEBUG_LEVEL_ERROR #ifdef FT_DEBUG_LEVEL_ERROR
@ -242,7 +242,7 @@
const char* ft2_debug = NULL; const char* ft2_debug = NULL;
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
if ( ft_custom_trace_level != NULL ) if ( ft_custom_trace_level != NULL )
ft2_debug = ft_custom_trace_level; ft2_debug = ft_custom_trace_level;
else else
@ -263,7 +263,7 @@
if ( *p == ' ' || *p == '\t' || *p == ',' || *p == ';' || *p == '=' ) if ( *p == ' ' || *p == '\t' || *p == ',' || *p == ';' || *p == '=' )
continue; continue;
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
/* check extra arguments for logging */ /* check extra arguments for logging */
if ( *p == '-' ) if ( *p == '-' )
@ -304,7 +304,7 @@
} }
} }
#endif /* FT_LOGGING */ #endif /* FT_DEBUG_LOGGING */
/* read toggle name, followed by ':' */ /* read toggle name, followed by ':' */
q = p; q = p;
@ -410,7 +410,7 @@
#endif /* !FT_DEBUG_LEVEL_TRACE */ #endif /* !FT_DEBUG_LEVEL_TRACE */
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
/************************************************************************** /**************************************************************************
* *
@ -608,7 +608,7 @@
va_end( ap ); va_end( ap );
} }
#endif /* FT_LOGGING */ #endif /* FT_DEBUG_LOGGING */
/* END */ /* END */

View File

@ -202,7 +202,7 @@
FT_Memory memory; FT_Memory memory;
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
ft_logging_init(); ft_logging_init();
#endif #endif
@ -252,7 +252,7 @@
/* discard memory manager */ /* discard memory manager */
FT_Done_Memory( memory ); FT_Done_Memory( memory );
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
ft_logging_deinit(); ft_logging_deinit();
#endif #endif

View File

@ -5292,12 +5292,12 @@
if ( !memory || !alibrary ) if ( !memory || !alibrary )
return FT_THROW( Invalid_Argument ); return FT_THROW( Invalid_Argument );
#ifndef FT_LOGGING #ifndef FT_DEBUG_LOGGING
#ifdef FT_DEBUG_LEVEL_ERROR #ifdef FT_DEBUG_LEVEL_ERROR
/* init debugging support */ /* init debugging support */
ft_debug_init(); ft_debug_init();
#endif /* FT_DEBUG_LEVEL_ERROR */ #endif /* FT_DEBUG_LEVEL_ERROR */
#endif /* !FT_LOGGING */ #endif /* !FT_DEBUG_LOGGING */
/* first of all, allocate the library object */ /* first of all, allocate the library object */
if ( FT_NEW( library ) ) if ( FT_NEW( library ) )

View File

@ -24,7 +24,7 @@
#include <freetype/freetype.h> #include <freetype/freetype.h>
#ifdef FT_LOGGING #ifdef FT_DEBUG_LOGGING
#include "dlg.c" #include "dlg.c"
#else #else
/* ANSI C doesn't like empty source files */ /* ANSI C doesn't like empty source files */