summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2023-04-10 15:30:43 +0000
committerAlexei Podtelezhnikov <apodtele@gmail.com>2023-04-10 15:30:43 +0000
commit1a4c18f7cb70a2ae4fa209bb75a6c6c5b6ace0f2 (patch)
treeff3727f91b86095a3217459a148ec2cf49eb7433
parentd25444333c07951bf16788862420e311799c0ad0 (diff)
downloadfreetype2-1a4c18f7cb70a2ae4fa209bb75a6c6c5b6ace0f2.tar.gz
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.
-rw-r--r--include/freetype/internal/services/svpscmap.h2
-rw-r--r--src/cff/cffcmap.c4
-rw-r--r--src/pfr/pfrcmap.c2
-rw-r--r--src/psaux/t1cmap.c6
-rw-r--r--src/psnames/psmodule.c2
-rw-r--r--src/sfnt/ttcmap.c20
-rw-r--r--src/winfonts/winfnt.c2
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 )
{