[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xfaces.c,v
From: |
Jason Rumney |
Subject: |
[Emacs-diffs] Changes to emacs/src/xfaces.c,v |
Date: |
Thu, 22 May 2008 14:54:08 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Jason Rumney <jasonr> 08/05/22 14:54:07
Index: xfaces.c
===================================================================
RCS file: /sources/emacs/emacs/src/xfaces.c,v
retrieving revision 1.387
retrieving revision 1.388
diff -u -b -r1.387 -r1.388
--- xfaces.c 22 May 2008 03:47:34 -0000 1.387
+++ xfaces.c 22 May 2008 14:54:07 -0000 1.388
@@ -798,11 +798,11 @@
#endif /* MAC_OS */
-/* Like stricmp. Used to compare parts of font names which are in
- ISO8859-1. */
+/* Like strcasecmp/stricmp. Used to compare parts of font names which
+ are in ISO8859-1. */
int
-xstricmp (s1, s2)
+xstrcasecmp (s1, s2)
const unsigned char *s1, *s2;
{
while (*s1 && *s2)
@@ -1381,8 +1381,8 @@
#ifdef HAVE_WINDOW_SYSTEM
FRAME_WINDOW_P (f)
? (!NILP (Fxw_display_color_p (frame))
- || xstricmp (color_name, "black") == 0
- || xstricmp (color_name, "white") == 0
+ || xstrcasecmp (color_name, "black") == 0
+ || xstrcasecmp (color_name, "white") == 0
|| (background_p
&& face_color_gray_p (f, color_name))
|| (!NILP (Fx_display_grayscale_p (frame))
@@ -3564,13 +3564,13 @@
xassert (STRINGP (value));
- if (xstricmp (SDATA (value), "on") == 0
- || xstricmp (SDATA (value), "true") == 0)
+ if (xstrcasecmp (SDATA (value), "on") == 0
+ || xstrcasecmp (SDATA (value), "true") == 0)
result = Qt;
- else if (xstricmp (SDATA (value), "off") == 0
- || xstricmp (SDATA (value), "false") == 0)
+ else if (xstrcasecmp (SDATA (value), "off") == 0
+ || xstrcasecmp (SDATA (value), "false") == 0)
result = Qnil;
- else if (xstricmp (SDATA (value), "unspecified") == 0)
+ else if (xstrcasecmp (SDATA (value), "unspecified") == 0)
result = Qunspecified;
else if (signal_p)
signal_error ("Invalid face attribute value from X resource", value);
@@ -3590,7 +3590,7 @@
CHECK_SYMBOL (attr);
CHECK_STRING (value);
- if (xstricmp (SDATA (value), "unspecified") == 0)
+ if (xstrcasecmp (SDATA (value), "unspecified") == 0)
value = Qunspecified;
else if (EQ (attr, QCheight))
{
@@ -4127,7 +4127,7 @@
{
xassert (lface_fully_specified_p (lface1)
&& lface_fully_specified_p (lface2));
- return (xstricmp (SDATA (lface1[LFACE_FAMILY_INDEX]),
+ return (xstrcasecmp (SDATA (lface1[LFACE_FAMILY_INDEX]),
SDATA (lface2[LFACE_FAMILY_INDEX])) == 0
&& EQ (lface1[LFACE_HEIGHT_INDEX], lface2[LFACE_HEIGHT_INDEX])
&& EQ (lface1[LFACE_SWIDTH_INDEX], lface2[LFACE_SWIDTH_INDEX])
@@ -4137,7 +4137,7 @@
&& (EQ (lface1[LFACE_FONTSET_INDEX], lface2[LFACE_FONTSET_INDEX])
|| (STRINGP (lface1[LFACE_FONTSET_INDEX])
&& STRINGP (lface2[LFACE_FONTSET_INDEX])
- && ! xstricmp (SDATA (lface1[LFACE_FONTSET_INDEX]),
+ && ! xstrcasecmp (SDATA (lface1[LFACE_FONTSET_INDEX]),
SDATA (lface2[LFACE_FONTSET_INDEX]))))
);
}
- [Emacs-diffs] Changes to emacs/src/xfaces.c,v, Glenn Morris, 2008/05/14
- [Emacs-diffs] Changes to emacs/src/xfaces.c,v, Kenichi Handa, 2008/05/14
- [Emacs-diffs] Changes to emacs/src/xfaces.c,v, Eli Zaretskii, 2008/05/16
- [Emacs-diffs] Changes to emacs/src/xfaces.c,v, Kenichi Handa, 2008/05/20
- [Emacs-diffs] Changes to emacs/src/xfaces.c,v, Kenichi Handa, 2008/05/21
- [Emacs-diffs] Changes to emacs/src/xfaces.c,v, Kenichi Handa, 2008/05/21
- [Emacs-diffs] Changes to emacs/src/xfaces.c,v,
Jason Rumney <=
- [Emacs-diffs] Changes to emacs/src/xfaces.c,v, Kenichi Handa, 2008/05/25
- [Emacs-diffs] Changes to emacs/src/xfaces.c,v, Kenichi Handa, 2008/05/28
- [Emacs-diffs] Changes to emacs/src/xfaces.c,v, Juanma Barranquero, 2008/05/28
- [Emacs-diffs] Changes to emacs/src/xfaces.c,v, Kenichi Handa, 2008/05/29