Commit graph

7022 commits

Author SHA1 Message Date
keiju
846a9c902f * lib/irb/context.rb: fix irb --readline option. [ruby-list:40955]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-31 15:10:26 +00:00
keiju
2800b452bb 2005-08-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-31 15:10:21 +00:00
nobu
a7dd97e657 2005-07-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-29 01:00:11 +00:00
nobu
c970cc64e4 * eval.c (rb_yield_0): push yielded node instead of yielding.
fixed: [yarv-dev:549]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-29 01:00:07 +00:00
nagai
3332a04e05 * ext/tcltklib/stubs.c: When --enable-tcltk-stubs, the initialize
routine creates a Tcl/Tk interpreter and deletes it. However,
  init cost of Tk's MainWindow is not so small. And that makes it
  impossible to use libraries written with Tcl functions only on
  an environment without a graphical display. This changes support
  delaying initalization of Tk_Stubs until the script needs Tk.
* ext/tcltklib/stubs.h: New file. Define prototypes and return
  codes of functions on stubs.c.
* ext/tcltklib/tcltklib.c: Support delaying initalization of
  Tk_Stubs until the script needs Tk.
* ext/tcltklib/tcltklib.c: Show friendly error messages for errors
  on initialization.
* ext/tcltklib/tcltklib.c: Avoid SEGV on ip_finalize() when ruby is
  exiting and $DEBUG is true. (Not fix. If you know the reason of
  why, please fix it.)
* ext/tk/tkutil.c (ary2list, ary2list2): bug fix on handling of
  encoding.
* ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string
  don't work propery.
* ext/tk/lib/tk.rb: Forget extending Tk::Encoding module to Tk.
* ext/tk/lib/tk/variable.rb: TkVarAccess fails to initialize the
  object for an element of a Tcl's array variable.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-28 09:15:37 +00:00
matz
ac66281e44 2005-07-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-28 01:52:04 +00:00
matz
9c4553e9f8 * ext/socket/socket.c (ruby_connect): break immediately if a
socket is non-blocking.  [ruby-talk:111654]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-28 01:51:59 +00:00
matz
38d5918439 * gc.c (obj_free): make message formant consistent with one from
gc_mark().  [ruby-talk:149668]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-27 14:29:13 +00:00
kou
d953cb4324 * sample/rss/tdiary_plugin: removed. because the plugin
is imported in the tDiary plugin packages.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-27 13:16:32 +00:00
matz
a12c1e4bd2 revered all LLP64 modifies due to portability reason.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-27 03:07:02 +00:00
matz
f933f9d3a5 * 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]

* 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/branches/ruby_1_8@8845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-27 02:42:16 +00:00
matz
d68e049c5f 2005-07-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-27 02:11:01 +00:00
matz
d981b18d05 * dir.c (dir_each): rewinddir(3) before iteration.
[ruby-talk:149628]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-27 02:10:56 +00:00
ocean
e2a95883d8 * ext/tk/sample/tkextlib/tile/demo.rb: fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-27 01:57:14 +00:00
matz
3c456d3a5d * ruby.h: support LLP64 model. [ruby-talk:149524]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-26 09:16:37 +00:00
gotoyuzo
393197aa7f * ext/openssl/openssl_missin.c: include <openssl/engine.h> before
<openssl/x509_vfy.h> to avoid compilation error of mswin32.
  suggested by NAKAMURA Usaku.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-26 03:59:39 +00:00
