diff options
author | Behdad Esfahbod <pango@behdad.org> | 2005-06-21 23:30:51 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2005-06-21 23:30:51 +0000 |
commit | 111a9bad75bbb92f614bbc8e5b7f80c3234dd0c0 (patch) | |
tree | b1d8d234fa6af13c24b58b9ea6f544c01c1f91f1 /modules | |
parent | 4a6f75cdab74522ee02d11c5668dcfdc960dbc93 (diff) | |
download | pango-111a9bad75bbb92f614bbc8e5b7f80c3234dd0c0.tar.gz |
Fix C89 var after code issues.
2005-06-21 Behdad Esfahbod <pango@behdad.org>
* modules/khmer/khmer-fc.c: Fix C89 var after code issues.
* modules/khmer/.cvsignore: Copied from other modules.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/khmer/.cvsignore | 7 | ||||
-rw-r--r-- | modules/khmer/khmer-fc.c | 8 |
2 files changed, 12 insertions, 3 deletions
diff --git a/modules/khmer/.cvsignore b/modules/khmer/.cvsignore new file mode 100644 index 00000000..13aeb3b7 --- /dev/null +++ b/modules/khmer/.cvsignore @@ -0,0 +1,7 @@ +Makefile +Makefile.in +.deps +.libs +*.lo +*.la + diff --git a/modules/khmer/khmer-fc.c b/modules/khmer/khmer-fc.c index cc6c09a8..6e4c4e12 100644 --- a/modules/khmer/khmer-fc.c +++ b/modules/khmer/khmer-fc.c @@ -497,6 +497,7 @@ khmer_engine_shape (PangoEngineShape *engine, PangoFcFont *fc_font = PANGO_FC_FONT (font); FT_Face face; PangoOTBuffer *buffer; + PangoOTRuleset *ruleset; glong n_chars, i; gunichar *wcs; const char *p; @@ -515,13 +516,14 @@ khmer_engine_shape (PangoEngineShape *engine, */ while (cursor < n_chars) { - syllable = find_syllable (wcs, cursor, n_chars); - /* write a pre vowel or the pre part of a split vowel first * and look out for coeng + ro. RO is the only vowel of type 2, and * therefore the only one that requires saving space before the base. */ glong coengRo = -1; /* There is no Coeng Ro, if found this value will change */ + + syllable = find_syllable (wcs, cursor, n_chars); + for (i = cursor; i < syllable; i += 1) { charClass = get_char_class (wcs[i]); @@ -678,7 +680,7 @@ khmer_engine_shape (PangoEngineShape *engine, } /* while */ /* do gsub processing */ - PangoOTRuleset *ruleset = get_ruleset (face); + ruleset = get_ruleset (face); if (ruleset != NULL) { pango_ot_ruleset_substitute (ruleset, buffer); |