shithub: freetype+ttf2subf

Download patch

ref: fe5c906e9c1f779a1d0b50eeb858b5257080c0a3
parent: b0db0fc2c5c7d87d457abe2bd5a7c759eebb3e66
author: David Turner <[email protected]>
date: Sun Mar 6 03:14:36 EST 2005

* src/otvalid/{otvgsub.c, otvgpos.c}: making static tables constant

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-06  David Turner  <[email protected]>
+
+  * src/otvalid/{otvgsub.c, otvgpos.c}: making static tables constant
+
 2005-03-05  Werner Lemberg  <[email protected]>
 
 	* autogen.sh: New script for bootstrapping.
--- a/src/otvalid/otvgpos.c
+++ b/src/otvalid/otvgpos.c
@@ -932,7 +932,7 @@
   }
 
 
-  static OTV_Validate_Func  otv_gpos_validate_funcs[9] =
+  static const OTV_Validate_Func  otv_gpos_validate_funcs[9] =
   {
     otv_SinglePos_validate,
     otv_PairPos_validate,
@@ -954,7 +954,7 @@
                               OTV_Validator  valid )
   {
     valid->type_count = 9;
-    valid->type_funcs = otv_gpos_validate_funcs;
+    valid->type_funcs = (OTV_Validate_Func*) otv_gpos_validate_funcs;
 
     otv_Lookup_validate( table, valid );
   }
@@ -996,7 +996,7 @@
     LookupList  = FT_NEXT_USHORT( p );
 
     valid->type_count  = 9;
-    valid->type_funcs  = otv_gpos_validate_funcs;
+    valid->type_funcs  = (OTV_Validate_Func*) otv_gpos_validate_funcs;
     valid->glyph_count = glyph_count;
 
     otv_LookupList_validate( table + LookupList,
--- a/src/otvalid/otvgsub.c
+++ b/src/otvalid/otvgsub.c
@@ -516,7 +516,7 @@
   }
 
 
-  static OTV_Validate_Func  otv_gsub_validate_funcs[8] =
+  static const OTV_Validate_Func  otv_gsub_validate_funcs[8] =
   {
     otv_SingleSubst_validate,
     otv_MultipleSubst_validate,
@@ -567,7 +567,7 @@
     LookupList  = FT_NEXT_USHORT( p );
 
     valid->type_count  = 8;
-    valid->type_funcs  = otv_gsub_validate_funcs;
+    valid->type_funcs  = (OTV_Validate_Func*) otv_gsub_validate_funcs;
     valid->glyph_count = glyph_count;
 
     otv_LookupList_validate( table + LookupList,