From 792db0b9a9d60c32f18ba7df58ba5395348ab650 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Wed, 15 Apr 2015 23:20:23 -0400 Subject: [PATCH] [cff,cid,pfr,sfnt,winfonts] NULL. --- src/cff/cffgload.c | 6 +++--- src/cff/cffobjs.c | 2 +- src/cid/cidgload.c | 2 +- src/cid/cidload.c | 2 +- src/cid/cidobjs.c | 10 +++++----- src/pfr/pfrobjs.c | 2 +- src/sfnt/sfobjs.c | 6 +++--- src/sfnt/ttpost.c | 6 +++--- src/winfonts/winfnt.c | 4 ++-- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c index d73138717..43054f8c3 100644 --- a/src/cff/cffgload.c +++ b/src/cff/cffgload.c @@ -273,8 +273,8 @@ builder->current = &loader->current.outline; FT_GlyphLoader_Rewind( loader ); - builder->hints_globals = 0; - builder->hints_funcs = 0; + builder->hints_globals = NULL; + builder->hints_funcs = NULL; if ( hinting && size ) { @@ -2872,7 +2872,7 @@ /* fonts. */ if ( face->root.internal->incremental_interface ) { - glyph->root.control_data = 0; + glyph->root.control_data = NULL; glyph->root.control_len = 0; } else diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c index b1003a5c7..4a1ef115f 100644 --- a/src/cff/cffobjs.c +++ b/src/cff/cffobjs.c @@ -342,7 +342,7 @@ FT_LOCAL_DEF( void ) cff_slot_done( FT_GlyphSlot slot ) { - slot->internal->glyph_hints = 0; + slot->internal->glyph_hints = NULL; } diff --git a/src/cid/cidgload.c b/src/cid/cidgload.c index bacf3dabc..d06293c8e 100644 --- a/src/cid/cidgload.c +++ b/src/cid/cidgload.c @@ -47,7 +47,7 @@ FT_ULong fd_select; FT_Stream stream = face->cid_stream; FT_Error error = FT_Err_Ok; - FT_Byte* charstring = 0; + FT_Byte* charstring = NULL; FT_Memory memory = face->root.memory; FT_ULong glyph_length = 0; PSAux_Service psaux = (PSAux_Service)face->psaux; diff --git a/src/cid/cidload.c b/src/cid/cidload.c index 460186eb0..6f3586055 100644 --- a/src/cid/cidload.c +++ b/src/cid/cidload.c @@ -413,7 +413,7 @@ FT_Int n; CID_Subrs subr; FT_UInt max_offsets = 0; - FT_ULong* offsets = 0; + FT_ULong* offsets = NULL; PSAux_Service psaux = (PSAux_Service)face->psaux; diff --git a/src/cid/cidobjs.c b/src/cid/cidobjs.c index dc8667918..a3d6895c9 100644 --- a/src/cid/cidobjs.c +++ b/src/cid/cidobjs.c @@ -49,7 +49,7 @@ FT_LOCAL_DEF( void ) cid_slot_done( FT_GlyphSlot slot ) { - slot->internal->glyph_hints = 0; + slot->internal->glyph_hints = NULL; } @@ -122,7 +122,7 @@ if ( funcs ) funcs->destroy( (PSH_Globals)cidsize->internal ); - cidsize->internal = 0; + cidsize->internal = NULL; } } @@ -243,8 +243,8 @@ FT_FREE( cid->registry ); FT_FREE( cid->ordering ); - cidface->family_name = 0; - cidface->style_name = 0; + cidface->family_name = NULL; + cidface->style_name = NULL; FT_FREE( face->binary_data ); FT_FREE( face->cid_stream ); @@ -421,7 +421,7 @@ /* no embedded bitmap support */ cidface->num_fixed_sizes = 0; - cidface->available_sizes = 0; + cidface->available_sizes = NULL; cidface->bbox.xMin = cid->font_bbox.xMin >> 16; cidface->bbox.yMin = cid->font_bbox.yMin >> 16; diff --git a/src/pfr/pfrobjs.c b/src/pfr/pfrobjs.c index edd9c7f07..aababf4a2 100644 --- a/src/pfr/pfrobjs.c +++ b/src/pfr/pfrobjs.c @@ -192,7 +192,7 @@ pfrface->style_name = phy_font->style_name; pfrface->num_fixed_sizes = 0; - pfrface->available_sizes = 0; + pfrface->available_sizes = NULL; pfrface->bbox = phy_font->bbox; pfrface->units_per_EM = (FT_UShort)phy_font->outline_resolution; diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c index 39c37e12d..40c27fa9a 100644 --- a/src/sfnt/sfobjs.c +++ b/src/sfnt/sfobjs.c @@ -376,8 +376,8 @@ FT_FREE( stream->base ); stream->size = 0; - stream->base = 0; - stream->close = 0; + stream->base = NULL; + stream->close = NULL; } @@ -1570,7 +1570,7 @@ FT_FREE( face->postscript_name ); - face->sfnt = 0; + face->sfnt = NULL; } diff --git a/src/sfnt/ttpost.c b/src/sfnt/ttpost.c index 92d231661..8d29d1e9f 100644 --- a/src/sfnt/ttpost.c +++ b/src/sfnt/ttpost.c @@ -163,8 +163,8 @@ FT_Int num_glyphs; FT_UShort num_names; - FT_UShort* glyph_indices = 0; - FT_Char** name_strings = 0; + FT_UShort* glyph_indices = NULL; + FT_Char** name_strings = NULL; if ( FT_READ_USHORT( num_glyphs ) ) @@ -316,7 +316,7 @@ FT_Error error; FT_Int num_glyphs; - FT_Char* offset_table = 0; + FT_Char* offset_table = NULL; FT_UNUSED( post_limit ); diff --git a/src/winfonts/winfnt.c b/src/winfonts/winfnt.c index 81f7ea33f..06f1861af 100644 --- a/src/winfonts/winfnt.c +++ b/src/winfonts/winfnt.c @@ -201,7 +201,7 @@ FT_FREE( font->family_name ); FT_FREE( font ); - face->font = 0; + face->font = NULL; } @@ -277,7 +277,7 @@ WinMZ_HeaderRec mz_header; - face->font = 0; + face->font = NULL; /* does it begin with an MZ header? */ if ( FT_STREAM_SEEK( 0 ) ||