aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog11
-rw-r--r--LEGAL2
-rw-r--r--configure.in2
-rw-r--r--missing/strcasecmp.c15
-rw-r--r--missing/strncasecmp.c19
5 files changed, 12 insertions, 37 deletions
diff --git a/ChangeLog b/ChangeLog
index 7d36c09cfd..c77ccde53a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+Wed Jan 2 11:34:57 2008 Tanaka Akira <akr@fsij.org>
+
+ * missing/strcasecmp.c: removed. Ruby don't use locale dependent
+ strcasecmp.
+
+ * missing/strncasecmp.c: ditto.
+
+ * configure.in: don't check strcasecmp and strncasecmp.
+
+ * LEGAL: missing/strcasecmp.c and missing/strncasecmp.c removed.
+
Wed Jan 2 10:13:54 2008 Tadayoshi Funaba <tadf@dotrb.org>
* sample/time.rb: use Process.times instead of Time.times.
diff --git a/LEGAL b/LEGAL
index 00db893d8d..f882dbd442 100644
--- a/LEGAL
+++ b/LEGAL
@@ -148,11 +148,9 @@ missing/isinf.c:
missing/isnan.c:
missing/memcmp.c:
missing/memmove.c:
-missing/strcasecmp.c:
missing/strchr.c:
missing/streror.c:
missing/strftime.c:
-missing/strncasecmp.c:
missing/strstr.c:
missing/strtol.c:
ext/digest/sha1/sha1.[ch]:
diff --git a/configure.in b/configure.in
index 26fc824ee8..a3018d6660 100644
--- a/configure.in
+++ b/configure.in
@@ -632,7 +632,7 @@ powerpc-darwin*)
;;
esac
AC_FUNC_MEMCMP
-AC_REPLACE_FUNCS(dup2 memmove strcasecmp strncasecmp strerror strftime\
+AC_REPLACE_FUNCS(dup2 memmove strerror strftime\
strchr strstr strtoul crypt flock vsnprintf\
isnan finite isinf hypot acosh erf strlcpy strlcat)
AC_CHECK_FUNCS(fmod killpg wait4 waitpid fork spawnv syscall chroot fsync getcwd eaccess\
diff --git a/missing/strcasecmp.c b/missing/strcasecmp.c
deleted file mode 100644
index 1ce20704c1..0000000000
--- a/missing/strcasecmp.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* public domain rewrite of strcasecmp(3) */
-
-#include <ctype.h>
-
-int
-strcasecmp(const char *p1, const char *p2)
-{
- while (*p1 && *p2) {
- if (toupper(*p1) != toupper(*p2))
- return toupper(*p1) - toupper(*p2);
- p1++;
- p2++;
- }
- return strlen(p1) - strlen(p2);
-}
diff --git a/missing/strncasecmp.c b/missing/strncasecmp.c
deleted file mode 100644
index 59d4477a40..0000000000
--- a/missing/strncasecmp.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* public domain rewrite of strncasecmp(3) */
-
-#include <ctype.h>
-#include <stddef.h>
-
-int
-strncasecmp(const char *p1, const char *p2, size_t len)
-{
- while (len != 0) {
- if (toupper(*p1) != toupper(*p2)) {
- return toupper(*p1) - toupper(*p2);
- }
- if (*p1 == '\0') {
- return 0;
- }
- len--; p1++; p2++;
- }
- return 0;
-}