[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] master 37a1b2c: Whitespace, typos, other minor issues.
From: |
Werner Lemberg |
Subject: |
[freetype2-demos] master 37a1b2c: Whitespace, typos, other minor issues. |
Date: |
Mon, 22 Nov 2021 13:59:06 -0500 (EST) |
branch: master
commit 37a1b2c077936d9c3d4308baad3bb688f4965748
Author: Werner Lemberg <wl@gnu.org>
Commit: Werner Lemberg <wl@gnu.org>
Whitespace, typos, other minor issues.
---
builds/windows/msvc/ft2demos.sln | 2 +-
src/ftcommon.c | 4 ++--
src/ftdump.c | 22 +++++++++++-----------
src/ftmemchk.c | 4 ++--
src/ftpngout.c | 4 ++--
src/ftstring.c | 2 +-
src/gbench.c | 8 ++++----
vms_make.com | 6 +++---
8 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/builds/windows/msvc/ft2demos.sln b/builds/windows/msvc/ft2demos.sln
index 5162553..1373302 100644
--- a/builds/windows/msvc/ft2demos.sln
+++ b/builds/windows/msvc/ft2demos.sln
@@ -42,7 +42,7 @@ Global
{3A8DB6B5-EF56-4E42-8918-3E54889C53AB}.Release|x64.ActiveCfg =
Release|x64
{3A8DB6B5-EF56-4E42-8918-3E54889C53AB}.Release|x64.Build.0 =
Release|x64
{3A8DB6B5-EF56-4E42-8918-3E54889C53AB}.Release|x86.ActiveCfg =
Release|Win32
-
{3A8DB6B5-EF56-4E42-8918-3E54889C53AB}.Release|x86.Build.0 = Release|Win32
+ {3A8DB6B5-EF56-4E42-8918-3E54889C53AB}.Release|x86.Build.0 =
Release|Win32
{481AD586-CA51-4BEB-BFE8-B2F3354D296D}.Debug|x64.ActiveCfg =
Debug|x64
{481AD586-CA51-4BEB-BFE8-B2F3354D296D}.Debug|x64.Build.0 =
Debug|x64
{481AD586-CA51-4BEB-BFE8-B2F3354D296D}.Debug|x86.ActiveCfg =
Debug|Win32
diff --git a/src/ftcommon.c b/src/ftcommon.c
index efa9d93..9662cd5 100644
--- a/src/ftcommon.c
+++ b/src/ftcommon.c
@@ -483,8 +483,8 @@
char t[] = { 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1 };
short c[] = {29};
- FT_Outline FT = { sizeof( c ) / sizeof( c[0] ),
- sizeof( p ) / sizeof( p[0] ),
+ FT_Outline FT = { sizeof ( c ) / sizeof ( c[0] ),
+ sizeof ( p ) / sizeof ( p[0] ),
p, t, c, FT_OUTLINE_NONE };
grBitmap icon = { 0 };
grBitmap* picon = NULL;
diff --git a/src/ftdump.c b/src/ftdump.c
index ed5be75..f07446f 100644
--- a/src/ftdump.c
+++ b/src/ftdump.c
@@ -160,9 +160,9 @@
: modified - 2082844800U;
/* ignore pre-epoch time that gmtime cannot handle on some systems */
- if ( created >= 0 )
+ if ( created >= 0 )
{
- strftime( buf, sizeof ( buf ), "%Y-%m-%d", gmtime( &created ) );
+ strftime( buf, sizeof ( buf ), "%Y-%m-%d", gmtime( &created ) );
printf( "%s%s\n", Name_Field( "created" ), buf );
}
if ( modified >= 0 )
@@ -838,7 +838,7 @@
if ( loc + 1 >= end )
{
- printf( "\nglyf %hd: invalid offset (%d)\n", i, loc );
+ printf( "\nglyph %hd: invalid offset (%d)\n", i, loc );
continue;
}
@@ -854,7 +854,7 @@
{
if ( loc + 1 >= end )
{
- printf( "\nglyf %hd: invalid offset (%d)\n", i, loc );
+ printf( "\nglyph %hd: invalid offset (%d)\n", i, loc );
goto Continue;
}
@@ -879,7 +879,7 @@
{
/* zero-contour glyphs can have no data */
if ( len )
- printf( "\nglyf %hd: invalid offset (%d)\n", i, loc );
+ printf( "\nglyph %hd: invalid offset (%d)\n", i, loc );
continue;
}
@@ -892,12 +892,12 @@
if ( loc + len > end )
{
- printf( "\nglyf %hd: invalid size (%d)\n", i, len );
+ printf( "\nglyph %hd: invalid size (%d)\n", i, len );
continue;
}
snprintf( tag, sizeof ( tag ), "%04hx", i );
- printf( "\nglyf %hd (%.4s)", i, tag );
+ printf( "\nglyph %hd (%.4s)", i, tag );
Print_Bytecode( buffer + loc, len, tag );
Continue:
@@ -995,7 +995,7 @@
if ( loc + 1 >= end )
{
- printf( "\nglyf %hd: invalid offset (%d)\n", i, loc );
+ printf( "\nglyph %hd: invalid offset (%d)\n", i, loc );
continue;
}
@@ -1008,7 +1008,7 @@
if ( loc + 1 >= end )
{
- printf( "\nglyf %hd: invalid offset (%d)\n", i, loc );
+ printf( "\nglyph %hd: invalid offset (%d)\n", i, loc );
continue;
}
@@ -1027,7 +1027,7 @@
{
/* zero-contour glyphs can have no data */
if ( len )
- printf( "\nglyf %hd: invalid offset (%d)\n", i, loc );
+ printf( "\nglyph %hd: invalid offset (%d)\n", i, loc );
continue;
}
@@ -1037,7 +1037,7 @@
if ( len >= end )
{
- printf( "\nglyf %hd: invalid offset (%d)\n", i, loc );
+ printf( "\nglyph %hd: invalid offset (%d)\n", i, loc );
continue;
}
diff --git a/src/ftmemchk.c b/src/ftmemchk.c
index 3975b56..6156d4d 100644
--- a/src/ftmemchk.c
+++ b/src/ftmemchk.c
@@ -163,8 +163,8 @@ static FT_Memory my_memory( void )
{
FT_Memory memory;
- memory = (FT_Memory)my_alloc( 0, sizeof(*memory) );
- if (!memory)
+ memory = (FT_Memory)my_alloc( 0, sizeof ( *memory ) );
+ if ( !memory )
{
fprintf( stderr, "Unable to allocate debug memory manager !?!\n" );
exit(2);
diff --git a/src/ftpngout.c b/src/ftpngout.c
index 426d09f..b21cae8 100644
--- a/src/ftpngout.c
+++ b/src/ftpngout.c
@@ -304,9 +304,9 @@
{ 0x9a,0x73,0x00,0x00,0xf8,0x1e,0xf3,0x2e } };
ULONG gg[2] = { display->gamma * 0x10000, 0x10000 };
- PropertyItem gamma = { PropertyTagGamma, 2 * sizeof(ULONG),
+ PropertyItem gamma = { PropertyTagGamma, 2 * sizeof ( ULONG ),
PropertyTagTypeRational, gg };
- PropertyItem software = { PropertyTagSoftwareUsed, strlen(ver_str) + 1,
+ PropertyItem software = { PropertyTagSoftwareUsed, strlen( ver_str ) + 1,
PropertyTagTypeASCII, ver_str };
diff --git a/src/ftstring.c b/src/ftstring.c
index 58075f0..f431deb 100644
--- a/src/ftstring.c
+++ b/src/ftstring.c
@@ -434,7 +434,7 @@
static int i = INT_MAX - 1;
- if ( ++i >= (int)( sizeof( Sample ) / sizeof( Sample[0] ) ) )
+ if ( ++i >= (int)( sizeof ( Sample ) / sizeof ( Sample[0] ) ) )
i = Sample[0] == NULL ? 1 : 0;
status.text = Sample[i];
diff --git a/src/gbench.c b/src/gbench.c
index e1f8c4b..537d073 100644
--- a/src/gbench.c
+++ b/src/gbench.c
@@ -727,19 +727,19 @@ main(int argc,
ggamma_set( gamma );
- memset( buffer, 0, sizeof(buffer) );
+ memset( buffer, 0, sizeof ( buffer ) );
if (TEST('a')) bench( do_glyph, 0, "direct white glyph", 0 );
chits = cmiss1 = cmiss2 = 0;
- memset( buffer, 0, sizeof(buffer) );
+ memset( buffer, 0, sizeof ( buffer ) );
if (TEST('b')) bench( do_glyph, 1, "cache white glyph", 0 );
dump_cache_stats();
- memset( buffer, 0, sizeof(buffer) );
+ memset( buffer, 0, sizeof ( buffer ) );
if (TEST('c')) bench( do_glyph_color, 0, "direct color glyph", 0 );
chits = cmiss1 = cmiss2 = 0;
- memset( buffer, 0, sizeof(buffer) );
+ memset( buffer, 0, sizeof ( buffer ) );
if (TEST('d')) bench( do_glyph_color, 1, "cache color glyph", 0 );
dump_cache_stats();
diff --git a/vms_make.com b/vms_make.com
old mode 100755
new mode 100644
index 9092dec..3a098cd
--- a/vms_make.com
+++ b/vms_make.com
@@ -2,7 +2,7 @@ $!---------------vms_make.com for Freetype2 demos
------------------------------
$! make Freetype2 under OpenVMS
$!
$! In case of problems with the build you might want to contact me at
-$! zinser@zinser.no-ip.info (preferred) or
+$! zinser@zinser.no-ip.info (preferred) or
$! zinser@sysdev.deutsche-boerse.com (Work)
$!
$!------------------------------------------------------------------------------
@@ -356,8 +356,8 @@ $!
$! Version history
$! 0.01 20040220 First version to receive a number
$! 0.02 20040229 Echo current procedure name; use general error exit handler
-$! Remove xpm hack -> Replaced by more general dnsrl handling
-$! ---> Attention slightly changed version to take into account special
+$! Remove xpm hack -> Replaced by more general dnsrl handling
+$! ---> Attention slightly changed version to take into account special
$! Situation for Freetype2 demos
$CHECK_CREATE_VMSLIB:
$!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] master 37a1b2c: Whitespace, typos, other minor issues.,
Werner Lemberg <=