aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * parse.y (lambda): Perl6 style -> lambda expression. [NEW]matz2005-07-2714-144/+315
| | | | | | | | | | | | | | | | | | | | | | | [VERY EXPERIMENTAL] * gc.c (id2ref): must not assign pointers to long int. use LONG_LONG instead if SIZEOF_LONG < SIZEOF_VOIDP. [ruby-talk:149645] * ruby.h: use LONG_LONG to simplify the change. [ruby-talk:149645] * dir.c (dir_each): rewinddir(3) before iteration. [ruby-talk:149628] * eval.c (rb_f_throw): replace all '0x%lx' by '%p'. [ruby-talk:149553] * missing/vsnprintf.c (BSD_vfprintf): '%p' need to handle 64bit size pointer. [ruby-talk:149553] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/sample/tkextlib/tile/demo.rb: fixed typo.ocean2005-07-272-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/lib/ripper/sexp.rb: new method Ripper.sexp_raw.aamine2005-07-262-5/+52
| | | | | | | * ext/ripper/lib/ripper/sexp.rb (Ripper.sexp): returns more readable tree. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: merge a patch contributed by Daniel Berger, with some ↵aamine2005-07-262-42/+25
| | | | | | modification. (RubyForge #2128) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_sprintf): fixed typo.ocean2005-07-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.h: support LLP64 model. [ruby-talk:149524]matz2005-07-262-3/+19
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/openssl_missin.c: include <openssl/engine.h> beforegotoyuzo2005-07-262-4/+10
| | | | | | | | <openssl/x509_vfy.h> to avoid compilation error of mswin32. suggested by NAKAMURA Usaku. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-07-26gotoyuzo2005-07-261-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.[ch]: (rb_w32_vsnprintf, rb_w32_snprintf): removed.usa2005-07-253-21/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {bcc32,win32,wince}/Makefile.sub: moved CPPFLAGS only for rubynobu2005-07-254-12/+8
| | | | | | | source to XCFLAGS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: Borland MAKE doesn't look for file names which have pathsnobu2005-07-255-11/+17
| | | | | | | | | | | from VPATH. fixed: [ruby-dev:26604] * ruby.h (NORETURN, DEPRECATED): moved just after config.h. * {win32,wince}/Makefile.sub: vsnprintf() is in missing now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_eq): reduce isnan(). [ruby-dev:26600]matz2005-07-253-6/+17
| | | | | | | * numeric.c (flo_eq, flo_gt, flo_ge, flo_lt, flo_le): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: fix en-bugged part in the last commit.nagai2005-07-253-57/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-07-25nagai2005-07-251-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_engine.c (ossl_engine_s_load): should checkgotoyuzo2005-07-232-1/+8
| | | | | | | OPENSSL_NO_STATIC_ENGINE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_fd_select): the all three fd_sets must be long enough fornobu2005-07-233-3/+30
| | | | | | | select. fixed: [ruby-talk:149059] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_vsprintf, rb_sprintf): new functions return new String,nobu2005-07-2317-132/+200
| | | | | | | | | using missing/vsnprintf.c. [ruby-dev:26580] * missing/vsnprintf.c: made the output changeable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-07-23nobu2005-07-231-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: moved copyright description to lib/rss.rb.kou2005-07-228-31/+103
| | | | | | | | | | | | | | | | * lib/rss.rb: added for convenience. * sample/rss/re_read.rb: added #to_s sample. * sample/rss/blend.rb: use 'require "rss"' instead of 'require "rss/*"'. * sample/rss/list_description.rb: ditto. * sample/rss/rss_recent.rb: ditto. * sample/rss/tdiary-plugin/rss-recent.rb: ditto. * sample/rss/tdiary-plugin/rss-recent.rb: 0.0.6 -> 0.0.7. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb (RSS::Parser#initialize): accept HTTP/FTPkou2005-07-223-2/+64
| | | | | | | | | | URI and local file path too. * test/rss/test_parser.rb (RSS::TestParser#test_parse): test for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tkutil/tkutil.c (tk_conv_args): forget to revertnagai2005-07-218-63/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | thread_critical and gc_disable when raise ArgumentError. * ext/tk/lib/remote-tk.rb: RemoteTkIp doesn't need to include TkUtil. * ext/tk/tcltklib.c: add TclTkIp#has_mainwindow? method. * ext/tk/lib/tk.rb: add Tk.has_mainwindow? method. * ext/tk/lib/multi-tk.rb: add MultiTkIp#has_mainwindow? method. * ext/tk/lib/remote-tk.rb: add RemoteTkIp#has_mainwindow? method. * ext/tk/lib/multi-tk.rb: slave IP fail to exit itself when $SAFE==4. * ext/tk/lib/multi-tk.rb: remove constants from MultiTkIp module to avoid access from external. * ext/tk/lib/multi-tk.rb: check_root flag is ignored on slave IPs' mainloop. * ext/tk/lib/multi-tk.rb: hang-up Tk.mainloop called on a slave IP with $SAFE==4. * ext/tk/lib/multi-tk.rb: MultiTkIp#bg_eval_proc doesn't work properly. * ext/tk/lib/multi-tk.rb: add MultiTkIp#set_cb_error(proc) and cb_error(exc) to log errors at callbacks on safe slave IPs. * ext/tk/lib/multi-tk.rb: fail to get an available slave IP object when call Tk.mainloop in the block which is given to new_* method, because cannot finish initialize while the root widget is alive. * ext/tk/lib/multi-tk.rb: fail to control a slave IP when Tk.mainloop runs on the IP. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c,config.h}:naruse2005-07-214-788/+821
| | | | | | | | import 1.76 [ruby-dev:26592] nkf constification git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-07-22naruse2005-07-211-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (S_ISREG): need to define S_ISREG before it is used first.usa2005-07-202-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix previous commit.akr2005-07-201-3/+2
| | | | | | | don't use S_ISDIR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (wsplit_p): patch for the environment whereocean2005-07-202-3/+12
| | | | | | | | fcntl(F_GETFL, O_NONBLOCK) is not supported. in that case, set FMODE_WSPLIT without fcntl check. [ruby-dev:26566] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_ctl): update FMODE_WSPLIT_INITIALIZED and FMODE_WSPLITakr2005-07-202-0/+15
| | | | | | | by F_SETFL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_class_path): need to adjust snprintf() len formatz2005-07-205-11/+23
| | | | | | | | | | teminating NUL. [ruby-dev:26581] * error.c (syserr_initialize): don't use str before StringValue() check. [ruby-dev:26579] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c: sorry, BeOS also uses HAVE_CLOSESOCKET,ocean2005-07-193-1/+13
| | | | | | | | | | so reverted. * ext/socket/extconf.rb: should not define HAVE_CLOSESOCKET on windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* no messageocean2005-07-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c: should not undef close on win32.ocean2005-07-192-5/+6
| | | | | | | | it's defined to rb_w32_close, otherwise handle leaks. [ruby-Bugs-2131] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-07-20ocean2005-07-191-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (syserr_initialize): add 1 byte for snprintf() size formatz2005-07-193-7/+7
| | | | | | | NUL at the end. [ruby-dev:26574] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (syserr_initialize): need to allocate an additional bytematz2005-07-193-2/+7
| | | | | | | for NUL at the end. [ruby-dev:26574] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (trap): remove sigexit(); handle "EXIT" via sig_exec().matz2005-07-1910-47/+50
| | | | | | | | | | [ruby-dev:26440] * io.c (rb_io_inspect): replace sprintf() with "%s" format all over the place by snprintf() to avoid integer overflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: forgot to update RELEASE_DATEnagai2005-07-191-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: rbtk_eventloop_depth is used as int.ocean2005-07-192-8/+18
| | | | | | | | | | | * ext/tk/tcltklib.c: rbtk_pending_exception is tested with NIL_P, so should assign Qnil instead of 0 (Qfalse). * ext/tk/tcltklib.c (ip_invoke_real): fixed memory leak when ip is deleted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/variable.rb: For symmetry, add TkVariable#string. Itnagai2005-07-192-0/+7
| | | | | | | | returns a string even if the default value type of the TkVariable object is not "string". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-07-19nagai2005-07-191-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): make the pointer to NODE volatileocean2005-07-182-1/+6
| | | | | | | instead of NODE itself. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): make body volatile to avoid possible optimizationakr2005-07-182-1/+8
| | | | | | | | problem. [ruby-dev:26195] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/wait/wait.c: wrong backport from trunk, and compile error onnobu2005-07-182-11/+24
| | | | | | | platforms fd_set is not a bit set. fixed: [ruby-dev:26562] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rubyio.h (FMODE_WSPLIT, FMODE_WSPLIT_INITIALIZED): new constant.akr2005-07-183-4/+47
| | | | | | | | | | * io.c (wsplit_p): new function. (io_fflush): split writing data by PIPE_BUF if wsplit_p is true in multi-threaded mode. (io_fwrite): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c: import nkf.c 1.73naruse2005-07-172-12/+34
| | | | | | | fix: TestKconv 1F git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-07-18naruse2005-07-171-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/wait/extconf.rb, ext/io/wait/wait.c: Win32 platforms support.nobu2005-07-173-1/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-07-17nobu2005-07-171-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (Init_Enumerator): wrong argument specs.nobu2005-07-162-2/+7
| | | | | | | [ruby-core:05481] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.[hc]: constified socket functions. [ruby-dev:26553]ocean2005-07-163-31/+33
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* document fix [ruby-dev:26516] (patch from Kazuhiro NISHIYAMA)ocean2005-07-161-4/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e