Commit effa96496e7f103678b3ae93089b7ae1afdec59a

David Turner 2002-03-22T15:55:55

formatting

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 =