From c69d873f31440e6887288d38a9d009451874efd8 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 1 Feb 2008 12:37:51 +0000 Subject: * string.h: Re-enable inline strcasematch and strncasematch implementations and rename to ascii_strcasematch/ascii_strncasematch. * dcrt0.cc: Replace str[n]casematch with ascii_str[n]casematch where applicable. * environ.cc: Ditto. * fhandler_process.cc: Ditto. * hookapi.cc: Ditto. * path.cc: Ditto. * spawn.cc: Ditto. * strace.cc: Ditto. * syscalls.cc: Ditto. * uinfo.cc: Ditto. * winf.cc: Ditto. --- winsup/cygwin/syscalls.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'winsup/cygwin/syscalls.cc') diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 32539aad2..1f5bc5fe5 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1459,8 +1459,8 @@ rename_append_suffix (path_conv &pc, const char *path, size_t len, { char buf[len + 5]; - if (strcasematch (path + len - 4, ".lnk") - || strcasematch (path + len - 4, ".exe")) + if (ascii_strcasematch (path + len - 4, ".lnk") + || ascii_strcasematch (path + len - 4, ".exe")) len -= 4; stpcpy (stpncpy (buf, path, len), suffix); pc.check (buf, PC_SYM_NOFOLLOW); @@ -1529,8 +1529,8 @@ rename (const char *oldpath, const char *newpath) goto out; } if (oldpc.known_suffix - && (strcasematch (oldpath + olen - 4, ".lnk") - || strcasematch (oldpath + olen - 4, ".exe"))) + && (ascii_strcasematch (oldpath + olen - 4, ".lnk") + || ascii_strcasematch (oldpath + olen - 4, ".exe"))) old_explicit_suffix = true; nlen = strlen (newpath); @@ -1559,8 +1559,8 @@ rename (const char *oldpath, const char *newpath) goto out; } if (newpc.known_suffix - && (strcasematch (newpath + nlen - 4, ".lnk") - || strcasematch (newpath + nlen - 4, ".exe"))) + && (ascii_strcasematch (newpath + nlen - 4, ".lnk") + || ascii_strcasematch (newpath + nlen - 4, ".exe"))) new_explicit_suffix = true; /* This test is necessary in almost every case, so just do it once here. */ -- cgit v1.2.3