aboutsummaryrefslogtreecommitdiffstats
path: root/ext/tk
Commit message (Collapse)AuthorAgeFilesLines
* tk/extconf.rb: refactornobu2016-04-251-20/+13
| | | | | | | | | | | * ext/tk/extconf.rb (collect_tcltk_defs): split by -D at the beginning or preceded by a space. exclude empty strings from $defs. * ext/tk/extconf.rb: test if value is set and has non-blank by matching /\S/ at once. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk: suppress progress indicatorsnobu2016-04-221-1/+1
| | | | | | | * ext/tk/extconf.rb: hack to disable progress indicators with parallel build, not to interleave other messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkutil.c: ary can be nilnobu2016-04-141-1/+1
| | | | | | | | * ext/tk/tkutil/tkutil.c (tk_hash_kv): the third argument can be nil not only an Array. reported by @windwiny at https://github.com/ruby/ruby/commit/cdaa94e#commitcomment-17096618 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/tk/extconf.rb: add newlinenobu2016-04-091-9/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk/extconf.rb: progressnobu2016-04-081-13/+22
| | | | | | | * ext/tk/extconf.rb (progress): print progress messages only if Logging is quiet. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk/extconf.rb: outdated checksnobu2016-04-082-10/+0
| | | | | | | | | | | * ext/tk/extconf.rb: remove outdated checks. * ext/tk/tcltklib.c (ip_ruby_cmd): remove longstanding dead code. ptr and len in RArray were till 1.8 and have_struct_member of 1.8 does not set HAVE_<stuct_name>_<member_name> but only HAVE_ST_<member_name>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkutil.c: fix overrunnobu2016-04-071-5/+7
| | | | | | | * ext/tk/tkutil/tkutil.c (cbsubst_initialize): fix out-of-bound access when no arguments given. `p Tk::Event.new` crashed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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