ruby-changes:3354
From: ko1@a...
Date: 2 Jan 2008 11:37:16 +0900
Subject: [ruby-changes:3354] akr - Ruby:r14847 (trunk): * missing/strcasecmp.c: removed. Ruby don't use locale dependent
akr 2008-01-02 11:36:58 +0900 (Wed, 02 Jan 2008) New Revision: 14847 Removed files: trunk/missing/strcasecmp.c trunk/missing/strncasecmp.c Modified files: trunk/ChangeLog trunk/LEGAL trunk/configure.in Log: * 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. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/missing/strcasecmp.c http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14847&r2=14846&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/configure.in?r1=14847&r2=14846&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/LEGAL?r1=14847&r2=14846&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/missing/strncasecmp.c Index: LEGAL =================================================================== --- LEGAL (revision 14846) +++ LEGAL (revision 14847) @@ -148,11 +148,9 @@ 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]: Index: configure.in =================================================================== --- configure.in (revision 14846) +++ configure.in (revision 14847) @@ -632,7 +632,7 @@ ;; 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\ Index: ChangeLog =================================================================== --- ChangeLog (revision 14846) +++ ChangeLog (revision 14847) @@ -1,3 +1,14 @@ +Wed Jan 2 11:34:57 2008 Tanaka Akira <akr@f...> + + * 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@d...> * sample/time.rb: use Process.times instead of Time.times. Index: missing/strcasecmp.c =================================================================== --- missing/strcasecmp.c (revision 14846) +++ missing/strcasecmp.c (revision 14847) @@ -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); -} Index: missing/strncasecmp.c =================================================================== --- missing/strncasecmp.c (revision 14846) +++ missing/strncasecmp.c (revision 14847) @@ -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; -} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml