[前][次][番号順一覧][スレッド一覧]

ruby-changes:3362

From: ko1@a...
Date: 3 Jan 2008 02:48:39 +0900
Subject: [ruby-changes:3362] akr - Ruby:r14855 (trunk): * bignum.c (conv_digit): use ISDIGIT, ISLOWER and ISUPPER.

akr	2008-01-03 02:48:20 +0900 (Thu, 03 Jan 2008)

  New Revision: 14855

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c

  Log:
    * bignum.c (conv_digit): use ISDIGIT, ISLOWER and ISUPPER.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14855&r2=14854&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bignum.c?r1=14855&r2=14854&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14854)
+++ ChangeLog	(revision 14855)
@@ -1,3 +1,7 @@
+Thu Jan  3 02:44:34 2008  Tanaka Akira  <akr@f...>
+
+	* bignum.c (conv_digit): use ISDIGIT, ISLOWER and ISUPPER.
+
 Wed Jan  2 23:50:15 2008  Tanaka Akira  <akr@f...>
 
 	* util.c (ruby_strtoul): "0x", "+" and "-" is not a valid integer.
Index: bignum.c
===================================================================
--- bignum.c	(revision 14854)
+++ bignum.c	(revision 14855)
@@ -380,9 +380,9 @@
 
 #define conv_digit(c) \
     (!ISASCII(c) ? -1 : \
-     isdigit(c) ? ((c) - '0') : \
-     islower(c) ? ((c) - 'a' + 10) : \
-     isupper(c) ? ((c) - 'A' + 10) : \
+     ISDIGIT(c) ? ((c) - '0') : \
+     ISLOWER(c) ? ((c) - 'a' + 10) : \
+     ISUPPER(c) ? ((c) - 'A' + 10) : \
      -1)
 
     if (!str) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]