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

ruby-changes:24062

From: nobu <ko1@a...>
Date: Sat, 16 Jun 2012 18:32:01 +0900 (JST)
Subject: [ruby-changes:24062] nobu:r36113 (trunk): eval.c: move running

nobu	2012-06-16 18:31:50 +0900 (Sat, 16 Jun 2012)

  New Revision: 36113

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

  Log:
    eval.c: move running
    
    * eval.c (ruby_setup): set running state in the normal case before
      popping a tag.

  Modified files:
    trunk/ChangeLog
    trunk/eval.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36112)
+++ ChangeLog	(revision 36113)
@@ -1,3 +1,8 @@
+Sat Jun 16 18:31:46 2012  Nobuyoshi Nakada  <nobu@r...>
+
+	* eval.c (ruby_setup): set running state in the normal case before
+	  popping a tag.
+
 Sat Jun 16 07:46:03 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): format workers
Index: eval.c
===================================================================
--- eval.c	(revision 36112)
+++ eval.c	(revision 36113)
@@ -53,10 +53,10 @@
     if ((state = EXEC_TAG()) == 0) {
 	rb_call_inits();
 	ruby_prog_init();
+	GET_VM()->running = 1;
     }
     POP_TAG();
 
-    if (!state) GET_VM()->running = 1;
     return state;
 }
 

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

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