Commit a13a473dd90d645d7e81baaf27c8331255002a00

Werner Lemberg 2000-11-02T15:14:38

More C++ fixes.

diff --git a/src/cache/ftcimage.c b/src/cache/ftcimage.c
index 294c648..b0c6abb 100644
--- a/src/cache/ftcimage.c
+++ b/src/cache/ftcimage.c
@@ -96,7 +96,7 @@
                                      &face, &size );
     if ( !error )
     {
-      FT_UInt  glyph_index = node->root.glyph_index;
+      FT_UInt  gindex = node->root.glyph_index;
       FT_UInt  load_flags  = FT_LOAD_DEFAULT;
       FT_UInt  image_type  = imageset->description.image_type;
 
@@ -126,7 +126,7 @@
       if ( image_type & ftc_image_flag_autohinted )
         load_flags |= FT_LOAD_FORCE_AUTOHINT;
 
-      error = FT_Load_Glyph( face, glyph_index, load_flags );
+      error = FT_Load_Glyph( face, gindex, load_flags );
       if ( !error )
       {
         if ( face->glyph->format == ft_glyph_format_bitmap  ||
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index 9dc0c19..b18732d 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -1278,21 +1278,21 @@
   /*************************************************************************/
 
 
-  static
+  LOCAL_FUNC_X
   FT_F26Dot6  Read_CVT( EXEC_OP_ FT_ULong  index )
   {
     return CUR.cvt[index];
   }
 
 
-  static
+  LOCAL_FUNC_X
   FT_F26Dot6  Read_CVT_Stretched( EXEC_OP_ FT_ULong  index )
   {
     return TT_MULFIX( CUR.cvt[index], CURRENT_Ratio() );
   }
 
 
-  static
+  LOCAL_FUNC_X
   void  Write_CVT( EXEC_OP_ FT_ULong    index,
                             FT_F26Dot6  value )
   {
@@ -1300,7 +1300,7 @@
   }
 
 
-  static
+  LOCAL_FUNC_X
   void  Write_CVT_Stretched( EXEC_OP_ FT_ULong    index,
                                       FT_F26Dot6  value )
   {
@@ -1308,7 +1308,7 @@
   }
 
 
-  static
+  LOCAL_FUNC_X
   void  Move_CVT( EXEC_OP_ FT_ULong    index,
                            FT_F26Dot6  value )
   {
@@ -1316,7 +1316,7 @@
   }
 
 
-  static
+  LOCAL_FUNC_X
   void  Move_CVT_Stretched( EXEC_OP_ FT_ULong    index,
                                      FT_F26Dot6  value )
   {
diff --git a/src/type1/t1load.c b/src/type1/t1load.c
index 7bb4b25..787aab2 100644
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -972,7 +972,7 @@
       /* We need to `zero' out encoding_table.elements          */
       for ( n = 0; n < count; n++ )
       {
-        char*  notdef = ".notdef";
+        char*  notdef = (char *)".notdef";
 
 
         T1_Add_Table( char_table, n, notdef, 8 );
@@ -1342,7 +1342,7 @@
 
       /* 0 333 hsbw endchar                                      */
       FT_Byte  notdef_glyph[] = {0x8B, 0xF7, 0xE1, 0x0D, 0x0E};
-      char*    notdef_name    = ".notdef";
+      char*    notdef_name    = (char *)".notdef";
 
 
       error = T1_Add_Table( name_table, n,