aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2008-04-04 12:08:14 +0000
committerJason Rumney2008-04-04 12:08:14 +0000
commitd0bfec76e4e3a4cc26742da409e0393733d7d079 (patch)
tree4aedf081314be44d70071a1413160bea3491eb58
parente38ac6e20364469afe2700548120924ad5807e56 (diff)
downloademacs-d0bfec76e4e3a4cc26742da409e0393733d7d079.tar.gz
emacs-d0bfec76e4e3a4cc26742da409e0393733d7d079.zip
(uniscribe_check_otf): Rearrange loop for counting features.
-rw-r--r--src/ChangeLog2
-rw-r--r--src/w32uniscribe.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 312183e42aa..45ac57b2f98 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,6 +1,8 @@
12008-04-04 Jason Rumney <jasonr@gnu.org> 12008-04-04 Jason Rumney <jasonr@gnu.org>
2 2
3 * w32uniscribe.c (uniscribe_check_otf): Fix last change. 3 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4 (uniscribe_check_otf): Add GC protection before consing.
5 Rearrange loop for counting features.
4 6
52008-04-03 Stefan Monnier <monnier@iro.umontreal.ca> 72008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
6 8
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c
index 62734d05cde..dbf26011ff1 100644
--- a/src/w32uniscribe.c
+++ b/src/w32uniscribe.c
@@ -612,7 +612,6 @@ int uniscribe_check_otf (font, otf_spec)
612 unsigned short script_table, langsys_table, n_langs; 612 unsigned short script_table, langsys_table, n_langs;
613 unsigned short feature_index, n_features; 613 unsigned short feature_index, n_features;
614 DWORD tbl = feature_tables[i]; 614 DWORD tbl = feature_tables[i];
615 Lisp_Object feature;
616 615
617 /* Skip if no features requested from this table. */ 616 /* Skip if no features requested from this table. */
618 if (NILP (features[i])) 617 if (NILP (features[i]))
@@ -680,10 +679,9 @@ int uniscribe_check_otf (font, otf_spec)
680 /* Check the features. Features may contain nil according to 679 /* Check the features. Features may contain nil according to
681 documentation in font_prop_validate_otf, so count them. */ 680 documentation in font_prop_validate_otf, so count them. */
682 n_match_features = 0; 681 n_match_features = 0;
683 rest = features[i]; 682 for (rest = features[i]; CONSP (rest); rest = XCDR (rest))
684 for (feature = XCAR (rest); CONSP (rest); feature = CAR_SAFE (rest))
685 { 683 {
686 rest = XCDR (rest); 684 Lisp_Object feature = XCAR (rest);
687 if (!NILP (feature)) 685 if (!NILP (feature))
688 n_match_features++; 686 n_match_features++;
689 } 687 }