aboutsummaryrefslogtreecommitdiffstats
path: root/ext/tk
Commit message (Collapse)AuthorAgeFilesLines
* * ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb: fix method name typo.nagachika2016-03-071-1/+1
| | | | | | [ruby-core:72513] [Bug #11893] The patch provided by Akira Matsuda. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/tcllib/toolbar.rb: fix method name typo.nagachika2016-03-071-1/+1
| | | | | | [ruby-core:72511] [Bug #11891] The patch provided by Akira Matsuda. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/blt/tree.rb: fix method name typo.nagachika2016-03-071-1/+1
| | | | | | [ruby-core:72510] [Bug #11890] The patch provided by Akira Matsuda. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/menubar.rb: fix a typo in font name. [ruby-core:72505]nagachika2016-03-074-5/+5
| | | | | | | | [Bug #11886] The patch provided by Akira Matsuda. * ext/tk/sample/*.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* :warning: key "accelerator" is duplicated and overwritten in Tk samplesa_matsuda2015-12-285-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Missing requirea_matsuda2015-12-281-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parsedate is no more available since 1.9a_matsuda2015-12-282-8/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Convert euc-jp resource file in Tk sample to utf-8a_matsuda2015-12-281-5/+5
| | | | | | | The sample program assumes the file to be encoded in utf-8 https://github.com/ruby/ruby/blob/02531898987693bd28879c78b3cb660006891186/ext/tk/sample/tkoptdb.rb#L15-L17 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Documentation typoa_matsuda2015-12-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Method name typo in a Tk samplea_matsuda2015-12-271-1/+1
| | | | | | * ext/tk/sample/tkextlib/treectrl/help.rb: kength => length git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ivar name typo in a Tk samplea_matsuda2015-12-271-2/+2
| | | | | | * ext/tk/sample/tkextlib/treectrl/outlook-newgroup.rb: @Messge => @Message git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Method name typo in a Tk samplea_matsuda2015-12-271-1/+1
| | | | | | * ext/tk/sample/tktextio.rb: trancate => truncate git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ivar name typo in a Tk samplea_matsuda2015-12-271-1/+1
| | | | | | * ext/tk/sample/tktextio.rb: @opne => @open git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Typo in Tk samplesa_matsuda2015-12-272-8/+8
| | | | | | | * ext/tk/sample/demos-en/goldberg.rb: miliseconds => milliseconds * ext/tk/sample/demos-jp/goldberg.rb: miliseconds => milliseconds git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Method name typo in Tk samplesa_matsuda2015-12-272-2/+2
| | | | | | | * ext/tk/sample/demos-en/ctext.rb: seleect_adjust => select_adjust * ext/tk/sample/demos-jp/ctext.rb: seleect_adjust => select_adjust git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Typo in a Tk samplea_matsuda2015-12-271-3/+3
| | | | | | * ext/tk/sample/tkextlib/bwidget/tree.rb: allways => always git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Typo in a Tk samplea_matsuda2015-12-271-1/+1
| | | | | | * ext/tk/sample/demos-jp/mclist.rb: aquq => aqua git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Typo in a gvar namea_matsuda2015-12-271-1/+1
| | | | | | * ext/tk/sample/demos-jp/hscale.rb: $hscale_deom => $hscale_demo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Typo in Tk samplesa_matsuda2015-12-272-14/+14
| | | | | | | * ext/tk/sample/demos-en/ttkbut.rb: happyness => happiness * ext/tk/sample/demos-jp/ttkbut.rb: happyness => happiness git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Typos in messagesa_matsuda2015-12-2717-20/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Documentation typosa_matsuda2015-12-2746-76/+76
| | | | | | [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Typo: widget (?)a_matsuda2015-12-278-8/+8
| | | | | | | | | | | * ext/tk/lib/tk.rb: wiget => widget * ext/tk/sample/demos-en/{floor.rb,floor2.rb,puzzle.rb}: widet => widget * ext/tk/sample/demos-en/textpeer.rb: Wdget => widget * ext/tk/sample/demos-jp/puzzle.rb: widet => widget * ext/tk/sample/demos-jp/textpeer.rb: Wdget => widget * ext/tk/sample/tkextlib/bwidget/basic.rb: widtet => widget git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* doc/CangeLog-2.3.0, ext/tk/lib/txextlib/SUPPORT_STATUS,duerst2015-12-251-4/+4
| | | | | | include/ruby/version.h: minor grammar fixes [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix common misspelling [ci skip]nobu2015-12-246-6/+6
| | | | | | | * compile.c, cont.c, doc, man: fix common misspelling. [ruby-core:72466] [Bug #11870] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* handle ext/ as r53141naruse2015-12-16646-0/+646
| | | | | | | | g -L frozen_string_literal ext/**/*.rb|xargs ruby -Ka -e'ARGV.each{|fn|puts fn;open(fn,"r+"){|f|s=f.read.sub(/\A(#!.*\n)?(#.*coding.*\n)?/,"\\&# frozen_string_literal: false\n");f.rewind;f.write s}}' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkutil.c: check argnobu2015-12-131-0/+1
| | | | | | | * ext/tk/tkutil/tkutil.c (tk_hash_kv): check types of array argument. reported by Marcin 'Icewall' Noga of Cisco Talos. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkutil.c: array lengthnobu2015-12-131-8/+4
| | | | | | | | * ext/tk/tkutil/tkutil.c (cbsubst_table_setup): check length of argument arrays for each access, as callback methods can modify them. reported by Marcin 'Icewall' Noga of Cisco Talos. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkutil.c: check argsnobu2015-12-131-9/+18
| | | | | | | | * ext/tk/tkutil/tkutil.c (cbsubst_table_setup): check types of argument elements. reported by Marcin 'Icewall' Noga of Cisco Talos. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: fix typos.hsbt2015-12-101-3/+3
| | | | | | [Bug #11764][ruby-core:71800] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext: use RARRAY_ASETnobu2015-11-052-5/+5
| | | | | | | | | * ext/socket/socket.c (make_addrinfo): use RARRAY_ASET for write-barrier. * ext/tk/tcltklib.c ({call,eval,invoke}_queue_handler): ditto. * ext/tk/tkutil/tkutil.c (ary2list, ary2list2): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk: RARRAY_AREFnobu2015-11-052-0/+6
| | | | | | | * ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c (RARRAY_AREF): add fallback definition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext: use RARRAY_AREFnobu2015-11-052-33/+33
| | | | | | | | * ext/**/*.c: prefer RARRAY_AREF to indexing RARRAY_CONST_PTR. pointed out by hanmac. https://github.com/ruby/ruby/commit/3553a86#commitcomment-14187670 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkutil.c: rb_ary_catnobu2015-11-042-8/+21
| | | | | | | * ext/tk/tkutil/tkutil.c (rb_ary_cat): fallback definition. rb_ary_cat() is available since 2.0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkutil.c: strndupnobu2015-11-041-9/+18
| | | | | | * ext/tk/tkutil/tkutil.c (strndup): fallback definition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext: use RARRAY_CONST_PTRnobu2015-11-042-46/+55
| | | | | | | * ext/bigdecimal/bigdecimal.c: use RARRAY_CONST_PTR just fore reference instead of RARRAY_PTR, to keep the array WB-protected. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tcltklib.c: basenamenobu2015-10-312-1/+9
| | | | | | | * ext/tk/tcltklib.c (setup_rubytkkit): use ruby_enc_find_basename if available, instead of File.basename. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tcltklib.c: GC guardnobu2015-10-311-1/+2
| | | | | | | * ext/tk/tcltklib.c (setup_rubytkkit): add GC guard instead of volatile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c: Good-by Borland-C.kosaki2015-10-181-1/+1
| | | | | | | | | | | | | | | | * include/ruby/backward/rubyio.h: ditto. * include/ruby/backward/st.h: ditto. * include/ruby/backward/util.h: ditto. * include/ruby/backward/rubysig.h: ditto. * include/ruby/backward/classext.h: ditto. * dln.c: ditto. * gc.c: ditto. * win32/resource.rb: ditto. * win32/dir.h: ditto. * ext/tk/tcltklib.c: ditto. * NEWS: announce that Borland-C is no longer supported. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkutil.c: use local variablesnobu2015-09-271-5/+6
| | | | | | | * ext/tk/tkutil/tkutil.c (cbsubst_table_setup): use local variables instead of repeating RARRAY_PTR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/tk: remove $SAFE 2..4 codenobu2015-09-2411-83/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tcltklib.c: check argumentnobu2015-08-021-1/+2
| | | | | | | * ext/tk/tcltklib.c (ip_cancel_eval_core): check argument type and length. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: removed deprecated safe level.hsbt2015-07-061-9/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkutil.c: fix out-of-bounds accessnobu2015-06-011-0/+1
| | | | | | | * ext/tk/tkutil/tkutil.c (cbsubst_table_setup): check array length not access out-of-bounds. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkutil.c: fix memory leak and segfaultnobu2015-05-311-79/+50
| | | | | | | | | | | | | | | | | | | | | | * ext/tk/tkutil/tkutil.c (cbsubst_append_inf_key): extract a function append a key in subst info to a string. make result strings first and get rid of potential memory leak. * ext/tk/tkutil/tkutil.c (cbsubst_get_subst_arg): allocate the result buffer as a string to fix: * memory leak when the argument key is not found: loop {Tk::Event.subst_arg(:a) rescue nil} * buffer overflow segfault when many arguments: class T < TkUtil::CallbackSubst _setup_subst_table([[?a, ?A, :_a]], []) subst_arg(*[:_a]*1000).size end git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkutil.c: reduce unnecessary buffernobu2015-05-311-2/+2
| | | | | | | * ext/tk/tkutil/tkutil.c (cbsubst_get_subst_key): reduce unnecessary buffer. the result string is one byte per one word. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tcltklib.c: allocate structs with wrappernobu2015-05-282-5/+9
| | | | | | | | | * ext/tk/tcltklib.c (ip_create_slave_core): allocate structs with making new wrapper objects and get rid of potential memory leak. * ext/tk/tkutil/tkutil.c (allocate_cbsubst_info): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkutil.c: check arguments typenobu2015-05-281-5/+7
| | | | | | | | | | | | * ext/tk/tkutil/tkutil.c (cbsubst_get_subst_key): check arguments type. implicit conversion is disabled to get rid of method calls which can modify other arguments. * ext/tk/tkutil/tkutil.c (cbsubst_table_setup): ditto. * ext/tk/tkutil/tkutil.c (cbsubst_scan_args): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkutil.c: check typenobu2015-05-281-0/+1
| | | | | | | | * ext/tk/tkutil/tkutil.c (cbsubst_get_subst_key): ensure the result type of a method call to be an array before accessing by RARRAY macros. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix typo in samples for tk ext [skip ci]nobu2015-05-272-2/+2
| | | | | | | | * ext/tk/sample/figmemo_sample.rb (open_file), ext/tk/sample/tktextio.rb (TkTextIO): fix typo in messages. [Fix GH-916] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tcltklib.c: fix memory leaknobu2015-05-271-0/+3
| | | | | | | * ext/tk/tcltklib.c (ip_init): reject already initialized interpreter to fix memory leak. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e