[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] priyesh_LogLibrary c96739b: * builds/windows/ftdebug.c (ft_l
From: |
Priyesh Kumar |
Subject: |
[freetype2] priyesh_LogLibrary c96739b: * builds/windows/ftdebug.c (ft_logging_init, ft_logging_init): |
Date: |
Mon, 24 Aug 2020 04:17:51 -0400 (EDT) |
branch: priyesh_LogLibrary
commit c96739bfc99b13aefb31746ca2e96d889a349c2f
Author: Priyeshkkumar <priyeshkkumar@gmail.com>
Commit: Priyeshkkumar <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.
---
[priyesh]ChangeLog | 5 +++++
builds/windows/ftdebug.c | 9 +--------
src/base/ftdebug.c | 7 ++-----
3 files changed, 8 insertions(+), 13 deletions(-)
diff --git a/[priyesh]ChangeLog b/[priyesh]ChangeLog
index 3ff886a..23fc704 100644
--- a/[priyesh]ChangeLog
+++ b/[priyesh]ChangeLog
@@ -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
diff --git a/builds/windows/ftdebug.c b/builds/windows/ftdebug.c
index def66d8..df82546 100644
--- a/builds/windows/ftdebug.c
+++ b/builds/windows/ftdebug.c
@@ -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 );
diff --git a/src/base/ftdebug.c b/src/base/ftdebug.c
index f0e798b..075096c 100644
--- a/src/base/ftdebug.c
+++ b/src/base/ftdebug.c
@@ -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 );
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] priyesh_LogLibrary c96739b: * builds/windows/ftdebug.c (ft_logging_init, ft_logging_init):,
Priyesh Kumar <=