Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d0bfec76
Commit
d0bfec76
authored
Apr 04, 2008
by
Jason Rumney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(uniscribe_check_otf): Rearrange loop for counting features.
parent
e38ac6e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/ChangeLog
src/ChangeLog
+2
-0
src/w32uniscribe.c
src/w32uniscribe.c
+2
-4
No files found.
src/ChangeLog
View file @
d0bfec76
2008-04-04 Jason Rumney <jasonr@gnu.org>
* w32uniscribe.c (uniscribe_check_otf): Fix last change.
(uniscribe_check_otf): Add GC protection before consing.
Rearrange loop for counting features.
2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
...
...
src/w32uniscribe.c
View file @
d0bfec76
...
...
@@ -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
))
{
re
st
=
XC
D
R
(
rest
);
Lisp_Object
featu
re
=
XC
A
R
(
rest
);
if
(
!
NILP
(
feature
))
n_match_features
++
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment