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

ruby-changes:11501

From: nobu <ko1@a...>
Date: Fri, 3 Apr 2009 13:52:57 +0900 (JST)
Subject: [ruby-changes:11501] Ruby:r23127 (ruby_1_8): ------------------------------------------------------------------------

nobu	2009-04-03 13:52:48 +0900 (Fri, 03 Apr 2009)

  New Revision: 23127

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23127

  Log:
    ------------------------------------------------------------------------
    r15996 | nobu | 2008-04-14 12:52:27 +0900 (Mon, 14 Apr 2008) | 2 lines
    * gc.c (Init_stack): use ruby_init_stack.  [ruby-dev:34350]
    
    ------------------------------------------------------------------------
    ------------------------------------------------------------------------
    r17036 | nobu | 2008-06-09 09:54:23 +0900 (Mon, 09 Jun 2008) | 2 lines
    
    * include/ruby/intern.h (Init_stack): make to call ruby_init_stack.
    
    ------------------------------------------------------------------------

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/eval.c

Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 23126)
+++ ruby_1_8/ChangeLog	(revision 23127)
@@ -1,3 +1,18 @@
+Fri Apr  3 13:52:47 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	------------------------------------------------------------------------
+	r15996 | nobu | 2008-04-14 12:52:27 +0900 (Mon, 14 Apr 2008) | 2 lines
+
+	* gc.c (Init_stack): use ruby_init_stack.  [ruby-dev:34350]
+
+	------------------------------------------------------------------------
+	------------------------------------------------------------------------
+	r17036 | nobu | 2008-06-09 09:54:23 +0900 (Mon, 09 Jun 2008) | 2 lines
+
+	* include/ruby/intern.h (Init_stack): make to call ruby_init_stack.
+
+	------------------------------------------------------------------------
+
 Fri Apr  3 12:46:19 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/extmk.rb: quotes arguments with spaces always.
Index: ruby_1_8/eval.c
===================================================================
--- ruby_1_8/eval.c	(revision 23126)
+++ ruby_1_8/eval.c	(revision 23127)
@@ -656,7 +656,7 @@
     ID noex;
 {
     NODE *body;
-    VALUE origin;
+    VALUE origin = 0;
 
     if (klass == rb_cObject) {
 	rb_secure(4);
@@ -2405,6 +2405,7 @@
     char *buf;
 {
     VALUE val;			/* OK */
+    volatile VALUE vval;
     int state;
 
   again:
@@ -2434,13 +2435,14 @@
       case NODE_CALL:
 	PUSH_TAG(PROT_NONE);
 	if ((state = EXEC_TAG()) == 0) {
-	    val = rb_eval(self, node->nd_recv);
+	    vval = rb_eval(self, node->nd_recv);
 	}
 	POP_TAG();
 	if (state) {
 	    ruby_errinfo = Qnil;
 	    return 0;
 	}
+	val = vval;
       check_bound:
 	{
 	    int call = nd_type(node)==NODE_CALL;
@@ -2536,7 +2538,7 @@
       case NODE_COLON2:
 	PUSH_TAG(PROT_NONE);
 	if ((state = EXEC_TAG()) == 0) {
-	    val = rb_eval(self, node->nd_head);
+	    vval = rb_eval(self, node->nd_head);
 	}
 	POP_TAG();
 	if (state) {
@@ -2544,6 +2546,7 @@
 	    return 0;
 	}
 	else {
+	    val = vval;
 	    switch (TYPE(val)) {
 	      case T_CLASS:
 	      case T_MODULE:

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

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