forked from minhngoc25a/freetype2
* builds/windows/ftdebug.c (ft_logging_init, ft_logging_init):
Fixed coding style. * src/base/ftdebug.c (ft_logging_init): Fixed coding style.
This commit is contained in:
parent
92847d87ef
commit
c96739bfc9
|
@ -1,5 +1,10 @@
|
|||
2020-08-24 Priyesh Kumar <priyeshkkumar@gmail.com>
|
||||
|
||||
* builds/windows/ftdebug.c (ft_logging_init, ft_logging_init):
|
||||
Fixed coding style.
|
||||
|
||||
* src/base/ftdebug.c (ft_logging_init): Fixed coding style.
|
||||
|
||||
* builds/windows/ftdebug.c (ft_log_handler): Updated code according to the
|
||||
recent updates in dlg library.
|
||||
(ft_logging_init): Added environment variable `FT_LOGGING_FILE', the
|
||||
|
|
|
@ -252,13 +252,9 @@
|
|||
#ifdef FT_LOGGING
|
||||
|
||||
if( ft_custom_trace_level != NULL )
|
||||
{
|
||||
ft2_debug = ft_custom_trace_level;
|
||||
}
|
||||
else
|
||||
{
|
||||
ft2_debug = ft_default_trace_level;
|
||||
}
|
||||
|
||||
#else
|
||||
ft2_debug = ft_getenv( "FT2_DEBUG" );
|
||||
|
@ -429,13 +425,10 @@ else
|
|||
ft_default_log_handler = ft_log_handler;
|
||||
ft_default_trace_level = ft_getenv( "FT2_DEBUG" );
|
||||
if( ft_getenv( "FT_LOGGING_FILE" ) )
|
||||
{
|
||||
ft_fileptr = fopen( ft_getenv( "FT_LOGGING_FILE" ) , "w" );
|
||||
}
|
||||
else
|
||||
{
|
||||
ft_fileptr = stderr;
|
||||
}
|
||||
|
||||
ft_debug_init();
|
||||
/* We need to set the default FreeType specific dlg's output handler */
|
||||
dlg_set_handler( ft_default_log_handler, NULL );
|
||||
|
|
|
@ -413,13 +413,10 @@ else
|
|||
ft_default_log_handler = ft_log_handler;
|
||||
ft_default_trace_level = ft_getenv( "FT2_DEBUG" );
|
||||
if( ft_getenv( "FT_LOGGING_FILE" ) )
|
||||
{
|
||||
ft_fileptr = fopen( ft_getenv( "FT_LOGGING_FILE" ) , "w" );
|
||||
}
|
||||
ft_fileptr = fopen( ft_getenv( "FT_LOGGING_FILE" ) , "w" );
|
||||
else
|
||||
{
|
||||
ft_fileptr = stderr;
|
||||
}
|
||||
|
||||
ft_debug_init();
|
||||
/* We need to set the default FreeType specific dlg's output handler */
|
||||
dlg_set_handler( ft_default_log_handler, NULL );
|
||||
|
|
Loading…
Reference in New Issue