Commit fe5c906e9c1f779a1d0b50eeb858b5257080c0a3

David Turner 2005-03-06T08:14:36

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

diff --git a/ChangeLog b/ChangeLog
index e7c6b28..3a1edc3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-06  David Turner  <david@freetype.org>
+
+  * src/otvalid/{otvgsub.c, otvgpos.c}: making static tables constant
+
 2005-03-05  Werner Lemberg  <wl@gnu.org>
 
 	* autogen.sh: New script for bootstrapping.
diff --git a/src/otvalid/otvgpos.c b/src/otvalid/otvgpos.c
index 372eb06..3791d54 100644
--- 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,
diff --git a/src/otvalid/otvgsub.c b/src/otvalid/otvgsub.c
index be653bd..b39bf6b 100644
--- 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,