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

ruby-changes:4142

From: ko1@a...
Date: Thu, 28 Feb 2008 22:22:55 +0900 (JST)
Subject: [ruby-changes:4142] naruse - Ruby:r15632 (trunk): * encoding.c (enc_capable): IMMEDIATE_P doesn't include Qnil and Qfalse.

naruse	2008-02-28 22:22:29 +0900 (Thu, 28 Feb 2008)

  New Revision: 15632

  Modified files:
    trunk/ChangeLog
    trunk/encoding.c

  Log:
    * encoding.c (enc_capable): IMMEDIATE_P doesn't include Qnil and Qfalse.
      use SPECIAL_CONST_P.

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15632&r2=15631&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/encoding.c?r1=15632&r2=15631&diff_format=u

Index: encoding.c
===================================================================
--- encoding.c	(revision 15631)
+++ encoding.c	(revision 15632)
@@ -535,7 +535,7 @@
 static inline int
 enc_capable(VALUE obj)
 {
-    if (IMMEDIATE_P(obj)) return Qfalse;
+    if (SPECIAL_CONST_P(obj)) return Qfalse;
     switch (BUILTIN_TYPE(obj)) {
       case T_STRING:
       case T_REGEXP:
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 15631)
+++ ChangeLog	(revision 15632)
@@ -1,3 +1,8 @@
+Thu Feb 28 22:19:14 2008  NARUSE, Yui  <naruse@r...>
+
+	* encoding.c (enc_capable): IMMEDIATE_P doesn't include Qnil and Qfalse.
+	  use SPECIAL_CONST_P.
+
 Thu Feb 28 19:45:52 2008  NARUSE, Yui  <naruse@r...>
 
 	* encoding.c (enc_find): check type of argument and convert to String

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

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