summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-09-18 21:29:37 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-09-18 21:29:37 +0000
commita83cf48e725c69f131b833a65069db3f05b0b52f (patch)
treef115fa679f438b50b16382aca32a52aab2053b1d /pango
parent43fa79404e3f90971dae6a99743d4edd70067b51 (diff)
downloadpango-a83cf48e725c69f131b833a65069db3f05b0b52f.tar.gz
Minor simplification.
2006-09-18 Behdad Esfahbod <behdad@gnome.org> * tools/gen-script-table.pl: * pango/pango-script-table.h: * pango/pango-script.c (pango_script_for_unichar): Minor simplification. * tests/testscript.c (test_script_lookup): Update to pass.
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-script-table.h4
-rw-r--r--pango/pango-script.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/pango/pango-script-table.h b/pango/pango-script-table.h
index 79aa583a..abe7e866 100644
--- a/pango/pango-script-table.h
+++ b/pango/pango-script-table.h
@@ -1,13 +1,11 @@
/* pango-script-table.h: Generated by gen-script-table.pl
*
- * Date: Tue Jul 25 01:42:49 2006
+ * Date: Mon Sep 18 21:07:42 2006
* Source: Scripts-5.0.0.txt
*
* Do not edit.
*/
-#define PANGO_EASY_SCRIPTS_RANGE 8192
-
static const guchar pango_script_easy_table[8192] = {
PANGO_SCRIPT_COMMON, PANGO_SCRIPT_COMMON, PANGO_SCRIPT_COMMON,
diff --git a/pango/pango-script.c b/pango/pango-script.c
index 52824799..a3e95ece 100644
--- a/pango/pango-script.c
+++ b/pango/pango-script.c
@@ -127,7 +127,7 @@ pango_script_for_unichar_bsearch (gunichar ch)
PangoScript
pango_script_for_unichar (gunichar ch)
{
- if (ch < PANGO_EASY_SCRIPTS_RANGE)
+ if (ch < G_N_ELEMENTS (pango_script_easy_table))
return pango_script_easy_table[ch];
else
return pango_script_for_unichar_bsearch (ch);