formatting
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
diff --git a/src/pcf/pcfdriver.c b/src/pcf/pcfdriver.c
index db7fb8f..a671d83 100644
--- a/src/pcf/pcfdriver.c
+++ b/src/pcf/pcfdriver.c
@@ -149,7 +149,7 @@ THE SOFTWARE.
}
- FT_CALLBACK_TABLE const FT_CMap_ClassRec pcf_cmap_class =
+ FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec pcf_cmap_class =
{
sizeof( PCF_CMapRec ),
(FT_CMap_InitFunc) pcf_cmap_init,
diff --git a/src/psaux/t1cmap.c b/src/psaux/t1cmap.c
index 3bfeac5..67026b6 100644
--- a/src/psaux/t1cmap.c
+++ b/src/psaux/t1cmap.c
@@ -416,7 +416,7 @@
}
- FT_CALLBACK_TABLE const FT_CMap_ClassRec
+ FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec
t1_cmap_unicode_class_rec =
{
sizeof( T1_CMapUnicodeRec ),
diff --git a/src/winfonts/winfnt.c b/src/winfonts/winfnt.c
index 02fcf7e..e5f8464 100644
--- a/src/winfonts/winfnt.c
+++ b/src/winfonts/winfnt.c
@@ -157,7 +157,7 @@
header->pixel_width = header->pixel_height;
/* this is a FNT file/table, we now extract its frame */
- if ( FT_STREAM_SEEK( font->offset ) ||
+ if ( FT_STREAM_SEEK( font->offset ) ||
FT_FRAME_EXTRACT( header->file_size, font->fnt_frame ) )
goto Exit;
@@ -225,7 +225,7 @@
if ( FT_STREAM_SEEK( res_offset ) ||
FT_FRAME_ENTER( ne_header.rname_tab_offset -
- ne_header.resource_tab_offset ) )
+ ne_header.resource_tab_offset ) )
goto Exit;
size_shift = FT_GET_USHORT_LE();
@@ -349,15 +349,14 @@
}
- static FT_UInt32
+ static FT_UInt
fnt_cmap_char_next( FT_CMap cmap,
- FT_UInt32 char_code,
- FT_UInt *agindex )
+ FT_UInt32 *pchar_code )
{
FT_UInt gindex = 0;
FT_UInt32 result = 0;
+ FT_UInt32 char_code = *pchar_code + 1;
- char_code ++;
if ( char_code <= cmap->first )
{
result = cmap->first;
@@ -373,8 +372,8 @@
}
}
- *agindex = gindex;
- return result;
+ *pchar_code = result;
+ return gindex;
}
static FT_CMap_ClassRec fnt_cmap_class_rec =