Commit 4fc08209 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Patch from Andrew Taylor to make much of the unicode table data const so

Wed Sep 26 14:37:52 2001  Owen Taylor  <otaylor@redhat.com>

	* glib/gen-unicode-tables.pl glib/guniprop.c
	  glib/{gunibreak,gunichartables,gunidecomp}.h:
	Patch from Andrew Taylor to make much of the unicode
	table data const so that it can be made read-only
	and shared.
parent 75f13548
Wed Sep 26 14:37:52 2001 Owen Taylor <otaylor@redhat.com>
* glib/gen-unicode-tables.pl glib/guniprop.c
glib/{gunibreak,gunichartables,gunidecomp}.h:
Patch from Andrew Taylor to make much of the unicode
table data const so that it can be made read-only
and shared.
Wed Sep 26 12:41:05 2001 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_strdup_vprintf): Copy if
......
Wed Sep 26 14:37:52 2001 Owen Taylor <otaylor@redhat.com>
* glib/gen-unicode-tables.pl glib/guniprop.c
glib/{gunibreak,gunichartables,gunidecomp}.h:
Patch from Andrew Taylor to make much of the unicode
table data const so that it can be made read-only
and shared.
Wed Sep 26 12:41:05 2001 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_strdup_vprintf): Copy if
......
Wed Sep 26 14:37:52 2001 Owen Taylor <otaylor@redhat.com>
* glib/gen-unicode-tables.pl glib/guniprop.c
glib/{gunibreak,gunichartables,gunidecomp}.h:
Patch from Andrew Taylor to make much of the unicode
table data const so that it can be made read-only
and shared.
Wed Sep 26 12:41:05 2001 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_strdup_vprintf): Copy if
......
Wed Sep 26 14:37:52 2001 Owen Taylor <otaylor@redhat.com>
* glib/gen-unicode-tables.pl glib/guniprop.c
glib/{gunibreak,gunichartables,gunidecomp}.h:
Patch from Andrew Taylor to make much of the unicode
table data const so that it can be made read-only
and shared.
Wed Sep 26 12:41:05 2001 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_strdup_vprintf): Copy if
......
Wed Sep 26 14:37:52 2001 Owen Taylor <otaylor@redhat.com>
* glib/gen-unicode-tables.pl glib/guniprop.c
glib/{gunibreak,gunichartables,gunidecomp}.h:
Patch from Andrew Taylor to make much of the unicode
table data const so that it can be made read-only
and shared.
Wed Sep 26 12:41:05 2001 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_strdup_vprintf): Copy if
......
Wed Sep 26 14:37:52 2001 Owen Taylor <otaylor@redhat.com>
* glib/gen-unicode-tables.pl glib/guniprop.c
glib/{gunibreak,gunichartables,gunidecomp}.h:
Patch from Andrew Taylor to make much of the unicode
table data const so that it can be made read-only
and shared.
Wed Sep 26 12:41:05 2001 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_strdup_vprintf): Copy if
......
Wed Sep 26 14:37:52 2001 Owen Taylor <otaylor@redhat.com>
* glib/gen-unicode-tables.pl glib/guniprop.c
glib/{gunibreak,gunichartables,gunidecomp}.h:
Patch from Andrew Taylor to make much of the unicode
table data const so that it can be made read-only
and shared.
Wed Sep 26 12:41:05 2001 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_strdup_vprintf): Copy if
......
Wed Sep 26 14:37:52 2001 Owen Taylor <otaylor@redhat.com>
* glib/gen-unicode-tables.pl glib/guniprop.c
glib/{gunibreak,gunichartables,gunidecomp}.h:
Patch from Andrew Taylor to make much of the unicode
table data const so that it can be made read-only
and shared.
Wed Sep 26 12:41:05 2001 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_strdup_vprintf): Copy if
......
......@@ -531,7 +531,7 @@ sub print_tables
'page', \&fetch_type);
}
print OUT "static char *type_table[256] = {\n";
print OUT "static const char *type_table[256] = {\n";
for ($count = 0; $count <= $last; $count += 256)
{
print OUT ",\n" if $count > 0;
......@@ -550,7 +550,7 @@ sub print_tables
$row[$count / 256] = &print_row ($count, '', 'unsigned short', 2,
'attrpage', \&fetch_attr);
}
print OUT "static unsigned short *attr_table[256] = {\n";
print OUT "static const unsigned short *attr_table[256] = {\n";
for ($count = 0; $count <= $last; $count += 256)
{
print OUT ",\n" if $count > 0;
......@@ -564,7 +564,7 @@ sub print_tables
#
# FIXME: type.
print OUT "static unsigned short title_table[][3] = {\n";
print OUT "static const unsigned short title_table[][3] = {\n";
my ($item);
my ($first) = 1;
foreach $item (sort keys %title_to_lower)
......@@ -634,7 +634,7 @@ sub print_row
return $def_pfx . $values[0];
}
printf OUT "static %s %s%d[256] = {\n ", $typname, $name, $start / 256;
printf OUT "static const %s %s%d[256] = {\n ", $typname, $name, $start / 256;
my ($column) = 2;
for ($i = $start; $i < $start + 256; ++$i)
{
......@@ -682,7 +682,7 @@ sub print_decomp
\&fetch_cclass);
}
print OUT "static unsigned char *combining_class_table[256] = {\n";
print OUT "static const unsigned char *combining_class_table[256] = {\n";
for ($count = 0; $count <= $last; $count += 256)
{
print OUT ",\n" if $count > 0;
......@@ -699,7 +699,7 @@ sub print_decomp
print OUT " unsigned char *expansion;\n";
print OUT "} decomposition;\n\n";
print OUT "static decomposition decomp_table[] =\n{\n";
print OUT "static const decomposition decomp_table[] =\n{\n";
my ($iter);
my ($first) = 1;
for ($count = 0; $count <= $last; ++$count)
......@@ -783,7 +783,7 @@ sub print_line_break
\&fetch_break_type);
}
print OUT "static char *break_property_table[256] = {\n";
print OUT "static const char *break_property_table[256] = {\n";
for ($count = 0; $count <= $last; $count += 256)
{
print OUT ",\n" if $count > 0;
......@@ -892,7 +892,7 @@ sub output_special_case_table
* 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[][$special_case_len] = {
static const guchar special_case_table[][$special_case_len] = {
EOT
for $case (@special_cases) {
......@@ -1046,7 +1046,7 @@ sub output_composition_table
sub { exists $vals{$_[0]} ? $vals{$_[0]} : 0; });
}
print OUT "static unsigned short *compose_table[256] = {\n";
print OUT "static const unsigned short *compose_table[256] = {\n";
for (my $count = 0; $count <= $last; $count += 256)
{
print OUT ",\n" if $count > 0;
......@@ -1057,7 +1057,7 @@ sub output_composition_table
# Output first singletons
print OUT "static gushort compose_first_single[][2] = {\n";
print OUT "static const gushort compose_first_single[][2] = {\n";
$i = 0;
for $record (@first_singletons) {
print OUT ",\n" if $i++ > 0;
......@@ -1069,7 +1069,7 @@ sub output_composition_table
# Output second singletons
print OUT "static gushort compose_second_single[][2] = {\n";
print OUT "static const gushort compose_second_single[][2] = {\n";
$i = 0;
for $record (@second_singletons) {
print OUT ",\n" if $i++ > 0;
......@@ -1082,7 +1082,7 @@ sub output_composition_table
# Output array of composition pairs
print OUT <<EOT;
static gushort compose_array[$n_first][$n_second] = {
static const gushort compose_array[$n_first][$n_second] = {
EOT
for (my $i = 0; $i < $n_first; $i++) {
......@@ -1117,7 +1117,7 @@ sub output_casefold_table
/* Table of casefolding cases that can't be derived by lowercasing
*/
static struct {
static const struct {
guint16 ch;
gchar data[$casefoldlen];
} casefold_table[] = {
......
......@@ -8,7 +8,7 @@
#define G_UNICODE_LAST_CHAR 0xffff
static char page0[256] = {
static const char page0[256] = {
G_UNICODE_BREAK_COMBINING_MARK, G_UNICODE_BREAK_COMBINING_MARK,
G_UNICODE_BREAK_COMBINING_MARK, G_UNICODE_BREAK_COMBINING_MARK,
G_UNICODE_BREAK_COMBINING_MARK, G_UNICODE_BREAK_COMBINING_MARK,
......@@ -137,7 +137,7 @@ static char page0[256] = {
G_UNICODE_BREAK_ALPHABETIC
};
static char page1[256] = {
static const char page1[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_AMBIGUOUS,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -268,7 +268,7 @@ static char page1[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC
};
static char page2[256] = {
static const char page2[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -392,7 +392,7 @@ static char page2[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page3[256] = {
static const char page3[256] = {
G_UNICODE_BREAK_COMBINING_MARK, G_UNICODE_BREAK_COMBINING_MARK,
G_UNICODE_BREAK_COMBINING_MARK, G_UNICODE_BREAK_COMBINING_MARK,
G_UNICODE_BREAK_COMBINING_MARK, G_UNICODE_BREAK_COMBINING_MARK,
......@@ -515,7 +515,7 @@ static char page3[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page4[256] = {
static const char page4[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_AMBIGUOUS,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -645,7 +645,7 @@ static char page4[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page5[256] = {
static const char page5[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
......@@ -764,7 +764,7 @@ static char page5[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page6[256] = {
static const char page6[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
......@@ -885,7 +885,7 @@ static char page6[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_UNKNOWN
};
static char page7[256] = {
static const char page7[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -995,7 +995,7 @@ static char page7[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page9[256] = {
static const char page9[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_COMBINING_MARK,
G_UNICODE_BREAK_COMBINING_MARK, G_UNICODE_BREAK_COMBINING_MARK,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_ALPHABETIC,
......@@ -1117,7 +1117,7 @@ static char page9[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page10[256] = {
static const char page10[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_COMBINING_MARK, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_ALPHABETIC,
......@@ -1234,7 +1234,7 @@ static char page10[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page11[256] = {
static const char page11[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_COMBINING_MARK,
G_UNICODE_BREAK_COMBINING_MARK, G_UNICODE_BREAK_COMBINING_MARK,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_ALPHABETIC,
......@@ -1349,7 +1349,7 @@ static char page11[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page12[256] = {
static const char page12[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_COMBINING_MARK,
G_UNICODE_BREAK_COMBINING_MARK, G_UNICODE_BREAK_COMBINING_MARK,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_ALPHABETIC,
......@@ -1465,7 +1465,7 @@ static char page12[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page13[256] = {
static const char page13[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_COMBINING_MARK, G_UNICODE_BREAK_COMBINING_MARK,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_ALPHABETIC,
......@@ -1584,7 +1584,7 @@ static char page13[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page14[256] = {
static const char page14[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_COMPLEX_CONTEXT,
G_UNICODE_BREAK_COMPLEX_CONTEXT, G_UNICODE_BREAK_COMPLEX_CONTEXT,
G_UNICODE_BREAK_COMPLEX_CONTEXT, G_UNICODE_BREAK_COMPLEX_CONTEXT,
......@@ -1699,7 +1699,7 @@ static char page14[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page15[256] = {
static const char page15[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -1819,7 +1819,7 @@ static char page15[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page16[256] = {
static const char page16[256] = {
G_UNICODE_BREAK_COMPLEX_CONTEXT, G_UNICODE_BREAK_COMPLEX_CONTEXT,
G_UNICODE_BREAK_COMPLEX_CONTEXT, G_UNICODE_BREAK_COMPLEX_CONTEXT,
G_UNICODE_BREAK_COMPLEX_CONTEXT, G_UNICODE_BREAK_COMPLEX_CONTEXT,
......@@ -1934,7 +1934,7 @@ static char page16[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page17[256] = {
static const char page17[256] = {
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
......@@ -2063,7 +2063,7 @@ static char page17[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page18[256] = {
static const char page18[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -2194,7 +2194,7 @@ static char page18[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC
};
static char page19[256] = {
static const char page19[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -2316,7 +2316,7 @@ static char page19[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page20[256] = {
static const char page20[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -2447,7 +2447,7 @@ static char page20[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC
};
static char page22[256] = {
static const char page22[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -2574,7 +2574,7 @@ static char page22[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page23[256] = {
static const char page23[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
......@@ -2679,7 +2679,7 @@ static char page23[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page24[256] = {
static const char page24[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -2793,7 +2793,7 @@ static char page24[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page30[256] = {
static const char page30[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -2923,7 +2923,7 @@ static char page30[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page31[256] = {
static const char page31[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -3054,7 +3054,7 @@ static char page31[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_UNKNOWN
};
static char page32[256] = {
static const char page32[256] = {
G_UNICODE_BREAK_AFTER, G_UNICODE_BREAK_AFTER, G_UNICODE_BREAK_AFTER,
G_UNICODE_BREAK_AFTER, G_UNICODE_BREAK_AFTER, G_UNICODE_BREAK_AFTER,
G_UNICODE_BREAK_AFTER, G_UNICODE_BREAK_NON_BREAKING_GLUE,
......@@ -3163,7 +3163,7 @@ static char page32[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page33[256] = {
static const char page33[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_POSTFIX,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_AMBIGUOUS,
......@@ -3287,7 +3287,7 @@ static char page33[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page34[256] = {
static const char page34[256] = {
G_UNICODE_BREAK_AMBIGUOUS, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_AMBIGUOUS, G_UNICODE_BREAK_AMBIGUOUS,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -3416,7 +3416,7 @@ static char page34[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page35[256] = {
static const char page35[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -3531,7 +3531,7 @@ static char page35[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page36[256] = {
static const char page36[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -3652,7 +3652,7 @@ static char page36[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page37[256] = {
static const char page37[256] = {
G_UNICODE_BREAK_AMBIGUOUS, G_UNICODE_BREAK_AMBIGUOUS,
G_UNICODE_BREAK_AMBIGUOUS, G_UNICODE_BREAK_AMBIGUOUS,
G_UNICODE_BREAK_AMBIGUOUS, G_UNICODE_BREAK_AMBIGUOUS,
......@@ -3781,7 +3781,7 @@ static char page37[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page38[256] = {
static const char page38[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_AMBIGUOUS,
......@@ -3888,7 +3888,7 @@ static char page38[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page39[256] = {
static const char page39[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_UNKNOWN,
......@@ -4007,7 +4007,7 @@ static char page39[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page46[256] = {
static const char page46[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
......@@ -4115,7 +4115,7 @@ static char page46[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page47[256] = {
static const char page47[256] = {
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
......@@ -4242,7 +4242,7 @@ static char page47[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page48[256] = {
static const char page48[256] = {
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_CLOSE_PUNCTUATION,
G_UNICODE_BREAK_CLOSE_PUNCTUATION, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_NON_STARTER,
......@@ -4373,7 +4373,7 @@ static char page48[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page49[256] = {
static const char page49[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
......@@ -4491,7 +4491,7 @@ static char page49[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page50[256] = {
static const char page50[256] = {
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
......@@ -4615,7 +4615,7 @@ static char page50[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page51[256] = {
static const char page51[256] = {
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
......@@ -4746,7 +4746,7 @@ static char page51[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page77[256] = {
static const char page77[256] = {
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
......@@ -4865,7 +4865,7 @@ static char page77[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page159[256] = {
static const char page159[256] = {
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
......@@ -4981,7 +4981,7 @@ static char page159[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page164[256] = {
static const char page164[256] = {
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
......@@ -5103,7 +5103,7 @@ static char page164[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page215[256] = {
static const char page215[256] = {
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
......@@ -5219,7 +5219,7 @@ static char page215[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page250[256] = {
static const char page250[256] = {
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
......@@ -5315,7 +5315,7 @@ static char page250[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN
};
static char page251[256] = {
static const char page251[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -5439,7 +5439,7 @@ static char page251[256] = {
G_UNICODE_BREAK_ALPHABETIC
};
static char page253[256] = {
static const char page253[256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
......@@ -5561,7 +5561,7 @@ static char page253[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char page254[256] = {
static const char page254[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_UNKNOWN,
......@@ -5684,7 +5684,7 @@ static char page254[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_NON_BREAKING_GLUE
};
static char page255[256] = {
static const char page255[256] = {
G_UNICODE_BREAK_UNKNOWN, G_UNICODE_BREAK_EXCLAMATION,
G_UNICODE_BREAK_IDEOGRAPHIC, G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_PREFIX, G_UNICODE_BREAK_POSTFIX,
......@@ -5813,7 +5813,7 @@ static char page255[256] = {
G_UNICODE_BREAK_UNKNOWN
};
static char *break_property_table[256] = {
static const char *break_property_table[256] = {
page0,
page1,
page2,
......
This diff is collapsed.
......@@ -3,7 +3,7 @@
#define COMPOSE_SECOND_START 357
#define COMPOSE_SECOND_SINGLE_START 388
static gushort compose_page0[256] = {
static const gushort compose_page0[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 147, 148, 149, 0, 0, 1, 2, 3, 4, 5, 150, 6,
......@@ -18,7 +18,7 @@ static gushort compose_page0[256] = {
164, 0, 0, 0, 60, 0, 0, 0
};
static gushort compose_page1[256] = {
static const gushort compose_page1[256] = {
0, 0, 61, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
......@@ -32,7 +32,7 @@ static gushort compose_page1[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
static gushort compose_page2[256] = {
static const gushort compose_page2[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 178, 179, 180, 0, 0, 0, 0, 181,
182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
......@@ -46,7 +46,7 @@ static gushort compose_page2[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
static gushort compose_page3[256] = {
static const gushort compose_page3[256] = {
357, 358, 359, 360, 361, 0, 362, 363, 364, 365, 366, 367, 368, 0, 0, 369,
0, 370, 0, 371, 372, 0, 0, 0, 0, 0, 0, 373, 0, 0, 0, 0, 0, 0, 0, 374, 375,
376, 377, 378, 379, 0, 0, 0, 0, 380, 381, 0, 382, 383, 0, 0, 0, 0, 0, 0, 0,
......@@ -61,7 +61,7 @@ static gushort compose_page3[256] = {
0, 0, 0, 0, 0, 0, 0, 0
};
static gushort compose_page4[256] = {
static const gushort compose_page4[256] = {
0, 0, 0, 0, 0, 0, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 89, 0, 0, 189, 0, 90, 91,
190, 92, 0, 191, 0, 0, 0, 192, 0, 0, 0, 0, 93, 0, 0, 0, 193, 0, 0, 0, 194,
0, 195, 0, 0, 94, 0, 0, 196, 0, 95, 96, 197, 97, 0, 198, 0, 0, 0, 199, 0,
......@@ -75,7 +75,7 @@ static gushort compose_page4[256] = {
208, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
static gushort compose_page6[256] = {
static const gushort compose_page6[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0,
......@@ -89,7 +89,7 @@ static gushort compose_page6[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
static gushort compose_page9[256] = {
static const gushort compose_page9[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 0, 0, 0, 0, 0, 0, 216,
0, 0, 217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
......@@ -103,7 +103,7 @@ static gushort compose_page9[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
static gushort compose_page11[256] = {