GLib patch



Here is a patch to glib that makes about 27k of static unicode attribute data "const" so it can be thrown into the .rodata section rather than the .data section when compiled with gcc. This is good because .rodata is always shared in shared libraries. The .data section not always shared -- it is copy on write with entire pages (usually 4k) duplicated at a time.

That, and it might catch some future coding errors.

My patch is against 1.3.8. Let me know if this is the wrong mailing list for such a patch!

Andrew

--- guniprop.c.old	Mon Aug 27 14:24:59 2001
+++ guniprop.c.new	Mon Sep 24 15:30:05 2001
@@ -360,7 +360,7 @@
       gunichar val = ATTTABLE (c >> 8, c & 0xff);
       if (val >= 0xd800 && val < 0xdc00)
 	{
-	  guchar *p = special_case_table[val - 0xd800];
+	  const guchar *p = special_case_table[val - 0xd800];
 	  return p[0] * 256 + p[1];
 	}
       else
@@ -397,7 +397,7 @@
       gunichar val = ATTTABLE (c >> 8, c & 0xff);
       if (val >= 0xd800 && val < 0xdc00)
 	{
-	  guchar *p = special_case_table[val - 0xd800];
+	  const guchar *p = special_case_table[val - 0xd800];
 	  return p[0] * 256 + p[1];
 	}
       else
