NOTE: This patch has been committed.
APPROVE COMMIT sjt-xft
2005-02-09 Eric Knauel <eric(a)xemacs.org>
* xft-fonts.c (string_list_to_fcobjectset): Use loop macro instead
of for.
XEmacs Xft branch source patch:
Diff command: cvs -q diff -u
Files affected: src/xft-fonts.c
Index: src/xft-fonts.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/Attic/xft-fonts.c,v
retrieving revision 1.1.2.3
diff -u -u -r1.1.2.3 xft-fonts.c
--- src/xft-fonts.c 2005/02/04 16:05:38 1.1.2.3
+++ src/xft-fonts.c 2005/02/09 12:51:42
@@ -1003,12 +1003,10 @@
static void
string_list_to_fcobjectset (Lisp_Object list, FcObjectSet *os)
{
- Lisp_Object i;
-
- for (i = list; !NILP (i); i = XCDR (i))
+ EXTERNAL_LIST_LOOP_2 (elt, list)
{
- CHECK_STRING (XCAR (i));
- FcObjectSetAdd (os, XSTRING_DATA (XCAR (i)));
+ CHECK_STRING (elt);
+ FcObjectSetAdd (os, XSTRING_DATA (elt));
}
}
-Eric
--
"Excuse me --- Di Du Du Duuuuh Di Dii --- Huh Weeeheeee" (Albert King)