ruby-changes:13030
From: ko1 <ko1@a...>
Date: Mon, 7 Sep 2009 05:08:16 +0900 (JST)
Subject: [ruby-changes:13030] Ruby:r24775 (trunk): * vm_insnhelper.c: rename macro name ENABLE_IC_FOR_IVAR
ko1 2009-09-07 05:08:00 +0900 (Mon, 07 Sep 2009) New Revision: 24775 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24775 Log: * vm_insnhelper.c: rename macro name ENABLE_IC_FOR_IVAR to USE_IC_FOR_IVAR. Modified files: trunk/ChangeLog trunk/vm_insnhelper.c Index: ChangeLog =================================================================== --- ChangeLog (revision 24774) +++ ChangeLog (revision 24775) @@ -1,3 +1,8 @@ +Mon Sep 7 05:06:16 2009 Koichi Sasada <ko1@a...> + + * vm_insnhelper.c: rename macro name ENABLE_IC_FOR_IVAR + to USE_IC_FOR_IVAR. + Mon Sep 7 03:21:40 2009 NARUSE, Yui <naruse@r...> * lib/uri/common.rb (URI.escape): obsoleted. Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 24774) +++ vm_insnhelper.c (revision 24775) @@ -1183,14 +1183,14 @@ } -#ifndef ENABLE_IC_FOR_IVAR -#define ENABLE_IC_FOR_IVAR 1 +#ifndef USE_IC_FOR_IVAR +#define USE_IC_FOR_IVAR 1 #endif static VALUE vm_getivar(VALUE obj, ID id, IC ic) { -#if ENABLE_IC_FOR_IVAR +#if USE_IC_FOR_IVAR if (TYPE(obj) == T_OBJECT) { VALUE val = Qundef; VALUE klass = RBASIC(obj)->klass; @@ -1237,7 +1237,7 @@ static void vm_setivar(VALUE obj, ID id, VALUE val, IC ic) { -#if ENABLE_IC_FOR_IVAR +#if USE_IC_FOR_IVAR if (!OBJ_UNTRUSTED(obj) && rb_safe_level() >= 4) { rb_raise(rb_eSecurityError, "Insecure: can't modify instance variable"); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/