1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/tk/variable.rb: bug fix. additional trace definition changes the

option of first trace definition.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagai 2009-10-13 09:55:55 +00:00
parent 475bdfee7c
commit ba3abf209d
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Tue Oct 13 18:54:25 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* 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@ruby-lang.org>
* parse.y (token_info_push, token_info_pop): reduced ifdefs.

View file

@ -1375,7 +1375,7 @@ end
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 @@ end
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)