changeset 95204:c329829ac385

(font_style_to_value, font_score): Use xstricmp.
author Jason Rumney <jasonr@gnu.org>
date Thu, 22 May 2008 13:36:30 +0000
parents 675ce1a056ee
children c3ae651b3f49
files src/font.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/font.c	Thu May 22 13:36:13 2008 +0000
+++ b/src/font.c	Thu May 22 13:36:30 2008 +0000
@@ -312,7 +312,7 @@
 	for (j = 1; j < ASIZE (AREF (table, i)); j++)
 	  {
 	    elt = AREF (AREF (table, i), j);
-	    if (strcasecmp (s, (char *) SDATA (SYMBOL_NAME (elt))) == 0)
+	    if (xstricmp (s, (char *) SDATA (SYMBOL_NAME (elt))) == 0)
 	      return ((XINT (AREF (AREF (table, i), 0)) << 8)
 		      | (i << 4) | (j - 1));
 	  }
@@ -1981,7 +1981,7 @@
 	Lisp_Object entity_str = SYMBOL_NAME (AREF (entity, i));
 	Lisp_Object spec_str = SYMBOL_NAME (spec_prop[i]);
 
-	if (strcasecmp ((char *) SDATA (spec_str), (char *) SDATA (entity_str)))
+	if (xstricmp ((char *) SDATA (spec_str), (char *) SDATA (entity_str)))
 	  {
 	    if (i == FONT_FAMILY_INDEX && CONSP (alternate_families))
 	      {
@@ -1991,8 +1991,8 @@
 		     j++, alternate_families = XCDR (alternate_families))
 		  {
 		    spec_str = XCAR (alternate_families);
-		    if (strcasecmp ((char *) SDATA (spec_str),
-				    (char *) SDATA (entity_str)) == 0)
+		    if (xstricmp ((char *) SDATA (spec_str),
+                                  (char *) SDATA (entity_str)) == 0)
 		      break;
 
 		  }