gotoyuzo
fad950b3c2 2005-07-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-26 03:59:36 +00:00
nobu
983c7c74ee * {bcc32,win32,wince}/Makefile.sub: moved CPPFLAGS only for ruby
source to XCFLAGS.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-25 12:31:21 +00:00
matz
6112d65af2 * io.c: check HAVE_SYS_IOCTL_H before including the header.
[ruby-dev:26610]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-25 07:29:39 +00:00
nagai
4af6b52fc0 * ext/tk/lib/multi-tk.rb: fix en-bugged part in the last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-25 05:11:19 +00:00
nagai
ad1bc6c322 2005-07-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-25 05:11:14 +00:00
gotoyuzo
b6d87687e9 * ext/openssl/ossl_engine.c (ossl_engine_s_load): should check
OPENSSL_NO_STATIC_ENGINE.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-23 07:50:17 +00:00
gotoyuzo
732c3ecf53 2005-07-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-23 07:49:58 +00:00
matz
210bf4dc6e * bignum.c (rb_big_eq): reduce isnan(). [ruby-dev:26600]
* numeric.c (flo_eq, flo_gt, flo_ge, flo_lt, flo_le): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-22 13:04:25 +00:00
kou
ef43ac0d05 * lib/rss/rss.rb: moved copyright description to lib/rss.rb.
* 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/branches/ruby_1_8@8822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-22 06:14:49 +00:00
(no author)
c83264c3f9 This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-22 06:14:49 +00:00
kou
aeac7335ea * lib/rss/rss.rb: moved copyright description to lib/rss.rb.
* 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/branches/ruby_1_8@8820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-22 06:14:48 +00:00
kou
efcd6ef586 * lib/rss/parser.rb (RSS::Parser#initialize): accept HTTP/FTP
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/branches/ruby_1_8@8819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-22 05:41:33 +00:00
nagai
ecf2813198 * ext/tk/tkutil.c (tk_conv_args): forget to revert thread_critical
and gc_disable when raise ArgumentError.
* ext/tk/lib/remote-tk.rb: RemoteTkIp doesn't need to include TkUtil.
* ext/tcltklib/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/branches/ruby_1_8@8817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-21 22:04:43 +00:00
nagai
07f892fb3c 2005-07-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-21 22:04:36 +00:00
usa
149dca2560 * io.c (S_ISREG): need to define S_ISREG before it is used first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-20 10:21:16 +00:00
akr
879fd5d904 don't use S_ISDIR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-20 10:08:49 +00:00
ocean
7f50895e04 * io.c (wsplit_p): patch for the environment where
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/branches/ruby_1_8@8810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-20 09:46:57 +00:00
akr
7adccbb285 * io.c (rb_io_ctl): update FMODE_WSPLIT_INITIALIZED and FMODE_WSPLIT
by F_SETFL.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-20 09:14:30 +00:00
matz
ba229f4055 * variable.c (rb_class_path): need to adjust snprintf() len for
teminating NUL.  [ruby-dev:26581]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-20 01:09:54 +00:00
ocean
48014442b6 * ext/socket/socket.c: sorry, BeOS also uses HAVE_CLOSESOCKET,
so reverted.

* ext/socket/extconf.rb: should not define HAVE_CLOSESOCKET
  on windows.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-19 19:04:46 +00:00
ocean
e7ea44170e no message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-19 18:26:49 +00:00
ocean
61ad7c023b * ext/socket/socket.c: should not undef close on win32.
it's defined to rb_w32_close, otherwise handle leaks.
  [ruby-Bugs-2131]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-19 18:18:51 +00:00
ocean
1b08570915 2005-07-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-19 18:18:46 +00:00
matz
bdb357e0d2 * error.c (syserr_initialize): add 1 byte for snprintf() size for
NUL at the end.  [ruby-dev:26574]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-19 14:59:01 +00:00
matz
395ca33bff * error.c (syserr_initialize): need to allocate an additional byte
for NUL at the end.  [ruby-dev:26574]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-19 13:52:42 +00:00
matz
5b7e24d744 * io.c (rb_io_inspect): replace sprintf() with "%s" format all
over the place by snprintf() to avoid integer overflow.

* sample/svr.rb: service can be stopped by ill-behaved client; use
  tsvr.rb instead.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-19 08:25:39 +00:00
nagai
0a5aab8679 * ext/tk/lib/tk.rb: forgot to update RELEASE_DATE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-19 06:57:46 +00:00
ocean
f2b951bc0d * ext/tcltklib/tcltklib.c: rbtk_eventloop_depth is used as int.
* ext/tcltklib/tcltklib.c: rbtk_pending_exception is tested with
  NIL_P, so should assign Qnil instead of 0 (Qfalse).

* ext/tcltklib/tcltklib.c (ip_invoke_real): fixed memory leak when
  ip is deleted.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-19 05:09:54 +00:00
nagai
19de4a4a7b * ext/tk/lib/tk/variable.rb: For symmetry, add TkVariable#string. It
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/branches/ruby_1_8@8795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-19 04:24:05 +00:00
nagai
01355e952a 2005-07-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-19 04:24:02 +00:00
ocean
a2fca56499 * eval.c (rb_call0): make the pointer to NODE volatile
instead of NODE itself.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-18 12:41:18 +00:00
akr
7633fee306 * eval.c (rb_call0): make body volatile to avoid optimization problem.
[ruby-dev:26195]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-18 05:41:03 +00:00
nobu
6b4ee352fb * ext/io/wait/wait.c: wrong backport from trunk. fixed: [ruby-dev:26562]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-18 03:24:04 +00:00
akr
861c5e26d3 2005-07-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-18 01:00:25 +00:00