diff --git a/src/autofit/afcjk.c b/src/autofit/afcjk.c index 4ba5d22e8..427e4d819 100644 --- a/src/autofit/afcjk.c +++ b/src/autofit/afcjk.c @@ -1528,7 +1528,7 @@ } if ( dist < 54 ) - dist += ( 54 - dist ) / 2 ; + dist += ( 54 - dist ) / 2; else if ( dist < 3 * 64 ) { FT_Pos delta; diff --git a/src/base/ftbitmap.c b/src/base/ftbitmap.c index 8cc3a1730..24fead3e1 100644 --- a/src/base/ftbitmap.c +++ b/src/base/ftbitmap.c @@ -351,7 +351,7 @@ } /* for each row */ - for ( y = 0; y < bitmap->rows ; y++ ) + for ( y = 0; y < bitmap->rows; y++ ) { /* * Horizontally: diff --git a/src/base/ftmac.c b/src/base/ftmac.c index 5cfa012e7..e97fdbfc2 100644 --- a/src/base/ftmac.c +++ b/src/base/ftmac.c @@ -228,7 +228,7 @@ if ( !fontName || !face_index ) - return FT_THROW( Invalid_Argument) ; + return FT_THROW( Invalid_Argument); err = FT_GetFileRef_From_Mac_ATS_Name( fontName, &ref, face_index ); if ( err ) diff --git a/src/base/ftrfork.c b/src/base/ftrfork.c index 4d3de46a3..4660c971c 100644 --- a/src/base/ftrfork.c +++ b/src/base/ftrfork.c @@ -403,7 +403,7 @@ errors[i] = FT_Err_Ok; if ( errors[i] ) - continue ; + continue; errors[i] = (FT_RACCESS_GUESS_TABLE_GET[i].func)( library, stream, base_name, diff --git a/src/base/ftstream.c b/src/base/ftstream.c index 8b5bad8f6..bb512a7cc 100644 --- a/src/base/ftstream.c +++ b/src/base/ftstream.c @@ -778,7 +778,7 @@ case ft_frame_short_be: case ft_frame_ushort_be: /* read a 2-byte big-endian short */ - value = FT_NEXT_USHORT( cursor) ; + value = FT_NEXT_USHORT( cursor ); sign_shift = 16; break; diff --git a/src/cache/ftcmru.h b/src/cache/ftcmru.h index ea78a32a5..ae3c4ce23 100644 --- a/src/cache/ftcmru.h +++ b/src/cache/ftcmru.h @@ -185,7 +185,7 @@ FT_BEGIN_HEADER } \ _node = _node->next; \ \ - } while ( _node != _first) ; \ + } while ( _node != _first); \ } \ \ error = FTC_MruList_New( (list), (key), (FTC_MruNode*)(void*)&(node) ); \ diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c index 45f37a5f2..2a2f60f0d 100644 --- a/src/cff/cffgload.c +++ b/src/cff/cffgload.c @@ -680,7 +680,7 @@ #endif /* FT_CONFIG_OPTION_INCREMENTAL */ { - CFF_Font cff = (CFF_Font)(face->extra.data); + CFF_Font cff = (CFF_Font)(face->extra.data); return cff_index_access_element( &cff->charstrings_index, glyph_index, diff --git a/src/cff/cffload.c b/src/cff/cffload.c index f25c3fba9..2ea4e3700 100644 --- a/src/cff/cffload.c +++ b/src/cff/cffload.c @@ -809,7 +809,7 @@ /* When multiple GIDs map to the same CID, we choose the lowest */ /* GID. This is not described in any spec, but it matches the */ /* behaviour of recent Acroread versions. */ - for ( j = (FT_Long)num_glyphs - 1; j >= 0 ; j-- ) + for ( j = (FT_Long)num_glyphs - 1; j >= 0; j-- ) charset->cids[charset->sids[j]] = (FT_UShort)j; charset->max_cid = max_cid; diff --git a/src/gxvalid/gxvcommn.c b/src/gxvalid/gxvcommn.c index 2606e57dd..4b5e41539 100644 --- a/src/gxvalid/gxvcommn.c +++ b/src/gxvalid/gxvcommn.c @@ -900,7 +900,7 @@ for ( i = 0; i < nnames; i++ ) { if ( FT_Get_Sfnt_Name( gxvalid->face, i, &name ) != FT_Err_Ok ) - continue ; + continue; if ( name.name_id == name_index ) goto Out; @@ -1472,7 +1472,7 @@ if ( ( p + ( maxEntry + 1 ) * entrySize ) > limit ) FT_INVALID_TOO_SHORT; - for (entry = 0; entry <= maxEntry ; entry++ ) + for (entry = 0; entry <= maxEntry; entry++ ) { FT_UShort newState_idx; FT_UShort flags; diff --git a/src/gxvalid/gxvcommn.h b/src/gxvalid/gxvcommn.h index d49c4b486..9470c8412 100644 --- a/src/gxvalid/gxvcommn.h +++ b/src/gxvalid/gxvcommn.h @@ -338,7 +338,7 @@ FT_BEGIN_HEADER \ \ for ( b = p; b < (FT_Bytes)p + len; b++ ) \ - FT_TRACE1(("\\x%02x", *b)) ; \ + FT_TRACE1(("\\x%02x", *b)); \ } \ FT_END_STMNT @@ -350,9 +350,9 @@ FT_BEGIN_HEADER \ for ( b = p; b < (FT_Bytes)p + len; b++ ) \ if ( 0x40 < *b && *b < 0x7E ) \ - FT_TRACE1(("%c", *b)) ; \ + FT_TRACE1(("%c", *b)); \ else \ - FT_TRACE1(("\\x%02x", *b)) ; \ + FT_TRACE1(("\\x%02x", *b)); \ } \ FT_END_STMNT diff --git a/src/gxvalid/gxvjust.c b/src/gxvalid/gxvjust.c index fc8db0d9c..20d29bfbc 100644 --- a/src/gxvalid/gxvjust.c +++ b/src/gxvalid/gxvjust.c @@ -152,7 +152,7 @@ FT_Bytes limit, GXV_Validator gxvalid ) { - FT_Bytes p = table ; + FT_Bytes p = table; FT_Bytes wdc_end = table + GXV_JUST_DATA( wdc_offset_max ); FT_UInt i; diff --git a/src/gxvalid/gxvmort1.c b/src/gxvalid/gxvmort1.c index 24fed63c0..fd761d069 100644 --- a/src/gxvalid/gxvmort1.c +++ b/src/gxvalid/gxvmort1.c @@ -192,7 +192,7 @@ GXV_NAME_ENTER( "validating contents of substitutionTable" ); - for ( i = 0; i < num_gids ; i ++ ) + for ( i = 0; i < num_gids; i++ ) { FT_UShort dst_gid; diff --git a/src/gxvalid/gxvtrak.c b/src/gxvalid/gxvtrak.c index 8accdfbb7..0f07c04e2 100644 --- a/src/gxvalid/gxvtrak.c +++ b/src/gxvalid/gxvtrak.c @@ -111,7 +111,7 @@ GXV_LIMIT_CHECK( nTracks * ( 4 + 2 + 2 ) ); - for ( i = 0; i < nTracks; i ++ ) + for ( i = 0; i < nTracks; i++ ) { p = table + i * ( 4 + 2 + 2 ); track = FT_NEXT_LONG( p ); @@ -125,7 +125,7 @@ gxv_sfntName_validate( nameIndex, 256, 32767, gxvalid ); - for ( j = i; j < nTracks; j ++ ) + for ( j = i; j < nTracks; j++ ) { p = table + j * ( 4 + 2 + 2 ); t = FT_NEXT_LONG( p ); diff --git a/src/otvalid/otvmath.c b/src/otvalid/otvmath.c index 6c46178bf..6c785b6fd 100644 --- a/src/otvalid/otvmath.c +++ b/src/otvalid/otvmath.c @@ -88,7 +88,7 @@ FT_Int isItalic ) { FT_Bytes p = table; - FT_UInt i, cnt, table_size ; + FT_UInt i, cnt, table_size; OTV_OPTIONAL_TABLE( Coverage ); OTV_OPTIONAL_TABLE( DeviceTableOffset ); diff --git a/src/pcf/pcfread.c b/src/pcf/pcfread.c index fca677f4f..dec05db17 100644 --- a/src/pcf/pcfread.c +++ b/src/pcf/pcfread.c @@ -442,7 +442,7 @@ THE SOFTWARE. int i; - for ( i = 0 ; i < face->nprops && !found; i++ ) + for ( i = 0; i < face->nprops && !found; i++ ) { if ( !ft_strcmp( properties[i].name, prop ) ) found = 1; diff --git a/src/sfnt/ttcmap.c b/src/sfnt/ttcmap.c index 92ec52396..8f9e3c1f5 100644 --- a/src/sfnt/ttcmap.c +++ b/src/sfnt/ttcmap.c @@ -1245,7 +1245,7 @@ mid = max + 1; /* search in segments before the current segment */ - for ( i = max ; i > 0; i-- ) + for ( i = max; i > 0; i-- ) { FT_UInt prev_end; FT_Byte* old_p; diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c index 5f760a27e..6b29a8332 100644 --- a/src/truetype/ttgxvar.c +++ b/src/truetype/ttgxvar.c @@ -551,7 +551,7 @@ for ( i = 0; i < blend->tuplecount; i++ ) { FT_TRACE5(( " [ " )); - for ( j = 0 ; j < (FT_UInt)gvar_head.axisCount; j++ ) + for ( j = 0; j < (FT_UInt)gvar_head.axisCount; j++ ) { blend->tuplecoords[i * gvar_head.axisCount + j] = FT_GET_SHORT() * 4; /* convert to FT_Fixed */ diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c index cd4e294d5..a05f2167c 100644 --- a/src/truetype/ttobjs.c +++ b/src/truetype/ttobjs.c @@ -398,11 +398,11 @@ for ( j = 0; j < TRICK_SFNT_IDS_NUM_FACES; j++ ) { if ( !has_cvt && !sfnt_id[j][TRICK_SFNT_ID_cvt].Length ) - num_matched_ids[j] ++; + num_matched_ids[j]++; if ( !has_fpgm && !sfnt_id[j][TRICK_SFNT_ID_fpgm].Length ) - num_matched_ids[j] ++; + num_matched_ids[j]++; if ( !has_prep && !sfnt_id[j][TRICK_SFNT_ID_prep].Length ) - num_matched_ids[j] ++; + num_matched_ids[j]++; if ( num_matched_ids[j] == TRICK_SFNT_IDS_PER_FACE ) return TRUE; } diff --git a/src/type1/t1afm.c b/src/type1/t1afm.c index 3c7735db4..bbd843c1c 100644 --- a/src/type1/t1afm.c +++ b/src/type1/t1afm.c @@ -197,7 +197,7 @@ /* encoding of first glyph (1 byte) */ /* encoding of second glyph (1 byte) */ /* offset (little-endian short) */ - for ( ; p < limit ; p += 4 ) + for ( ; p < limit; p += 4 ) { kp->index1 = FT_Get_Char_Index( t1_face, p[0] ); kp->index2 = FT_Get_Char_Index( t1_face, p[1] ); diff --git a/src/type1/t1load.c b/src/type1/t1load.c index a53037ca5..ccf00b40b 100644 --- a/src/type1/t1load.c +++ b/src/type1/t1load.c @@ -326,7 +326,7 @@ /* Point to axes after MM_Var struct */ mmvar->namedstyle = NULL; - for ( i = 0 ; i < mmaster.num_axis; ++i ) + for ( i = 0; i < mmaster.num_axis; ++i ) { mmvar->axis[i].name = mmaster.axis[i].name; mmvar->axis[i].minimum = INT_TO_FIXED( mmaster.axis[i].minimum); diff --git a/src/type1/t1objs.c b/src/type1/t1objs.c index f553f86d6..a00911713 100644 --- a/src/type1/t1objs.c +++ b/src/type1/t1objs.c @@ -67,7 +67,7 @@ "pshinter" ); return ( module && pshinter && pshinter->get_globals_funcs ) ? pshinter->get_globals_funcs( module ) - : 0 ; + : 0; }