summaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* * ext/tk/lib/tk/variable.rb: forget to initialize instance_variablesnagai2004-11-041-0/+7
| | | | | | | of TkVarAccess objects git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_mark): enable GC stack checking.matz2004-11-042-8/+7
| | | | | | | | | | | | | | | | | | | | * string.c (str_gsub): lock strings temporarily. [ruby-dev:24687] * ext/socket/socket.c (s_recvfrom): tmplock input buffer. [ruby-dev:24705] * array.c (rb_ary_uniq_bang): do not push frozen string from hash table. [ruby-dev:24695] * array.c (rb_ary_and): ditto. * array.c (rb_ary_or): ditto. * ext/enumerator/enumerator.c (each_cons_i): pass copy of an internal consequent array. [ruby-talk:118691] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: support to use different Tcl commands betweennagai2004-11-0314-47/+89
| | | | | | | | | | | | | configure and configinfo * ext/tk/lib/font.rb: ditto. * ext/tk/lib/itemconfig.rb: support to use different Tcl commands between item_configure and item_configinfo * ext/tk/lib/itemfont.rb: ditto. * ext/tk/extconf.rb: install SUPPORT_STATUS * ext/tk/lib/tkextlib: some bug fixes (see ext/tk/ChangeLog.tkextlib) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * follow nkf 2.0.4naruse2004-11-035-2048/+780
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * MANIFEST, ext/**/MANIFEST: removed.eban2004-11-0131-1026/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (MANIFEST): do not use anymore, use extconf.rb instead.eban2004-11-011-2/+2
| | | | | | | | * ext/enumerator/extconf.rb, ext/fcntl/extconf.rb, ext/stringio/extconf.rb: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2004-11-016-0/+9431
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_locktmp): lock string temporarily.matz2004-10-301-2/+2
| | | | | | | | | | | | | | * string.c (str_independent): add tmplock check. * io.c (io_write): lock output string temporarily. [ruby-dev:24649] * io.c (io_write): use rb_str_locktmp(). * io.c (read_all): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* some typo fixed.suke2004-10-302-46/+46
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (zstream_detach_input): resets klass of z->input ifakira2004-10-281-1/+7
| | | | | | | z->input isn't nil. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: prefer relative path. [ruby-talk:93037]nobu2004-10-281-2/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (RESIZE_CAPA): check string attribute before modifyingmatz2004-10-271-10/+29
| | | | | | | | | | | | | | | | | | | | | | | | | capacity member of string structure. [ruby-dev:24594] * ext/zlib/zlib.c (gzreader_gets): use memchr() to to gain performance. [ruby-talk:117701] * sprintf.c (rb_f_sprintf): raise ArgumentError for extra arguments, unless (digit)$ style used. * ext/zlib/zlib.c (gzreader_gets): use memchr() to to gain performance. [ruby-talk:117701] * sprintf.c (rb_f_sprintf): raise ArgumentError for extra arguments, unless (digit)$ style used. * eval.c (frame_free): Guy Decoux solved the leak problem. Thanks. [ruby-core:03549] * ext/zlib/zlib.c (zstream_append_input): clear klass for z->input to avoid potential vulnerability. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/sample/tkextlib/bwidget/tree.rb: bug fixnagai2004-10-242-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use NUM2INT to convert short values.ttate2004-10-231-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (zstream_shift_buffer): should restore classmatz2004-10-211-1/+5
| | | | | | | | | | | | | field of a buffer. [ruby-dev:24562] * eval.c (rb_alias): should warn on method discarding. [ruby-dev:24546] * ext/zlib/zlib.c (zstream_expand_buffer_into): hide internal string buffer by clearing klass. [ruby-dev:24548] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_gsub): reentrant check. [ruby-dev:24432]matz2004-10-204-5/+10
| | | | | | | * backport all SEGV bug fixes from CVS HEAD. [ruby-dev:24536] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2004-10-191-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole.c(ole_invoke): retrieve the result value whensuke2004-10-191-3/+5
| | | | | | | retrying the IDispatch::invoke. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (read_all): block string buffer modification duringmatz2004-10-195-15/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_io_fread() by freezing it temporarily. [ruby-dev:24479] * dir.c (rb_push_glob): block call at once the end of method. [ruby-dev:24487] * ext/enumerator/enumerator.c (enum_each_slice): remove rb_gc_force_recycle() to prevent potential SEGV. [ruby-dev:24499] * ext/zlib/zlib.c (zstream_expand_buffer): hide internal string buffer by clearing klass. [ruby-dev:24510] * ext/socket/socket.c (sock_s_getservbyaname): protocol string might be altered. [ruby-dev:24503] * string.c (rb_str_upto): check if return value from succ is a string. [ruby-dev:24504] * io.c (rb_io_popen): get mode string via rb_io_flags_mode() to avoid mode string modification. [ruby-dev:24454] * io.c (rb_io_getline_fast): should take delim as unsigned char to distinguish EOF and '\377'. [ruby-dev:24460] * io.c (rb_io_getline): add check for RS modification. [ruby-dev:24461] * enum.c (enum_sort_by): use qsort() directly instead using rb_iterate(). [ruby-dev:24462] * enum.c (enum_each_with_index): remove rb_gc_force_recycle() to prevent access to recycled object (via continuation for example). [ruby-dev:24463] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tkutil.c: backport from CVS HEADnagai2004-10-191-13/+30
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/MANIFEST: add lib/tkextlib/tcllib/ico.rb.eban2004-10-181-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/timer.rb: TkTimer#start and restart accept a blocknagai2004-10-171-5/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (fole_func_methods): correct argument mismatch.suke2004-10-172-14/+22
| | | | | | | | | | * ext/win32ole/win32ole.c (fole_get_methods): ditto. * ext/win32ole/win32ole.c (fole_put_methods): ditto. * ext/win32ole/tests/testWIN32OLE.rb: add test for WIN32OLE#ole_func_methods WIN32OLE#ole_get_methods, WIN32OLE#ole_put_methods git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/tcllib: based on Tcllib 1.7nagai2004-10-163-0/+118
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/timer.rb: TkTimer.new(interval, loop){ ... } is acceptable.nagai2004-10-151-14/+37
| | | | | | | Add TkTimer.start ( == new + start ). git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/*: untabifynagai2004-10-11295-13878/+13907
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/optiondb.rb: make it more securenagai2004-10-071-21/+34
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/scrollbar.rb: When 'set' operation, a scrollbar cannotnagai2004-10-071-2/+11
| | | | | | | | propagate view port information from the source widget (that calls 'set') to other assigned widgets. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: When CHILDKILLED and so on, Tk.errorCode returnsnagai2004-10-071-1/+10
| | | | | | | a Fixnum for 2nd element (it's pid) of the return value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c: use FMODE_APPEND.nobu2004-10-061-5/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: add Tk.errorInfo and Tk.errorCodenagai2004-10-064-2/+18
| | | | | | | * ext/tk/lib/tkextlib/bwidget.rb: bug fix git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/image.rb: bug fixnagai2004-10-045-1/+83
| | | | | | | * ext/tk/lib/tk/optiondb.rb: support definition of command resources on widgets git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_sum): check was done with false pointer.matz2004-10-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | [ruby-dev:24383] * string.c (rb_str_sum): string may be altered. [ruby-dev:24381] * eval.c (rb_f_eval): defer pointer retrieval to prevent unsafe sourcefile string modification. [ruby-dev:24373] * io.c (io_read): block string buffer modification during rb_io_fread() by freezing it temporarily. [ruby-dev:24366] * io.c (rb_io_s_popen): mode argument may be altered. [ruby-dev:24375] * file.c (rb_file_s_basename): ext argument may be altered. [ruby-dev:24377] * enum.c (enum_sort_by): use NODE instead of 2 element arrays. [ruby-dev:24378] * string.c (rb_str_chomp_bang): StringValue() may change the receiver. [ruby-dev:24371] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/grid.rb: revive TkGrid.gridnagai2004-10-013-3/+6
| | | | | | | | * ext/tk/lib/tk/pack.rb: revive TkPack.pack * ext/tk/lib/tk/place.rb: revive TkPlace.place git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c (ip_init): bug fixnagai2004-09-297-10/+122
| | | | | | | | | | * ext/tk/tkutil.c (get_eval_string_core): accept a Regexp object * ext/tk/lib/multi-tk.rb: fix bug on 'exit' operation * ext/tk/lib/tk/text.rb: 'tksearch' accepts a Regexp object as a matting pattern argument git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merged from HEAD.ttate2004-09-272-11/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_equal): element size might change duringmatz2004-09-181-7/+7
| | | | | | | | | | | | | | | | | | | | | | | comparison. [ruby-dev:24254] * array.c (rb_ary_diff): ditto. [ruby-dev:24274] * array.c (rb_ary_select): ditto. [ruby-dev:24278] * array.c (rb_ary_delete): ditto. [ruby-dev:24283] * array.c (rb_ary_rindex): ditto. [ruby-dev:24275] * array.c (rb_ary_initialize): element size might change during initializing block. [ruby-dev:24284] * dir.c (dir_s_chdir): avoid memory leak and unnecessary chdir to the original directory when exception has caused in changing direcotry or within block. thanks to Johan Holmberg <holmberg@iar.se> [ruby-core:03446] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: improve exit operationnagai2004-09-171-55/+67
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c: fix SEGV when (thread_)vwait or (thread_)tkwaitnagai2004-09-176-208/+570
| | | | | | | | | | | | * ext/tk/lib/tk.rb: add alias wait_window to wait_destroy * ext/tk/lib/multi-tk.rb: support calling 'mainloop' on slave interpreters (however, the 'real' eventloop must be run on the Default Master IP) * ext/tk/lib/remote-tk.rb: follow the changes of ext/tk/lib/multi-tk.rb * ext/tk/sample/remote-ip_sample2.rb: ditto * ext/tk/sample/tkoptdb-safeTk.rb: ditto git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkoptdb-safeTk.rb: fix a bug depend on the changes of MultiTkIpnagai2004-09-151-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string was en-bugged by thenagai2004-09-142-16/+44
| | | | | | | previous changes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c: fix SEGVnagai2004-09-145-116/+252
| | | | | | | | | * ext/tk/lib/multi-tk.rb: improve safe-level handling of argument proc * ext/tk/sample/multi-ip_sample.rb: rename of old 'safe-tk.rb' * ext/tk/sample/safe-tk.rb: new sample script git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c: backported from HEAD.eban2004-09-131-20/+33
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: MultiTkIp.new_master and new_slave acceptnagai2004-09-132-21/+76
| | | | | | | safe-level value argument git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c: improve control of preserv/release tcltkipnagai2004-09-122-44/+208
| | | | | | | | * ext/tcltklib/tcltklib.c: store original 'exit' command * ext/tk/tkutil.c: fix(?) SEGV git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c: add TclTkIp#allow_ruby_exit? and allow_ruby_exit=nagai2004-09-117-181/+997
| | | | | | | | | | | | | | | * ext/tk/lib/multi-tk.rb: ditto. * ext/tk/lib/remote-tk.rb: ditto. * ext/tcltklib/MANUAL.euc: ditto. * ext/tcltklib/MANUAL.eng: ditto. * ext/tcltklib/tcltklib.c: fix some reasons of SEGV * ext/tk/tkutil.c: ditto. * ext/tk/lib/multi-tk.rb: ditto. * ext/tk/lib/tk/timer.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c (lib_merge_tklist): fix suspiciousocean2004-09-101-1/+1
| | | | | | | pointer conversion. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c (ip_init): change flag value for setting 'argv' ↵nagai2004-09-092-2/+36
| | | | | | | | | and 'argv0' variable * ext/tk/lib/remote-tk.rb: follow changes of multi-tk.rb git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_write): zero fill a gap if exsts.nobu2004-09-081-4/+6
| | | | | | | [ruby-dev:24190] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c (ip_init): cannot create a IP at level 4nagai2004-09-084-65/+263
| | | | | | | | | | * ext/tk/lib/multi-tk.rb: improve 'exit' operation, security check, and error treatment * ext/tk/lib/multi-tk.rb: allow a trusted slave IP to create slave IPs. * ext/tk/lib/tk/listbox.rb: add TkListbox#value, value=, clear, and erase * ext/tk/lib/tk/text.rb: add TkText#clear and erase git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e