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

ruby-changes:13542

From: nagai <ko1@a...>
Date: Tue, 13 Oct 2009 18:56:09 +0900 (JST)
Subject: [ruby-changes:13542] Ruby:r25320 (trunk): * ext/tk/variable.rb: bug fix. additional trace definition changes the

nagai	2009-10-13 18:55:55 +0900 (Tue, 13 Oct 2009)

  New Revision: 25320

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

  Log:
    * ext/tk/variable.rb: bug fix. additional trace definition changes the
      option of first trace definition.

  Modified files:
    trunk/ChangeLog
    trunk/ext/tk/lib/tk/variable.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25319)
+++ ChangeLog	(revision 25320)
@@ -1,3 +1,8 @@
+Tue Oct 13 18:54:25 2009  Hidetoshi NAGAI  <nagai@a...>
+
+	* ext/tk/variable.rb: bug fix. additional trace definition changes the
+	  option of first trace definition.
+
 Tue Oct 13 18:23:17 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (token_info_push, token_info_pop): reduced ifdefs.
Index: ext/tk/lib/tk/variable.rb
===================================================================
--- ext/tk/lib/tk/variable.rb	(revision 25319)
+++ ext/tk/lib/tk/variable.rb	(revision 25320)
@@ -1375,7 +1375,7 @@
 
     if @trace_opts == nil
       TkVar_CB_TBL[@id] = self
-      @trace_opts = opts
+      @trace_opts = opts.dup
       if USE_OLD_TRACE_OPTION_STYLE
         Tk.tk_call_without_enc('trace', 'variable',
                                @id, @trace_opts, 'rb_var ' << @id)
@@ -1421,7 +1421,7 @@
 
     if @trace_opts == nil
       TkVar_CB_TBL[@id] = self
-      @trace_opts = opts
+      @trace_opts = opts.dup
       if USE_OLD_TRACE_OPTION_STYLE
         Tk.tk_call_without_enc('trace', 'add', 'variable',
                                @id, @trace_opts, 'rb_var ' << @id)

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

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