freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2-demos] master ae38e95: Minor fixes (whitespace, comments).


From: Werner Lemberg
Subject: [freetype2-demos] master ae38e95: Minor fixes (whitespace, comments).
Date: Wed, 26 May 2021 14:28:04 -0400 (EDT)

branch: master
commit ae38e95192292a088a81e4ad9cac3bd93d9d2e07
Author: Werner Lemberg <wl@gnu.org>
Commit: Werner Lemberg <wl@gnu.org>

    Minor fixes (whitespace, comments).
---
 ChangeLog             | 24 ++++++++++++------------
 graph/win32/grwin32.c | 16 ++++++++--------
 src/ftbench.c         | 10 +++++-----
 src/ftpngout.c        |  4 ++--
 4 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3c624b7..7ab98ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,31 +1,31 @@
 2021-05-23  David Turner  <david@freetype.org>
 
-        * src/ftmemchk.c: Remove minor compiler warning.
+       * src/ftmemchk.c: Remove minor compiler warning.
 
-        Casting a pointer to (long) isn't always correct.
+       Casting a pointer to (long) isn't always correct.
 
 2021-05-23  David Turner  <david@freetype.org>
 
-        * src/ftpngout.c: Remove compiler warning for Mingw64 toolchain.
+       * src/ftpngout.c: Remove compiler warning for Mingw64 toolchain.
 
-        The #pragma statement is only valid with Microsoft Visual C++
+       The #pragma statement is only valid with Microsoft Visual C++
 
 2021-05-23  David Turner  <david@freetype.org>
 
-        * graph/win32/grwin32.c: Fix compiler warnings
+       * graph/win32/grwin32.c: Fix compiler warnings.
 
-        - Redefine the LCS_sRGB macro to properly compile with the Mingw64
-         toolchain and the -Wmultichar warning enabled.
+       - Redefine the LCS_sRGB macro to properly compile with the Mingw64
+        toolchain and the -Wmultichar warning enabled.
 
-        - Add missing return code paths in function.
+       - Add missing return code paths in function.
 
 2021-05-22  David Turner  <david@freetype.org>
 
-        * src/ftbench.c: Fix get_time() for Mingw64
+       * src/ftbench.c: Fix get_time() for Mingw64.
 
-        clock_gettime() cannot be used when cross-compiling for Windows 
-        using the Linux Mingw64 toolchain, so ensure the Win32-specific 
-        timer code is always used when _WIN32 is defined.
+       clock_gettime() cannot be used when cross-compiling for Windows
+       using the Linux Mingw64 toolchain, so ensure the Win32-specific
+       timer code is always used when _WIN32 is defined.
 
 2021-05-24  David Turner  <david@freetype.org>
 
diff --git a/graph/win32/grwin32.c b/graph/win32/grwin32.c
index a078a57..ecb5f5c 100644
--- a/graph/win32/grwin32.c
+++ b/graph/win32/grwin32.c
@@ -33,14 +33,14 @@
 #define xxSWIZZLE
 
 #ifdef SWIZZLE
-#include "grswizzle.h"
+# include "grswizzle.h"
 #endif
 
 /* logging facility */
 #define  xxDEBUG
 
 #ifdef DEBUG
-#include <stdarg.h>
+# include <stdarg.h>
 
   static void  LogMessage( const char*  fmt, ... )
   {
@@ -256,13 +256,13 @@ gr_win32_surface_set_icon( grWin32Surface*  surface,
   ICONINFO  ici = { TRUE };
   HICON     hIcon;
 
-/* NOTE: The Mingw64 wingdi.h defines this macro as 'sRGB'
- * which triggers the -Wmultichar warning during compilation,
- * so replace it with the corresponding numerical value.
- */
+  /* NOTE: The Mingw64 header file `wingdi.h` defines this macro as `sRGB`,
+   * which triggers the `-Wmultichar` warning during compilation, so replace
+   * it with the corresponding numerical value.
+   */
 #ifdef __MINGW64__
-#undef  LCS_sRGB
-#define LCS_sRGB 0x73524742
+# undef  LCS_sRGB
+# define LCS_sRGB  0x73524742
 #endif
 
   BITMAPV4HEADER  hdr = { sizeof( BITMAPV4HEADER ),
diff --git a/src/ftbench.c b/src/ftbench.c
index 592fcff..e245f59 100644
--- a/src/ftbench.c
+++ b/src/ftbench.c
@@ -198,11 +198,11 @@
   static double
   get_time( void )
   {
-/* NOTE: When building with the Mingw64 toolchain, _POSIX_TIMERS
- * will be defined, but clock_gettime() won't, so ensure that the
- * _WIN32 specific timer code appears first here.
- */
-#if defined _WIN32
+    /* NOTE: When building with the Mingw64 toolchain, `_POSIX_TIMERS` is
+     * defined, but function `clock_gettime` is not.  Ensure that the
+     * `_WIN32` specific timer code appears first here.
+     */
+#if defined  _WIN32
 
 #ifdef QPC
     LARGE_INTEGER  ticks;
diff --git a/src/ftpngout.c b/src/ftpngout.c
index c003425..8e01367 100644
--- a/src/ftpngout.c
+++ b/src/ftpngout.c
@@ -147,9 +147,9 @@
 #define WIN32_LEAN_AND_MEAN
 #include<windows.h>
 
-/* Microsoft Visual C++ specific pragma */
+  /* Microsoft Visual C++ specific pragma */
 #ifdef _MSC_VER
-#pragma comment (lib,"Gdiplus.lib")
+# pragma comment (lib,"Gdiplus.lib")
 #endif
 
  /* Barebone definitions and opaque types to avoid GDI+ (C++) headers */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]