summaryrefslogtreecommitdiff
path: root/src/w32uniscribe.c
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2008-04-04 12:08:14 +0000
committerJason Rumney <jasonr@gnu.org>2008-04-04 12:08:14 +0000
commitd0bfec76e4e3a4cc26742da409e0393733d7d079 (patch)
tree4aedf081314be44d70071a1413160bea3491eb58 /src/w32uniscribe.c
parente38ac6e20364469afe2700548120924ad5807e56 (diff)
downloademacs-d0bfec76e4e3a4cc26742da409e0393733d7d079.tar.gz
(uniscribe_check_otf): Rearrange loop for counting features.
Diffstat (limited to 'src/w32uniscribe.c')
-rw-r--r--src/w32uniscribe.c6
1 files changed, 2 insertions, 4 deletions
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)
unsigned short script_table, langsys_table, n_langs;
unsigned short feature_index, n_features;
DWORD tbl = feature_tables[i];
- Lisp_Object feature;
/* Skip if no features requested from this table. */
if (NILP (features[i]))
@@ -680,10 +679,9 @@ int uniscribe_check_otf (font, otf_spec)
/* Check the features. Features may contain nil according to
documentation in font_prop_validate_otf, so count them. */
n_match_features = 0;
- rest = features[i];
- for (feature = XCAR (rest); CONSP (rest); feature = CAR_SAFE (rest))
+ for (rest = features[i]; CONSP (rest); rest = XCDR (rest))
{
- rest = XCDR (rest);
+ Lisp_Object feature = XCAR (rest);
if (!NILP (feature))
n_match_features++;
}