* src/otvalid/{otvgsub.c, otvgpos.c}: making static tables constant
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
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,