aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2008-05-22 14:54:27 +0000
committerJason Rumney2008-05-22 14:54:27 +0000
commit0513110744d9ae86c12eea93466c6ff539ae3f77 (patch)
tree56e21e77d36415f46efd692e93d2e94edc350b15 /src
parent3b780338b9e8c0164763eac1fbd1727428c2a8e5 (diff)
downloademacs-0513110744d9ae86c12eea93466c6ff539ae3f77.tar.gz
emacs-0513110744d9ae86c12eea93466c6ff539ae3f77.zip
* dispextern.h, xfaces.c (xstrcasecmp): Renamed from xstricmp.
* dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c: * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c: * xfns.c, xfont.c: Callers changed.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/dispextern.h2
-rw-r--r--src/dosfns.c2
-rw-r--r--src/fileio.c6
-rw-r--r--src/font.c9
-rw-r--r--src/fontset.c2
-rw-r--r--src/image.c4
-rw-r--r--src/macfns.c4
-rw-r--r--src/macterm.c4
-rw-r--r--src/process.c2
-rw-r--r--src/w32.c32
-rw-r--r--src/w32fns.c24
-rw-r--r--src/w32proc.c6
-rw-r--r--src/xfaces.c30
-rw-r--r--src/xfns.c2
-rw-r--r--src/xfont.c4
16 files changed, 73 insertions, 66 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6b18a74c5a2..d90bac7b1e1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
12008-05-22 Jason Rumney <jasonr@gnu.org> 12008-05-22 Jason Rumney <jasonr@gnu.org>
2 2
3 * dispextern.h, xfaces.c (xstrcasecmp): Renamed from xstricmp.
4
5 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
6 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
7 * xfns.c, xfont.c: Callers changed.
8
3 * xfont.c (xfont_list_pattern, compare_font_names): Use xstricmp. 9 * xfont.c (xfont_list_pattern, compare_font_names): Use xstricmp.
4 10
5 * fontset.c (fs_query_fontset): Use xstricmp. 11 * fontset.c (fs_query_fontset): Use xstricmp.
diff --git a/src/dispextern.h b/src/dispextern.h
index c644295fbff..2101d70478f 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -2848,7 +2848,7 @@ char *choose_face_font P_ ((struct frame *, Lisp_Object *, Lisp_Object,
2848 int *)); 2848 int *));
2849int ascii_face_of_lisp_face P_ ((struct frame *, int)); 2849int ascii_face_of_lisp_face P_ ((struct frame *, int));
2850void prepare_face_for_display P_ ((struct frame *, struct face *)); 2850void prepare_face_for_display P_ ((struct frame *, struct face *));
2851int xstricmp P_ ((const unsigned char *, const unsigned char *)); 2851int xstrcasecmp P_ ((const unsigned char *, const unsigned char *));
2852int lookup_face P_ ((struct frame *, Lisp_Object *)); 2852int lookup_face P_ ((struct frame *, Lisp_Object *));
2853int lookup_non_ascii_face P_ ((struct frame *, int, struct face *)); 2853int lookup_non_ascii_face P_ ((struct frame *, int, struct face *));
2854int lookup_named_face P_ ((struct frame *, Lisp_Object, int)); 2854int lookup_named_face P_ ((struct frame *, Lisp_Object, int));
diff --git a/src/dosfns.c b/src/dosfns.c
index deb1de60051..ac336c9a5df 100644
--- a/src/dosfns.c
+++ b/src/dosfns.c
@@ -420,7 +420,7 @@ msdos_stdcolor_idx (const char *name)
420 int i; 420 int i;
421 421
422 for (i = 0; i < sizeof (vga_colors) / sizeof (vga_colors[0]); i++) 422 for (i = 0; i < sizeof (vga_colors) / sizeof (vga_colors[0]); i++)
423 if (xstricmp (name, vga_colors[i]) == 0) 423 if (xstrcasecmp (name, vga_colors[i]) == 0)
424 return i; 424 return i;
425 425
426 return 426 return
diff --git a/src/fileio.c b/src/fileio.c
index 6ef3fe890a4..c4b0113523a 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3033,9 +3033,9 @@ check_executable (filename)
3033#else 3033#else
3034 return (S_ISREG (st.st_mode) 3034 return (S_ISREG (st.st_mode)
3035 && len >= 5 3035 && len >= 5
3036 && (stricmp ((suffix = filename + len-4), ".com") == 0 3036 && (xstrcasecmp ((suffix = filename + len-4), ".com") == 0
3037 || stricmp (suffix, ".exe") == 0 3037 || xstrcasecmp (suffix, ".exe") == 0
3038 || stricmp (suffix, ".bat") == 0) 3038 || xstrcasecmp (suffix, ".bat") == 0)
3039 || (st.st_mode & S_IFMT) == S_IFDIR); 3039 || (st.st_mode & S_IFMT) == S_IFDIR);
3040#endif /* not WINDOWSNT */ 3040#endif /* not WINDOWSNT */
3041#else /* not DOS_NT */ 3041#else /* not DOS_NT */
diff --git a/src/font.c b/src/font.c
index 11be9856512..a8b460d9e11 100644
--- a/src/font.c
+++ b/src/font.c
@@ -312,7 +312,7 @@ font_style_to_value (prop, val, noerror)
312 for (j = 1; j < ASIZE (AREF (table, i)); j++) 312 for (j = 1; j < ASIZE (AREF (table, i)); j++)
313 { 313 {
314 elt = AREF (AREF (table, i), j); 314 elt = AREF (AREF (table, i), j);
315 if (xstricmp (s, (char *) SDATA (SYMBOL_NAME (elt))) == 0) 315 if (xstrcasecmp (s, (char *) SDATA (SYMBOL_NAME (elt))) == 0)
316 return ((XINT (AREF (AREF (table, i), 0)) << 8) 316 return ((XINT (AREF (AREF (table, i), 0)) << 8)
317 | (i << 4) | (j - 1)); 317 | (i << 4) | (j - 1));
318 } 318 }
@@ -1981,7 +1981,8 @@ font_score (entity, spec_prop, alternate_families)
1981 Lisp_Object entity_str = SYMBOL_NAME (AREF (entity, i)); 1981 Lisp_Object entity_str = SYMBOL_NAME (AREF (entity, i));
1982 Lisp_Object spec_str = SYMBOL_NAME (spec_prop[i]); 1982 Lisp_Object spec_str = SYMBOL_NAME (spec_prop[i]);
1983 1983
1984 if (xstricmp ((char *) SDATA (spec_str), (char *) SDATA (entity_str))) 1984 if (xstrcasecmp ((char *) SDATA (spec_str),
1985 (char *) SDATA (entity_str)))
1985 { 1986 {
1986 if (i == FONT_FAMILY_INDEX && CONSP (alternate_families)) 1987 if (i == FONT_FAMILY_INDEX && CONSP (alternate_families))
1987 { 1988 {
@@ -1991,8 +1992,8 @@ font_score (entity, spec_prop, alternate_families)
1991 j++, alternate_families = XCDR (alternate_families)) 1992 j++, alternate_families = XCDR (alternate_families))
1992 { 1993 {
1993 spec_str = XCAR (alternate_families); 1994 spec_str = XCAR (alternate_families);
1994 if (xstricmp ((char *) SDATA (spec_str), 1995 if (xstrcasecmp ((char *) SDATA (spec_str),
1995 (char *) SDATA (entity_str)) == 0) 1996 (char *) SDATA (entity_str)) == 0)
1996 break; 1997 break;
1997 1998
1998 } 1999 }
diff --git a/src/fontset.c b/src/fontset.c
index 06b13cd6575..59929c0b4a7 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -1082,7 +1082,7 @@ fs_query_fontset (name, name_pattern)
1082 this_name = FONTSET_NAME (fontset); 1082 this_name = FONTSET_NAME (fontset);
1083 if (name_pattern == 1 1083 if (name_pattern == 1
1084 ? fast_string_match_ignore_case (name, this_name) >= 0 1084 ? fast_string_match_ignore_case (name, this_name) >= 0
1085 : !xstricmp (SDATA (name), SDATA (this_name))) 1085 : !xstrcasecmp (SDATA (name), SDATA (this_name)))
1086 return i; 1086 return i;
1087 } 1087 }
1088 return -1; 1088 return -1;
diff --git a/src/image.c b/src/image.c
index 3628a7f05dd..652c738d109 100644
--- a/src/image.c
+++ b/src/image.c
@@ -4862,7 +4862,7 @@ xpm_load_image (f, img, contents, end)
4862 4862
4863 if (CONSP (specified_color) && STRINGP (XCDR (specified_color))) 4863 if (CONSP (specified_color) && STRINGP (XCDR (specified_color)))
4864 { 4864 {
4865 if (xstricmp (SDATA (XCDR (specified_color)), "None") == 0) 4865 if (xstrcasecmp (SDATA (XCDR (specified_color)), "None") == 0)
4866 color_val = Qt; 4866 color_val = Qt;
4867 else if (x_defined_color (f, SDATA (XCDR (specified_color)), 4867 else if (x_defined_color (f, SDATA (XCDR (specified_color)),
4868 &cdef, 0)) 4868 &cdef, 0))
@@ -4871,7 +4871,7 @@ xpm_load_image (f, img, contents, end)
4871 } 4871 }
4872 if (NILP (color_val) && max_key > 0) 4872 if (NILP (color_val) && max_key > 0)
4873 { 4873 {
4874 if (xstricmp (max_color, "None") == 0) 4874 if (xstrcasecmp (max_color, "None") == 0)
4875 color_val = Qt; 4875 color_val = Qt;
4876 else if (x_defined_color (f, max_color, &cdef, 0)) 4876 else if (x_defined_color (f, max_color, &cdef, 0))
4877 color_val = make_number (cdef.pixel); 4877 color_val = make_number (cdef.pixel);
diff --git a/src/macfns.c b/src/macfns.c
index 56320684a86..edc5a63441c 100644
--- a/src/macfns.c
+++ b/src/macfns.c
@@ -105,7 +105,7 @@ extern Lisp_Object Vwindow_system_version;
105int image_cache_refcount, dpyinfo_refcount; 105int image_cache_refcount, dpyinfo_refcount;
106#endif 106#endif
107 107
108#if 0 /* Use xstricmp instead. */ 108#if 0 /* Use xstrcasecmp instead. */
109/* compare two strings ignoring case */ 109/* compare two strings ignoring case */
110 110
111static int 111static int
@@ -1011,7 +1011,7 @@ mac_color_map_lookup (colorname)
1011 BLOCK_INPUT; 1011 BLOCK_INPUT;
1012 1012
1013 for (i = 0; i < sizeof (mac_color_map) / sizeof (mac_color_map[0]); i++) 1013 for (i = 0; i < sizeof (mac_color_map) / sizeof (mac_color_map[0]); i++)
1014 if (xstricmp (colorname, mac_color_map[i].name) == 0) 1014 if (xstrcasecmp (colorname, mac_color_map[i].name) == 0)
1015 { 1015 {
1016 ret = make_number (mac_color_map[i].color); 1016 ret = make_number (mac_color_map[i].color);
1017 break; 1017 break;
diff --git a/src/macterm.c b/src/macterm.c
index 0542b043f8e..ae9aa1108d2 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -9460,8 +9460,8 @@ x_query_font (f, fontname)
9460 9460
9461 for (i = 0; i < dpyinfo->n_fonts; i++) 9461 for (i = 0; i < dpyinfo->n_fonts; i++)
9462 if (dpyinfo->font_table[i].name 9462 if (dpyinfo->font_table[i].name
9463 && (!xstricmp (dpyinfo->font_table[i].name, fontname) 9463 && (!xstrcasecmp (dpyinfo->font_table[i].name, fontname)
9464 || !xstricmp (dpyinfo->font_table[i].full_name, fontname))) 9464 || !xstrcasecmp (dpyinfo->font_table[i].full_name, fontname)))
9465 return (dpyinfo->font_table + i); 9465 return (dpyinfo->font_table + i);
9466 return NULL; 9466 return NULL;
9467} 9467}
diff --git a/src/process.c b/src/process.c
index 50952bf1647..e1735750806 100644
--- a/src/process.c
+++ b/src/process.c
@@ -6146,7 +6146,7 @@ SIGCODE may be an integer, or a symbol whose name is a signal name. */)
6146 got_it: 6146 got_it:
6147 6147
6148#define parse_signal(NAME, VALUE) \ 6148#define parse_signal(NAME, VALUE) \
6149 else if (!xstricmp (name, NAME)) \ 6149 else if (!xstrcasecmp (name, NAME)) \
6150 XSETINT (sigcode, VALUE) 6150 XSETINT (sigcode, VALUE)
6151 6151
6152 if (INTEGERP (sigcode)) 6152 if (INTEGERP (sigcode))
diff --git a/src/w32.c b/src/w32.c
index fea19518e2a..254cd79ddec 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -720,7 +720,7 @@ getpwnam (char *name)
720 if (!pw) 720 if (!pw)
721 return pw; 721 return pw;
722 722
723 if (stricmp (name, pw->pw_name)) 723 if (xstrcasecmp (name, pw->pw_name))
724 return NULL; 724 return NULL;
725 725
726 return pw; 726 return pw;
@@ -754,7 +754,7 @@ init_user_info ()
754 { 754 {
755 strcpy (dflt_passwd.pw_name, uname); 755 strcpy (dflt_passwd.pw_name, uname);
756 /* Determine a reasonable uid value. */ 756 /* Determine a reasonable uid value. */
757 if (stricmp ("administrator", uname) == 0) 757 if (xstrcasecmp ("administrator", uname) == 0)
758 { 758 {
759 dflt_passwd.pw_uid = 500; /* well-known Administrator uid */ 759 dflt_passwd.pw_uid = 500; /* well-known Administrator uid */
760 dflt_passwd.pw_gid = 513; /* well-known None gid */ 760 dflt_passwd.pw_gid = 513; /* well-known None gid */
@@ -786,7 +786,7 @@ init_user_info ()
786 else if (GetUserName (uname, &ulength)) 786 else if (GetUserName (uname, &ulength))
787 { 787 {
788 strcpy (dflt_passwd.pw_name, uname); 788 strcpy (dflt_passwd.pw_name, uname);
789 if (stricmp ("administrator", uname) == 0) 789 if (xstrcasecmp ("administrator", uname) == 0)
790 dflt_passwd.pw_uid = 0; 790 dflt_passwd.pw_uid = 0;
791 else 791 else
792 dflt_passwd.pw_uid = 123; 792 dflt_passwd.pw_uid = 123;
@@ -1296,7 +1296,7 @@ init_environment (char ** argv)
1296 abort (); 1296 abort ();
1297 *p = 0; 1297 *p = 0;
1298 1298
1299 if ((p = strrchr (modname, '\\')) && stricmp (p, "\\bin") == 0) 1299 if ((p = strrchr (modname, '\\')) && xstrcasecmp (p, "\\bin") == 0)
1300 { 1300 {
1301 char buf[SET_ENV_BUF_SIZE]; 1301 char buf[SET_ENV_BUF_SIZE];
1302 1302
@@ -1312,7 +1312,7 @@ init_environment (char ** argv)
1312 /* FIXME: should use substring of get_emacs_configuration (). 1312 /* FIXME: should use substring of get_emacs_configuration ().
1313 But I don't think the Windows build supports alpha, mips etc 1313 But I don't think the Windows build supports alpha, mips etc
1314 anymore, so have taken the easy option for now. */ 1314 anymore, so have taken the easy option for now. */
1315 else if (p && stricmp (p, "\\i386") == 0) 1315 else if (p && xstrcasecmp (p, "\\i386") == 0)
1316 { 1316 {
1317 *p = 0; 1317 *p = 0;
1318 p = strrchr (modname, '\\'); 1318 p = strrchr (modname, '\\');
@@ -1320,7 +1320,7 @@ init_environment (char ** argv)
1320 { 1320 {
1321 *p = 0; 1321 *p = 0;
1322 p = strrchr (modname, '\\'); 1322 p = strrchr (modname, '\\');
1323 if (p && stricmp (p, "\\src") == 0) 1323 if (p && xstrcasecmp (p, "\\src") == 0)
1324 { 1324 {
1325 char buf[SET_ENV_BUF_SIZE]; 1325 char buf[SET_ENV_BUF_SIZE];
1326 1326
@@ -1652,7 +1652,7 @@ lookup_volume_info (char * root_dir)
1652 volume_info_data * info; 1652 volume_info_data * info;
1653 1653
1654 for (info = volume_cache; info; info = info->next) 1654 for (info = volume_cache; info; info = info->next)
1655 if (stricmp (info->root_dir, root_dir) == 0) 1655 if (xstrcasecmp (info->root_dir, root_dir) == 0)
1656 break; 1656 break;
1657 return info; 1657 return info;
1658} 1658}
@@ -1930,10 +1930,10 @@ is_exec (const char * name)
1930 char * p = strrchr (name, '.'); 1930 char * p = strrchr (name, '.');
1931 return 1931 return
1932 (p != NULL 1932 (p != NULL
1933 && (stricmp (p, ".exe") == 0 || 1933 && (xstrcasecmp (p, ".exe") == 0 ||
1934 stricmp (p, ".com") == 0 || 1934 xstrcasecmp (p, ".com") == 0 ||
1935 stricmp (p, ".bat") == 0 || 1935 xstrcasecmp (p, ".bat") == 0 ||
1936 stricmp (p, ".cmd") == 0)); 1936 xstrcasecmp (p, ".cmd") == 0));
1937} 1937}
1938 1938
1939/* Emulate the Unix directory procedures opendir, closedir, 1939/* Emulate the Unix directory procedures opendir, closedir,
@@ -2877,7 +2877,7 @@ stat (const char * path, struct stat * buf)
2877 if (dir_find_handle != INVALID_HANDLE_VALUE 2877 if (dir_find_handle != INVALID_HANDLE_VALUE
2878 && strnicmp (name, dir_pathname, len) == 0 2878 && strnicmp (name, dir_pathname, len) == 0
2879 && IS_DIRECTORY_SEP (name[len]) 2879 && IS_DIRECTORY_SEP (name[len])
2880 && stricmp (name + len + 1, dir_static.d_name) == 0) 2880 && xstrcasecmp (name + len + 1, dir_static.d_name) == 0)
2881 { 2881 {
2882 /* This was the last entry returned by readdir. */ 2882 /* This was the last entry returned by readdir. */
2883 wfd = dir_find_data; 2883 wfd = dir_find_data;
@@ -3103,10 +3103,10 @@ fstat (int desc, struct stat * buf)
3103#if 0 /* no way of knowing the filename */ 3103#if 0 /* no way of knowing the filename */
3104 char * p = strrchr (name, '.'); 3104 char * p = strrchr (name, '.');
3105 if (p != NULL && 3105 if (p != NULL &&
3106 (stricmp (p, ".exe") == 0 || 3106 (xstrcasecmp (p, ".exe") == 0 ||
3107 stricmp (p, ".com") == 0 || 3107 xstrcasecmp (p, ".com") == 0 ||
3108 stricmp (p, ".bat") == 0 || 3108 xstrcasecmp (p, ".bat") == 0 ||
3109 stricmp (p, ".cmd") == 0)) 3109 xstrcasecmp (p, ".cmd") == 0))
3110 permission |= S_IEXEC; 3110 permission |= S_IEXEC;
3111#endif 3111#endif
3112 } 3112 }
diff --git a/src/w32fns.c b/src/w32fns.c
index 77355a2c62f..9805afd119a 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -4993,16 +4993,16 @@ x_to_w32_weight (lpw)
4993{ 4993{
4994 if (!lpw) return (FW_DONTCARE); 4994 if (!lpw) return (FW_DONTCARE);
4995 4995
4996 if (stricmp (lpw, "heavy") == 0) return FW_HEAVY; 4996 if (xstrcasecmp (lpw, "heavy") == 0) return FW_HEAVY;
4997 else if (stricmp (lpw, "extrabold") == 0) return FW_EXTRABOLD; 4997 else if (xstrcasecmp (lpw, "extrabold") == 0) return FW_EXTRABOLD;
4998 else if (stricmp (lpw, "bold") == 0) return FW_BOLD; 4998 else if (xstrcasecmp (lpw, "bold") == 0) return FW_BOLD;
4999 else if (stricmp (lpw, "demibold") == 0) return FW_SEMIBOLD; 4999 else if (xstrcasecmp (lpw, "demibold") == 0) return FW_SEMIBOLD;
5000 else if (stricmp (lpw, "semibold") == 0) return FW_SEMIBOLD; 5000 else if (xstrcasecmp (lpw, "semibold") == 0) return FW_SEMIBOLD;
5001 else if (stricmp (lpw, "medium") == 0) return FW_MEDIUM; 5001 else if (xstrcasecmp (lpw, "medium") == 0) return FW_MEDIUM;
5002 else if (stricmp (lpw, "normal") == 0) return FW_NORMAL; 5002 else if (xstrcasecmp (lpw, "normal") == 0) return FW_NORMAL;
5003 else if (stricmp (lpw, "light") == 0) return FW_LIGHT; 5003 else if (xstrcasecmp (lpw, "light") == 0) return FW_LIGHT;
5004 else if (stricmp (lpw, "extralight") == 0) return FW_EXTRALIGHT; 5004 else if (xstrcasecmp (lpw, "extralight") == 0) return FW_EXTRALIGHT;
5005 else if (stricmp (lpw, "thin") == 0) return FW_THIN; 5005 else if (xstrcasecmp (lpw, "thin") == 0) return FW_THIN;
5006 else 5006 else
5007 return FW_DONTCARE; 5007 return FW_DONTCARE;
5008} 5008}
@@ -5057,7 +5057,7 @@ x_to_w32_charset (lpcs)
5057 if (NILP (this_entry)) 5057 if (NILP (this_entry))
5058 { 5058 {
5059 /* At startup, we want iso8859-1 fonts to come up properly. */ 5059 /* At startup, we want iso8859-1 fonts to come up properly. */
5060 if (stricmp (charset, "iso8859-1") == 0) 5060 if (xstrcasecmp (charset, "iso8859-1") == 0)
5061 return ANSI_CHARSET; 5061 return ANSI_CHARSET;
5062 else 5062 else
5063 return DEFAULT_CHARSET; 5063 return DEFAULT_CHARSET;
@@ -6483,7 +6483,7 @@ w32_query_font (struct frame *f, char *fontname)
6483 6483
6484 for (i = 0; i < one_w32_display_info.n_fonts ;i++, pfi++) 6484 for (i = 0; i < one_w32_display_info.n_fonts ;i++, pfi++)
6485 { 6485 {
6486 if (stricmp (pfi->name, fontname) == 0) return pfi; 6486 if (xstrcasecmp (pfi->name, fontname) == 0) return pfi;
6487 } 6487 }
6488 6488
6489 return NULL; 6489 return NULL;
diff --git a/src/w32proc.c b/src/w32proc.c
index f8837c847b9..3dce1e1f219 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -621,10 +621,10 @@ w32_executable_type (char * filename, int * is_dos_app, int * is_cygnus_app, int
621 p = strrchr (filename, '.'); 621 p = strrchr (filename, '.');
622 622
623 /* We can only identify DOS .com programs from the extension. */ 623 /* We can only identify DOS .com programs from the extension. */
624 if (p && stricmp (p, ".com") == 0) 624 if (p && xstrcasecmp (p, ".com") == 0)
625 *is_dos_app = TRUE; 625 *is_dos_app = TRUE;
626 else if (p && (stricmp (p, ".bat") == 0 626 else if (p && (xstrcasecmp (p, ".bat") == 0
627 || stricmp (p, ".cmd") == 0)) 627 || xstrcasecmp (p, ".cmd") == 0))
628 { 628 {
629 /* A DOS shell script - it appears that CreateProcess is happy to 629 /* A DOS shell script - it appears that CreateProcess is happy to
630 accept this (somewhat surprisingly); presumably it looks at 630 accept this (somewhat surprisingly); presumably it looks at
diff --git a/src/xfaces.c b/src/xfaces.c
index b797705c4a6..fca228e85df 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -798,11 +798,11 @@ x_free_gc (f, gc)
798 798
799#endif /* MAC_OS */ 799#endif /* MAC_OS */
800 800
801/* Like stricmp. Used to compare parts of font names which are in 801/* Like strcasecmp/stricmp. Used to compare parts of font names which
802 ISO8859-1. */ 802 are in ISO8859-1. */
803 803
804int 804int
805xstricmp (s1, s2) 805xstrcasecmp (s1, s2)
806 const unsigned char *s1, *s2; 806 const unsigned char *s1, *s2;
807{ 807{
808 while (*s1 && *s2) 808 while (*s1 && *s2)
@@ -1381,8 +1381,8 @@ face_color_supported_p (f, color_name, background_p)
1381#ifdef HAVE_WINDOW_SYSTEM 1381#ifdef HAVE_WINDOW_SYSTEM
1382 FRAME_WINDOW_P (f) 1382 FRAME_WINDOW_P (f)
1383 ? (!NILP (Fxw_display_color_p (frame)) 1383 ? (!NILP (Fxw_display_color_p (frame))
1384 || xstricmp (color_name, "black") == 0 1384 || xstrcasecmp (color_name, "black") == 0
1385 || xstricmp (color_name, "white") == 0 1385 || xstrcasecmp (color_name, "white") == 0
1386 || (background_p 1386 || (background_p
1387 && face_color_gray_p (f, color_name)) 1387 && face_color_gray_p (f, color_name))
1388 || (!NILP (Fx_display_grayscale_p (frame)) 1388 || (!NILP (Fx_display_grayscale_p (frame))
@@ -3564,13 +3564,13 @@ face_boolean_x_resource_value (value, signal_p)
3564 3564
3565 xassert (STRINGP (value)); 3565 xassert (STRINGP (value));
3566 3566
3567 if (xstricmp (SDATA (value), "on") == 0 3567 if (xstrcasecmp (SDATA (value), "on") == 0
3568 || xstricmp (SDATA (value), "true") == 0) 3568 || xstrcasecmp (SDATA (value), "true") == 0)
3569 result = Qt; 3569 result = Qt;
3570 else if (xstricmp (SDATA (value), "off") == 0 3570 else if (xstrcasecmp (SDATA (value), "off") == 0
3571 || xstricmp (SDATA (value), "false") == 0) 3571 || xstrcasecmp (SDATA (value), "false") == 0)
3572 result = Qnil; 3572 result = Qnil;
3573 else if (xstricmp (SDATA (value), "unspecified") == 0) 3573 else if (xstrcasecmp (SDATA (value), "unspecified") == 0)
3574 result = Qunspecified; 3574 result = Qunspecified;
3575 else if (signal_p) 3575 else if (signal_p)
3576 signal_error ("Invalid face attribute value from X resource", value); 3576 signal_error ("Invalid face attribute value from X resource", value);
@@ -3590,7 +3590,7 @@ DEFUN ("internal-set-lisp-face-attribute-from-resource",
3590 CHECK_SYMBOL (attr); 3590 CHECK_SYMBOL (attr);
3591 CHECK_STRING (value); 3591 CHECK_STRING (value);
3592 3592
3593 if (xstricmp (SDATA (value), "unspecified") == 0) 3593 if (xstrcasecmp (SDATA (value), "unspecified") == 0)
3594 value = Qunspecified; 3594 value = Qunspecified;
3595 else if (EQ (attr, QCheight)) 3595 else if (EQ (attr, QCheight))
3596 { 3596 {
@@ -4127,8 +4127,8 @@ lface_same_font_attributes_p (lface1, lface2)
4127{ 4127{
4128 xassert (lface_fully_specified_p (lface1) 4128 xassert (lface_fully_specified_p (lface1)
4129 && lface_fully_specified_p (lface2)); 4129 && lface_fully_specified_p (lface2));
4130 return (xstricmp (SDATA (lface1[LFACE_FAMILY_INDEX]), 4130 return (xstrcasecmp (SDATA (lface1[LFACE_FAMILY_INDEX]),
4131 SDATA (lface2[LFACE_FAMILY_INDEX])) == 0 4131 SDATA (lface2[LFACE_FAMILY_INDEX])) == 0
4132 && EQ (lface1[LFACE_HEIGHT_INDEX], lface2[LFACE_HEIGHT_INDEX]) 4132 && EQ (lface1[LFACE_HEIGHT_INDEX], lface2[LFACE_HEIGHT_INDEX])
4133 && EQ (lface1[LFACE_SWIDTH_INDEX], lface2[LFACE_SWIDTH_INDEX]) 4133 && EQ (lface1[LFACE_SWIDTH_INDEX], lface2[LFACE_SWIDTH_INDEX])
4134 && EQ (lface1[LFACE_WEIGHT_INDEX], lface2[LFACE_WEIGHT_INDEX]) 4134 && EQ (lface1[LFACE_WEIGHT_INDEX], lface2[LFACE_WEIGHT_INDEX])
@@ -4137,8 +4137,8 @@ lface_same_font_attributes_p (lface1, lface2)
4137 && (EQ (lface1[LFACE_FONTSET_INDEX], lface2[LFACE_FONTSET_INDEX]) 4137 && (EQ (lface1[LFACE_FONTSET_INDEX], lface2[LFACE_FONTSET_INDEX])
4138 || (STRINGP (lface1[LFACE_FONTSET_INDEX]) 4138 || (STRINGP (lface1[LFACE_FONTSET_INDEX])
4139 && STRINGP (lface2[LFACE_FONTSET_INDEX]) 4139 && STRINGP (lface2[LFACE_FONTSET_INDEX])
4140 && ! xstricmp (SDATA (lface1[LFACE_FONTSET_INDEX]), 4140 && ! xstrcasecmp (SDATA (lface1[LFACE_FONTSET_INDEX]),
4141 SDATA (lface2[LFACE_FONTSET_INDEX])))) 4141 SDATA (lface2[LFACE_FONTSET_INDEX]))))
4142 ); 4142 );
4143} 4143}
4144 4144
diff --git a/src/xfns.c b/src/xfns.c
index e1dcee62bba..875c1599fe5 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4010,7 +4010,7 @@ select_visual (dpyinfo)
4010 4010
4011 /* Determine the visual class. */ 4011 /* Determine the visual class. */
4012 for (i = 0; visual_classes[i].name; ++i) 4012 for (i = 0; visual_classes[i].name; ++i)
4013 if (xstricmp (s, visual_classes[i].name) == 0) 4013 if (xstrcasecmp (s, visual_classes[i].name) == 0)
4014 { 4014 {
4015 class = visual_classes[i].class; 4015 class = visual_classes[i].class;
4016 break; 4016 break;
diff --git a/src/xfont.c b/src/xfont.c
index af2665c567e..8483ae50792 100644
--- a/src/xfont.c
+++ b/src/xfont.c
@@ -206,7 +206,7 @@ extern Lisp_Object Vface_alternative_font_registry_alist;
206static int 206static int
207compare_font_names (const void *name1, const void *name2) 207compare_font_names (const void *name1, const void *name2)
208{ 208{
209 return xstricmp (*(const char **) name1, *(const char **) name2); 209 return xstrcasecmp (*(const char **) name1, *(const char **) name2);
210} 210}
211 211
212static Lisp_Object xfont_list_pattern P_ ((Lisp_Object, Display *, char *)); 212static Lisp_Object xfont_list_pattern P_ ((Lisp_Object, Display *, char *));
@@ -253,7 +253,7 @@ xfont_list_pattern (frame, display, pattern)
253 Lisp_Object entity; 253 Lisp_Object entity;
254 int result; 254 int result;
255 255
256 if (i > 0 && xstricmp (indices[i - 1], indices[i]) == 0) 256 if (i > 0 && xstrcasecmp (indices[i - 1], indices[i]) == 0)
257 continue; 257 continue;
258 258
259 entity = font_make_entity (); 259 entity = font_make_entity ();