@@ -562,7 +562,7 @@
 		     int    type,
 		     int    which)
 {
-  guchar *p = special_case_table[index];
+  const guchar *p = special_case_table[index];
 
   if (type != G_UNICODE_TITLECASE_LETTER)
     p += 2; /* +2 to skip over "best single match" */
--- gunichartables.h.old	Mon Sep  3 14:32:15 2001
+++ gunichartables.h.new	Mon Sep 24 15:27:58 2001
@@ -8,7 +8,7 @@
 
 #define G_UNICODE_LAST_CHAR 0xffff
 
-static char page0[256] = {
+const static char page0[256] = {
   G_UNICODE_CONTROL, G_UNICODE_CONTROL, G_UNICODE_CONTROL, G_UNICODE_CONTROL, 
   G_UNICODE_CONTROL, G_UNICODE_CONTROL, G_UNICODE_CONTROL, G_UNICODE_CONTROL, 
   G_UNICODE_CONTROL, G_UNICODE_CONTROL, G_UNICODE_CONTROL, G_UNICODE_CONTROL, 
@@ -121,7 +121,7 @@
   G_UNICODE_LOWERCASE_LETTER
 };
 
-static char page1[256] = {
+const static char page1[256] = {
   G_UNICODE_UPPERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
   G_UNICODE_UPPERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
   G_UNICODE_UPPERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
@@ -252,7 +252,7 @@
   G_UNICODE_LOWERCASE_LETTER
 };
 
-static char page2[256] = {
+const static char page2[256] = {
   G_UNICODE_UPPERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
   G_UNICODE_UPPERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
   G_UNICODE_UPPERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
@@ -374,7 +374,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page3[256] = {
+const static char page3[256] = {
   G_UNICODE_NON_SPACING_MARK, G_UNICODE_NON_SPACING_MARK, 
   G_UNICODE_NON_SPACING_MARK, G_UNICODE_NON_SPACING_MARK, 
   G_UNICODE_NON_SPACING_MARK, G_UNICODE_NON_SPACING_MARK, 
@@ -494,7 +494,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page4[256] = {
+const static char page4[256] = {
   G_UNICODE_UPPERCASE_LETTER, G_UNICODE_UPPERCASE_LETTER, 
   G_UNICODE_UPPERCASE_LETTER, G_UNICODE_UPPERCASE_LETTER, 
   G_UNICODE_UPPERCASE_LETTER, G_UNICODE_UPPERCASE_LETTER, 
@@ -621,7 +621,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page5[256] = {
+const static char page5[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
@@ -733,7 +733,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page6[256] = {
+const static char page6[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
@@ -831,7 +831,7 @@
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_UNASSIGNED
 };
 
-static char page7[256] = {
+const static char page7[256] = {
   G_UNICODE_OTHER_PUNCTUATION, G_UNICODE_OTHER_PUNCTUATION, 
   G_UNICODE_OTHER_PUNCTUATION, G_UNICODE_OTHER_PUNCTUATION, 
   G_UNICODE_OTHER_PUNCTUATION, G_UNICODE_OTHER_PUNCTUATION, 
@@ -929,7 +929,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page9[256] = {
+const static char page9[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_NON_SPACING_MARK, 
   G_UNICODE_NON_SPACING_MARK, G_UNICODE_COMBINING_MARK, G_UNICODE_UNASSIGNED, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -1026,7 +1026,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page10[256] = {
+const static char page10[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_NON_SPACING_MARK, 
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -1121,7 +1121,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page11[256] = {
+const static char page11[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_NON_SPACING_MARK, G_UNICODE_COMBINING_MARK, 
   G_UNICODE_COMBINING_MARK, G_UNICODE_UNASSIGNED, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -1214,7 +1214,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page12[256] = {
+const static char page12[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_COMBINING_MARK, G_UNICODE_COMBINING_MARK, 
   G_UNICODE_COMBINING_MARK, G_UNICODE_UNASSIGNED, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -1308,7 +1308,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page13[256] = {
+const static char page13[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_COMBINING_MARK, 
   G_UNICODE_COMBINING_MARK, G_UNICODE_UNASSIGNED, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -1401,7 +1401,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page14[256] = {
+const static char page14[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -1498,7 +1498,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page15[256] = {
+const static char page15[256] = {
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_PUNCTUATION, 
   G_UNICODE_OTHER_PUNCTUATION, G_UNICODE_OTHER_PUNCTUATION, 
@@ -1603,7 +1603,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page16[256] = {
+const static char page16[256] = {
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -1702,7 +1702,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page17[256] = {
+const static char page17[256] = {
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -1791,7 +1791,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page18[256] = {
+const static char page18[256] = {
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_UNASSIGNED, G_UNICODE_OTHER_LETTER, 
@@ -1880,7 +1880,7 @@
   G_UNICODE_OTHER_LETTER
 };
 
-static char page19[256] = {
+const static char page19[256] = {
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -1971,7 +1971,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page20[256] = {
+const static char page20[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -2060,7 +2060,7 @@
   G_UNICODE_OTHER_LETTER
 };
 
-static char page22[256] = {
+const static char page22[256] = {
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -2150,7 +2150,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page23[256] = {
+const static char page23[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
@@ -2246,7 +2246,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page24[256] = {
+const static char page24[256] = {
   G_UNICODE_OTHER_PUNCTUATION, G_UNICODE_OTHER_PUNCTUATION, 
   G_UNICODE_OTHER_PUNCTUATION, G_UNICODE_OTHER_PUNCTUATION, 
   G_UNICODE_OTHER_PUNCTUATION, G_UNICODE_OTHER_PUNCTUATION, 
@@ -2338,7 +2338,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page30[256] = {
+const static char page30[256] = {
   G_UNICODE_UPPERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
   G_UNICODE_UPPERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
   G_UNICODE_UPPERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
@@ -2468,7 +2468,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page31[256] = {
+const static char page31[256] = {
   G_UNICODE_LOWERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
   G_UNICODE_LOWERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
   G_UNICODE_LOWERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
@@ -2595,7 +2595,7 @@
   G_UNICODE_MODIFIER_SYMBOL, G_UNICODE_UNASSIGNED
 };
 
-static char page32[256] = {
+const static char page32[256] = {
   G_UNICODE_SPACE_SEPARATOR, G_UNICODE_SPACE_SEPARATOR, 
   G_UNICODE_SPACE_SEPARATOR, G_UNICODE_SPACE_SEPARATOR, 
   G_UNICODE_SPACE_SEPARATOR, G_UNICODE_SPACE_SEPARATOR, 
@@ -2700,7 +2700,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page33[256] = {
+const static char page33[256] = {
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_UPPERCASE_LETTER, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_UPPERCASE_LETTER, G_UNICODE_OTHER_SYMBOL, 
@@ -2794,7 +2794,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page34[256] = {
+const static char page34[256] = {
   G_UNICODE_MATH_SYMBOL, G_UNICODE_MATH_SYMBOL, G_UNICODE_MATH_SYMBOL, 
   G_UNICODE_MATH_SYMBOL, G_UNICODE_MATH_SYMBOL, G_UNICODE_MATH_SYMBOL, 
   G_UNICODE_MATH_SYMBOL, G_UNICODE_MATH_SYMBOL, G_UNICODE_MATH_SYMBOL, 
@@ -2883,7 +2883,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page35[256] = {
+const static char page35[256] = {
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_MATH_SYMBOL, 
@@ -2972,7 +2972,7 @@
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char page36[256] = {
+const static char page36[256] = {
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
@@ -3061,7 +3061,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page37[256] = {
+const static char page37[256] = {
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
@@ -3150,7 +3150,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page38[256] = {
+const static char page38[256] = {
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
@@ -3239,7 +3239,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page39[256] = {
+const static char page39[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_UNASSIGNED, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
@@ -3328,7 +3328,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page46[256] = {
+const static char page46[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
@@ -3417,7 +3417,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page47[256] = {
+const static char page47[256] = {
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
@@ -3506,7 +3506,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page48[256] = {
+const static char page48[256] = {
   G_UNICODE_SPACE_SEPARATOR, G_UNICODE_OTHER_PUNCTUATION, 
   G_UNICODE_OTHER_PUNCTUATION, G_UNICODE_OTHER_PUNCTUATION, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_MODIFIER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -3603,7 +3603,7 @@
   G_UNICODE_MODIFIER_LETTER, G_UNICODE_UNASSIGNED
 };
 
-static char page49[256] = {
+const static char page49[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -3692,7 +3692,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page50[256] = {
+const static char page50[256] = {
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
@@ -3781,7 +3781,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page51[256] = {
+const static char page51[256] = {
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, G_UNICODE_OTHER_SYMBOL, 
@@ -3870,7 +3870,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page77[256] = {
+const static char page77[256] = {
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -3959,7 +3959,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page159[256] = {
+const static char page159[256] = {
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -4048,7 +4048,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page164[256] = {
+const static char page164[256] = {
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -4137,7 +4137,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page215[256] = {
+const static char page215[256] = {
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -4226,7 +4226,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page250[256] = {
+const static char page250[256] = {
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -4315,7 +4315,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page251[256] = {
+const static char page251[256] = {
   G_UNICODE_LOWERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
   G_UNICODE_LOWERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
   G_UNICODE_LOWERCASE_LETTER, G_UNICODE_LOWERCASE_LETTER, 
@@ -4406,7 +4406,7 @@
   G_UNICODE_OTHER_LETTER
 };
 
-static char page253[256] = {
+const static char page253[256] = {
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
   G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, G_UNICODE_OTHER_LETTER, 
@@ -4495,7 +4495,7 @@
   G_UNICODE_UNASSIGNED
 };
 
-static char page254[256] = {
+const static char page254[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
   G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED, 
@@ -4593,7 +4593,7 @@
   G_UNICODE_FORMAT
 };
 
-static char page255[256] = {
+const static char page255[256] = {
   G_UNICODE_UNASSIGNED, G_UNICODE_OTHER_PUNCTUATION, 
   G_UNICODE_OTHER_PUNCTUATION, G_UNICODE_OTHER_PUNCTUATION, 
   G_UNICODE_CURRENCY_SYMBOL, G_UNICODE_OTHER_PUNCTUATION, 
@@ -4698,7 +4698,7 @@
   G_UNICODE_OTHER_SYMBOL, G_UNICODE_UNASSIGNED, G_UNICODE_UNASSIGNED
 };
 
-static char *type_table[256] = {
+const static char *type_table[256] = {
   page0,
   page1,
   page2,
@@ -4957,7 +4957,7 @@
   page255
 };
 
-static unsigned short attrpage0[256] = {
+const static unsigned short attrpage0[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -4989,7 +4989,7 @@
   0x00dc, 0x00dd, 0x00de, 0x0178
 };
 
-static unsigned short attrpage1[256] = {
+const static unsigned short attrpage1[256] = {
   0x0101, 0x0100, 0x0103, 0x0102, 0x0105, 0x0104, 0x0107, 0x0106, 0x0109, 
   0x0108, 0x010b, 0x010a, 0x010d, 0x010c, 0x010f, 0x010e, 0x0111, 0x0110, 
   0x0113, 0x0112, 0x0115, 0x0114, 0x0117, 0x0116, 0x0119, 0x0118, 0x011b, 
@@ -5021,7 +5021,7 @@
   0x01fd, 0x01fc, 0x01ff, 0x01fe
 };
 
-static unsigned short attrpage2[256] = {
+const static unsigned short attrpage2[256] = {
   0x0201, 0x0200, 0x0203, 0x0202, 0x0205, 0x0204, 0x0207, 0x0206, 0x0209, 
   0x0208, 0x020b, 0x020a, 0x020d, 0x020c, 0x020f, 0x020e, 0x0211, 0x0210, 
   0x0213, 0x0212, 0x0215, 0x0214, 0x0217, 0x0216, 0x0219, 0x0218, 0x021b, 
@@ -5053,7 +5053,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage3[256] = {
+const static unsigned short attrpage3[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5085,7 +5085,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage4[256] = {
+const static unsigned short attrpage4[256] = {
   0x0450, 0x0451, 0x0452, 0x0453, 0x0454, 0x0455, 0x0456, 0x0457, 0x0458, 
   0x0459, 0x045a, 0x045b, 0x045c, 0x045d, 0x045e, 0x045f, 0x0430, 0x0431, 
   0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, 0x0438, 0x0439, 0x043a, 
@@ -5117,7 +5117,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage5[256] = {
+const static unsigned short attrpage5[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5149,7 +5149,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage6[256] = {
+const static unsigned short attrpage6[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5181,7 +5181,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage9[256] = {
+const static unsigned short attrpage9[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5213,7 +5213,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage10[256] = {
+const static unsigned short attrpage10[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5245,7 +5245,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage11[256] = {
+const static unsigned short attrpage11[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5277,7 +5277,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage12[256] = {
+const static unsigned short attrpage12[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5309,7 +5309,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage13[256] = {
+const static unsigned short attrpage13[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5341,7 +5341,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage14[256] = {
+const static unsigned short attrpage14[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5373,7 +5373,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage15[256] = {
+const static unsigned short attrpage15[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5405,7 +5405,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage16[256] = {
+const static unsigned short attrpage16[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5437,7 +5437,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage19[256] = {
+const static unsigned short attrpage19[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5469,7 +5469,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage23[256] = {
+const static unsigned short attrpage23[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5501,7 +5501,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage24[256] = {
+const static unsigned short attrpage24[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 
   0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x0000, 
@@ -5533,7 +5533,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage30[256] = {
+const static unsigned short attrpage30[256] = {
   0x1e01, 0x1e00, 0x1e03, 0x1e02, 0x1e05, 0x1e04, 0x1e07, 0x1e06, 0x1e09, 
   0x1e08, 0x1e0b, 0x1e0a, 0x1e0d, 0x1e0c, 0x1e0f, 0x1e0e, 0x1e11, 0x1e10, 
   0x1e13, 0x1e12, 0x1e15, 0x1e14, 0x1e17, 0x1e16, 0x1e19, 0x1e18, 0x1e1b, 
@@ -5565,7 +5565,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage31[256] = {
+const static unsigned short attrpage31[256] = {
   0x1f08, 0x1f09, 0x1f0a, 0x1f0b, 0x1f0c, 0x1f0d, 0x1f0e, 0x1f0f, 0x1f00, 
   0x1f01, 0x1f02, 0x1f03, 0x1f04, 0x1f05, 0x1f06, 0x1f07, 0x1f18, 0x1f19, 
   0x1f1a, 0x1f1b, 0x1f1c, 0x1f1d, 0x0000, 0x0000, 0x1f10, 0x1f11, 0x1f12, 
@@ -5597,7 +5597,7 @@
   0xd85c, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage33[256] = {
+const static unsigned short attrpage33[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
@@ -5629,7 +5629,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage251[256] = {
+const static unsigned short attrpage251[256] = {
   0xd801, 0xd802, 0xd803, 0xd804, 0xd805, 0xd806, 0xd807, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0xd809, 0xd80a, 0xd80b, 0xd80c, 0xd80d, 0x0000, 0x0000, 0x0000, 
@@ -5661,7 +5661,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short attrpage255[256] = {
+const static unsigned short attrpage255[256] = {
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 
   0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x0000, 
@@ -5693,7 +5693,7 @@
   0x0000, 0x0000, 0x0000, 0x0000
 };
 
-static unsigned short *attr_table[256] = {
+const static unsigned short *attr_table[256] = {
   attrpage0,
   attrpage1,
   attrpage2,
@@ -5952,7 +5952,7 @@
   attrpage255
 };
 
-static unsigned short title_table[][3] = {
+const static unsigned short title_table[][3] = {
   { 0x01c5, 0x01c4, 0x01c6 },
   { 0x01c8, 0x01c7, 0x01c9 },
   { 0x01cb, 0x01ca, 0x01cc },
@@ -5993,7 +5993,7 @@
  * other than the case of the codepoint, in the order [Ll],[Lu],[Lt],
  * separated and terminated by a double NUL.
  */
-static guchar special_case_table[][18] = {
+const static guchar special_case_table[][18] = {
  "\x00\x00\x00\x53\x00\x53\x00\x00\x00\x53\x00\x73\0",
  "\x00\x00\x00\x46\x00\x46\x00\x00\x00\x46\x00\x66\0",
  "\x00\x00\x00\x46\x00\x49\x00\x00\x00\x46\x00\x69\0",
@@ -6101,7 +6101,7 @@
 
 /* Table of casefolding cases that can't be derived by lowercasing
  */
-static struct {
+const static struct {
   guint16 ch;
   gchar data[7];
 } casefold_table[] = {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]