diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-03-05 00:50:29 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2005-03-05 00:50:29 +0000 |
commit | 320f8cd2773015af4d3d1d5fb035c2ab11d5c921 (patch) | |
tree | 9b18fda40ede9bb4956297f1230d51e2cde8881a /modules/indic/indic-fc.c | |
parent | a0fac74e05f36a410256e581eca3ec8fd573195d (diff) | |
download | pango-320f8cd2773015af4d3d1d5fb035c2ab11d5c921.tar.gz |
Reduce non-shared data (#168899, inspired by patches from Tommi Komulainen
2005-03-04 Owen Taylor <otaylor@redhat.com>
Reduce non-shared data (#168899, inspired by patches
from Tommi Komulainen and Ross Burton)
* pango/pango-color.c pango/pango-color-table.h
tools/gen-color-table.pl: Redo storage of colors to
use offsets into a static string rather than embedded
strings. (Inspired by a patch from Tommi Komulainen,
#168899)
* pango/break.c pango/fonts.c pango/pango-color.c
pango/pango-layout.c pango/pango-markup.c
pango/pango-script-lang-table.h
pango/mini-fribidi/fribidi_types.c
tools/gen-script-for-lang.c: Add const in various places
* modules/arabic/arabic-fc.c modules/hebrew/hebrew-fc.c:
modules/indic/{indic-fc.c,indic-ot-class-tables.c,
indic-ot.h} modules/syriac/syriac-ot.c (syriac): Further
addition of const.
Diffstat (limited to 'modules/indic/indic-fc.c')
-rw-r--r-- | modules/indic/indic-fc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/indic/indic-fc.c b/modules/indic/indic-fc.c index b9816a21..c795a210 100644 --- a/modules/indic/indic-fc.c +++ b/modules/indic/indic-fc.c @@ -38,15 +38,15 @@ typedef PangoEngineShapeClass IndicEngineFcClass ; /* No extra fields needed */ struct _IndicEngineFc { PangoEngineShape shapeEngine; - PangoIndicInfo *indicInfo; + const PangoIndicInfo *indicInfo; }; struct _PangoIndicInfo { - PangoOTTag scriptTag; - IndicOTClassTable *classTable; - gchar *gsubQuarkName; - gchar *gposQuarkName; + PangoOTTag scriptTag; + const IndicOTClassTable *classTable; + gchar *gsubQuarkName; + gchar *gposQuarkName; }; #define ENGINE_SUFFIX "ScriptEngineFc" @@ -122,7 +122,7 @@ static PangoEngineInfo script_engines[] = { * in a macro that calls a body macro that can be redefined, or by * putting the pointers to the PangoEngineInfo in PangoIndicInfo... */ -static PangoIndicInfo indic_info[] = { +static const PangoIndicInfo indic_info[] = { PANGO_INDIC_INFO(deva), PANGO_INDIC_INFO(beng), PANGO_INDIC_INFO(guru), PANGO_INDIC_INFO(gujr), PANGO_INDIC_INFO(orya), PANGO_INDIC_INFO(taml), PANGO_INDIC_INFO(telu), PANGO_INDIC_INFO(knda), PANGO_INDIC_INFO(mlym), @@ -173,7 +173,7 @@ maybe_add_GPOS_feature (PangoOTRuleset *ruleset, } static PangoOTRuleset * -get_gsub_ruleset (FT_Face face, PangoIndicInfo *indic_info) +get_gsub_ruleset (FT_Face face, const PangoIndicInfo *indic_info) { PangoOTInfo *info = pango_ot_info_get (face); GQuark ruleset_quark = g_quark_from_string (indic_info->gsubQuarkName); @@ -217,7 +217,7 @@ get_gsub_ruleset (FT_Face face, PangoIndicInfo *indic_info) static PangoOTRuleset * -get_gpos_ruleset (FT_Face face, PangoIndicInfo *indic_info) +get_gpos_ruleset (FT_Face face, const PangoIndicInfo *indic_info) { PangoOTInfo *info = pango_ot_info_get (face); GQuark ruleset_quark = g_quark_from_string (indic_info->gposQuarkName); @@ -319,7 +319,7 @@ indic_engine_shape (PangoEngineShape *engine, PangoOTRuleset *gsub_ruleset = NULL, *gpos_ruleset = NULL; PangoOTBuffer *buffer; IndicEngineFc *indic_shape_engine = NULL; - PangoIndicInfo *indic_info = NULL; + const PangoIndicInfo *indic_info = NULL; PangoFcFont *fc_font; MPreFixups *mprefixups; |