summaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* * ext/tk/lib/tk/menu.rb(TkOptionMenubutton#insert): call correct methodocean2004-09-061-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: Tk.after makes TkCore::INTERP.tk_cmd_tbl grow ↵nagai2004-09-031-2/+14
| | | | | | [ruby-dev:24207] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c: fix typo [ruby-talk:111266]nagai2004-09-027-44/+199
| | | | | | | | * ext/tk/lib/tk/text.rb: fix typo * ext/tk/lib/multi-tk.rb: improve safe-level treatment on slave IPs git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: already built-in libraries satisfy dependencies.nobu2004-09-021-1/+3
| | | | | | | [ruby-dev:24028] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/spinbox.rb: fix typoocean2004-09-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tkutil.c (cbsubst_init): fix memory leakocean2004-08-311-2/+1
| | | | | | | * ext/tk/tkutil.c (cbsubst_get_all_subst_keys): fix SEGV git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c (ip_delete): when a tcltkip is deleted, destroy ↵nagai2004-08-311-0/+1
| | | | | | its root widget git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c (del_root): fix SEGVnagai2004-08-311-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: 'restart' method accepts argumentsnagai2004-08-301-6/+19
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c: compile error on bcc32 [ruby-dev:24081]nagai2004-08-292-2/+4
| | | | | | | * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string does not work git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_x509attr.c (ossl_x509attr_initialize): d2igotoyuzo2004-08-243-6/+7
| | | | | | | | | | | functions may replace the pointer indicated by the first argument. * ext/openssl/ossl_x509ext.c (ossl_x509ext_initialize): ditto. * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (ossl_ssl_read):gotoyuzo2004-08-232-23/+27
| | | | | | | | | | | | | | | | | | - should return an empty string if specified length to read is 0. - should check for pending data and wait for fd before reading. - call underlying IO's sysread if SSL session is not started. [ruby-dev:24072], [ruby-dev:24075] * ext/openssl/ossl_ssl.c (ossl_ssl_write): - call underlying IO's syswrite if SSL session is not started. * ext/openssl/ossl_ssl.c (ossl_ssl_pending): new method OpenSSL::SSL#pending. * ext/openssl/lib/openssl/buffering.rb: should not use select. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/extconf.rb (find_tcl, find_tk): find stub library.nobu2004-08-201-5/+17
| | | | | | | | * lib/mkmf.rb (arg_config, with_config): deal with '-' and '_' uniformly. [ruby-dev:24118] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: Fail to treat a hash value of 'font' option.nagai2004-08-192-2/+5
| | | | | | | | * ext/tk/lib/tk.rb: bindinfo cannot return '%' substiturion infomation. * ext/tk/lib/menu.rb: typo bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/token.c: re2c no longer compiled with bit vectors. causedwhy2004-08-183-1973/+3821
| | | | | | | | | | | | | | | | problems for non-ascii characters. [ruby-core:03280] * ext/syck/implicit.c: ditto. * ext/syck/bytecode.c: ditto. * lib/yaml/baseemitter.rb: folding now handles double-quoted strings, fixed problem with extra line feeds at end of folding, whitespace opening scalar blocks. * lib/yaml/rubytypes.rb: subtelties in handling strings with non-printable characters and odd whitespace patterns. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/stubs.c (ruby_tcltk_stubs): need to calleban2004-08-181-2/+9
| | | | | | | Tcl_FindExecutable() for Tcl/Tk 8.4. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/implicit.c: added sexagecimal float#base60.why2004-08-075-2955/+1386
| | | | | | | | | | | * ext/syck/rubyext.c (yaml_org_handler): ditto. * lib/token.c: indentation absolutely ignored when processing flow collections. plain scalars are trimmed if indentation follows in an ambiguous flow collection. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c: Zlib::GzipReader#read(0) returns "" instead of nil.akr2004-08-061-1/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/namespace.rb: bug fixnagai2004-08-032-10/+30
| | | | | | | * ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: add Tk::TreeCtrl.loupe git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/msgcat.rb (set_translation): bug fix (fail to setnagai2004-08-021-12/+25
| | | | | | | trans_str to the same as src_str when trans_str is not given.) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml.rb (YAML::load_file, YAML::parse_file): added.why2004-07-303-1371/+1454
| | | | | | | | | | | | | | | | * lib/yaml/rubytypes.rb: exceptions were using an older YAML.object_maker. [ruby-core:03080] * ext/syck/token.c (sycklex_yaml_utf8): using newline_len to handline CR-LFs. "\000" was showing up on folded blocks which stopped at EOF. * ext/syck/token.c: re2c compiled with bit vectors now. * ext/syck/implicit.c: ditto. * ext/syck/bytecode.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c(lib_fromUTF8_core): raise ArgumentError whennagai2004-07-302-4/+21
| | | | | | | | | | the unknown encoding name is given. * ext/tcltklib/tcltklib.c(lib_toUTF8_core): ditto. * ext/tk/lib/tk.rb(Tk::Encoding.encoding_convertfrom): bug fix. * ext/tk/lib/tk.rb(Tk::Encoding.encoding_convertto): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/pkg_checker.rb: improve the check processnagai2004-07-291-9/+64
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/validate.rb: accept a Method object for the validatecommand optionnagai2004-07-287-10/+241
| | | | | | | * ext/tk/lib/tkextlib/winico.rb: add winico extension support git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * for backward compatibility (see [ruby-talk:107510], [ruby-talk:107647])nagai2004-07-281-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/MANIFEST: addedeban2004-07-242-46/+5
| | | | | | | | | lib/tkextlib/tclx.rb lib/tkextlib/tclx/setup.rb lib/tkextlib/tclx/tclx.rb git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e