From 1a4c18f7cb70a2ae4fa209bb75a6c6c5b6ace0f2 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Mon, 10 Apr 2023 15:30:43 +0000 Subject: Align `char_next` return types. This is mostly cosmetic because FT_UInt and FT_UInt32 are likely identical. * src/sfnt/ttcmap.c, src/cff/cffcmap.c, src/psaux/t1cmap.c, src/psnames/psmodule.c, include/freetype/internal/service/svpcsmap.h, src/pfr/pfrcmap.c, src/winfonts/winfnt.c (*_char_next): return FT_UInt. --- include/freetype/internal/services/svpscmap.h | 2 +- src/cff/cffcmap.c | 4 ++-- src/pfr/pfrcmap.c | 2 +- src/psaux/t1cmap.c | 6 +++--- src/psnames/psmodule.c | 2 +- src/sfnt/ttcmap.c | 20 ++++++++++---------- src/winfonts/winfnt.c | 2 +- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/include/freetype/internal/services/svpscmap.h b/include/freetype/internal/services/svpscmap.h index fd99d857e..6e599f3aa 100644 --- a/include/freetype/internal/services/svpscmap.h +++ b/include/freetype/internal/services/svpscmap.h @@ -97,7 +97,7 @@ FT_BEGIN_HEADER (*PS_Unicodes_CharIndexFunc)( PS_Unicodes unicodes, FT_UInt32 unicode ); - typedef FT_UInt32 + typedef FT_UInt (*PS_Unicodes_CharNextFunc)( PS_Unicodes unicodes, FT_UInt32 *unicode ); diff --git a/src/cff/cffcmap.c b/src/cff/cffcmap.c index 6ed314322..4988d7955 100644 --- a/src/cff/cffcmap.c +++ b/src/cff/cffcmap.c @@ -69,7 +69,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) cff_cmap_encoding_char_next( CFF_CMapStd cmap, FT_UInt32 *pchar_code ) { @@ -197,7 +197,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) cff_cmap_unicode_char_next( PS_Unicodes unicodes, FT_UInt32 *pchar_code ) { diff --git a/src/pfr/pfrcmap.c b/src/pfr/pfrcmap.c index 312a9ffe1..b49873694 100644 --- a/src/pfr/pfrcmap.c +++ b/src/pfr/pfrcmap.c @@ -96,7 +96,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) pfr_cmap_char_next( PFR_CMap cmap, FT_UInt32 *pchar_code ) { diff --git a/src/psaux/t1cmap.c b/src/psaux/t1cmap.c index bf0a393b4..f94b544f2 100644 --- a/src/psaux/t1cmap.c +++ b/src/psaux/t1cmap.c @@ -95,7 +95,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) t1_cmap_std_char_next( T1_CMapStd cmap, FT_UInt32 *pchar_code ) { @@ -232,7 +232,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) t1_cmap_custom_char_next( T1_CMapCustom cmap, FT_UInt32 *pchar_code ) { @@ -341,7 +341,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) t1_cmap_unicode_char_next( PS_Unicodes unicodes, FT_UInt32 *pchar_code ) { diff --git a/src/psnames/psmodule.c b/src/psnames/psmodule.c index db454e558..d8a2cc764 100644 --- a/src/psnames/psmodule.c +++ b/src/psnames/psmodule.c @@ -453,7 +453,7 @@ } - static FT_UInt32 + static FT_UInt ps_unicodes_char_next( PS_Unicodes table, FT_UInt32 *unicode ) { diff --git a/src/sfnt/ttcmap.c b/src/sfnt/ttcmap.c index 809d4b51f..e5ea6f1e8 100644 --- a/src/sfnt/ttcmap.c +++ b/src/sfnt/ttcmap.c @@ -138,7 +138,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) tt_cmap0_char_next( TT_CMap cmap, FT_UInt32 *pchar_code ) { @@ -491,7 +491,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) tt_cmap2_char_next( TT_CMap cmap, FT_UInt32 *pcharcode ) { @@ -1481,7 +1481,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) tt_cmap4_char_next( TT_CMap cmap, FT_UInt32 *pchar_code ) { @@ -1640,7 +1640,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) tt_cmap6_char_next( TT_CMap cmap, FT_UInt32 *pchar_code ) { @@ -1911,7 +1911,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) tt_cmap8_char_next( TT_CMap cmap, FT_UInt32 *pchar_code ) { @@ -2109,7 +2109,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) tt_cmap10_char_next( TT_CMap cmap, FT_UInt32 *pchar_code ) { @@ -2458,7 +2458,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) tt_cmap12_char_next( TT_CMap cmap, FT_UInt32 *pchar_code ) { @@ -2768,7 +2768,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) tt_cmap13_char_next( TT_CMap cmap, FT_UInt32 *pchar_code ) { @@ -3101,7 +3101,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) tt_cmap14_char_next( TT_CMap cmap, FT_UInt32 *pchar_code ) { @@ -3671,7 +3671,7 @@ } - FT_CALLBACK_DEF( FT_UInt32 ) + FT_CALLBACK_DEF( FT_UInt ) tt_cmap_unicode_char_next( PS_Unicodes unicodes, FT_UInt32 *pchar_code ) { diff --git a/src/winfonts/winfnt.c b/src/winfonts/winfnt.c index fa73ae4a9..261540f25 100644 --- a/src/winfonts/winfnt.c +++ b/src/winfonts/winfnt.c @@ -656,7 +656,7 @@ } - static FT_UInt32 + static FT_UInt fnt_cmap_char_next( FNT_CMap cmap, FT_UInt32 *pchar_code ) { -- cgit v1.2.1