Commit graph

7022 commits

Author SHA1 Message Date
akr
179a0025aa * defines.h (FLUSH_REGISTER_WINDOWS): defined for IA64.
(flush_register_windows): declare flush_register_windows.

* eval.c (flush_register_windows): new function.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-02 09:10:06 +00:00
matz
1453dc92e4 * bignum.c (get2comp): revert all prior changes, and calculate
proper 2's complement for negative numbers.  backported from
  HEAD.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-01 08:54:04 +00:00
matz
32d0d609e9 * missing/erf.c: need to include some headers for some platforms.
* win32/win32.h (copysign, scalb): define for compatibility with
  other platforms. [ruby-dev:26430]

* missing/crypt.c: modified to make it compilable on platforms
  other than BSD.  [ruby-dev:26430]

* missing/erf.c: ditto.  code from <exp.c> merged.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-01 07:23:40 +00:00
akr
f2a501261f * lib/open-uri.rb (OpenURI.open_http): refine post_connection_check
call.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-01 03:49:12 +00:00
matz
70db83a8c3 * missing/crypt.c: replaced with 4.4BSD version.
* missing/erf.c: ditto.

* missing/vsnprintf.c: removed the third provision from the old
  BSD license.  [ruby-core:05177]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-01 03:25:46 +00:00
eban
9d4392ee6c * 2005-07-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 16:47:07 +00:00
nobu
4c04407b19 * enum.c (enum_min, enum_max): must not return Qundef.
fixed: [ruby-core:05299]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 16:46:13 +00:00
matz
c018c992da * lib/delegate.rb (Delegator::respond_to): respond_to? must check
destination object.  [ruby-talk:146894]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 15:22:00 +00:00
nobu
1a6b5e7a18 * process.c (detach_process_wathcer): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 14:54:53 +00:00
keiju
70ca76ab04 * lib/irb/ruby-lex.rb (RubyLex::identify_number): alternative implements
for [ruby-dev:26410]. And support a numeric form of 0d99999.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 10:11:14 +00:00
matz
a9fa5f5a15 * lib/irb/ruby-lex.rb (RubyLex::identify_number): should not treat
plain zero as an octal number.  [ruby-dev:26410]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 08:31:38 +00:00
akr
4b6e478ca6 add a test for [ruby-dev:26383].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 06:27:05 +00:00
eban
d7d5178002 * 2005-06-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 06:23:36 +00:00
matz
11041b1675 * eval.c (rb_eval): pre-evaluate argument for unambiguous
evaluation order.  [ruby-dev:26383]

* lib/delegate.rb (Delegator::method_missing): forward unknown
  method to the destination.  suggested by
  <christophe.poucet@gmail.com>.  [ruby-talk:146776]

* process.c (detach_process_watcher): terminate process watcher
  thread right after rb_waitpid() succeed.  [ruby-talk:146430]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 06:21:00 +00:00
matz
04f006aea3 * eval.c (rb_eval): pre-evaluate argument for unambiguous
evaluation order.  [ruby-dev:26383]

* lib/delegate.rb (Delegator::method_missing): forward unknown
  method to the destination.  suggested by
  <christophe.poucet@gmail.com>.  [ruby-talk:146776]

* process.c (detach_process_watcher): terminate process watcher
  thread right after rb_waitpid() succeed.  [ruby-talk:146430]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 06:20:09 +00:00
eban
ca1a7bc4a5 * 2005-06-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-28 14:27:14 +00:00
ocean
477187defd * dir.c, eval.c, hash.c, process.c, ruby.c: avoid warning "unused
variable" [ruby-dev:26387]

(patch from Kazuhiro NISHIYAMA)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-28 13:09:58 +00:00
gotoyuzo
d8322d404f * lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_query): should
discard if key=val pair is empty. patch from Gary Wright.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-25 08:16:16 +00:00
nobu
47679bcf0a * enum.c (enum_min, enum_max): do not ignore nil as the first element.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-25 06:49:40 +00:00
ocean
19c96dfff9 * ext/sdbm/init.c (fsdbm_select): SDBM#select had returned the array
which contained each elements twice. [ruby-dev:26358]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-25 05:42:41 +00:00
nobu
3a837bfdd7 * 2005-06-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-25 05:11:54 +00:00
mneumann
686c038347 * lib/xmlrpc/*, test/xmlrpc/*: backported changes from HEAD into 1.8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-24 20:27:43 +00:00
akira
1ee06ebecf * lib/uri/common.rb, lib/uri/generic.rb: fixed typo in documents and
replaced some existent domain name with "example.com".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-24 04:18:16 +00:00
eban
79bf4435af * 2005-06-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-24 03:32:22 +00:00
nagai
1ea627d1fd * ext/tk/lib/tk.rb: fix typo on Tk.grid_propagate.
* ext/tk/lib/tk.rb: Tk.event_generate and TkWindow#event_generate
  accept TkEvent::Event object as context argument.
* ext/tk/lib/tk/event.rb: add TkEvent::Event#valid_fields and
  valid_for_generate to get field parameters of event_generate.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-24 03:29:24 +00:00
nobu
20c547642f * runruby.rb: should load built rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-23 14:56:40 +00:00
eban
4eece5ce2e * 2005-06-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-23 08:23:23 +00:00
akira
96b22ba4f3 fixed typo in the example of URI.extract.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-23 08:22:44 +00:00
nagai
2647ecd107 * ext/tk/lib/tk/canvastag.rb: TkcGroup.new cannot include given items.
TkcGroup#exclude calls wrong method.
  Add alias TkcGroup#add [ruby-talk:146049].
* ext/tk/lib/tk/canvas.rb: TkCanvas#dtag and some subcommands of
  TkCanvas#addtag fail to treat a TkcTag argument.
* ext/tk/lib/tk/event.rb: add TkEvent::Event#generate to help to send
  current event to other widgets.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-23 07:57:39 +00:00
akr
b3f139fb96 * eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): DUMMY_SETJMP is replaced
because setjmp is not enough to fix getcontext and SPARC register
  window problem.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-20 10:00:23 +00:00
usa
4d10e7f955 * ChangeLog: add ML index.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-20 07:54:15 +00:00
usa
8f8d7c1113 * ext/dbm/dbm.c (fdbm_closed): new method DBM#closed?
* ext/gdbm/gdbm.c (fgdbm_closed): new method GDBM#closed?

* ext/sdbm/init.c (fsdbm_closed): new method SDBM#closed?

* test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb, test/sdbm/test_sdbm.rb
  (teardown): close all db objects before deleting data files.

* win32/win32.{ch} (unlink): hook runtime function to change
  file attribute before unlinking.
  fixed: [ruby-dev:26360]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-20 07:53:22 +00:00
nobu
150b98fd76 * gc.c (define_final): document fix: finalizers never get called
before target object is destroyed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-19 17:16:14 +00:00
eban
107ccb8ee2 * 2005-06-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-19 16:31:08 +00:00
gotoyuzo
36d6603e5f * ext/openssl/openssl_missing.c, ext/openssl/ossl.h,
ext/openssl/ossl_asn1.c, ext/openssl/ossl_bio.c,
  ext/openssl/ossl_pkcs12.h, ext/openssl/ossl_x509req.c: avoid
  compiler warnings. suggested by Mical Rokos.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-19 16:29:17 +00:00
nobu
e9b5f96b06 * 2005-06-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-19 05:41:37 +00:00
nobu
4cee6b5a2b * gc.c (run_final): commit miss to add new variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-19 05:16:36 +00:00
nobu
cb2cf70aa1 * gc.c (run_final): reduce unnecessary object allocation during
finalization.

* gc.c (rb_gc_call_finalizer_at_exit): deferred finalizers list should
  be cleared before calling them.  fixed: [ruby-talk:145790]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-19 05:09:32 +00:00
akr
ff117cb3b7 * lib/time.rb (Time.parse): fix previous leap seconds support.
(Time.rfc2822): ditto.
  (Time.xmlschema): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-17 04:04:44 +00:00
eban
77ce38326f * 2005-06-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-16 17:27:09 +00:00
akr
6da4483a13 add tests for leapseconds on an environment without leapseconds support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-16 17:21:57 +00:00
nagai
286d846b1c * lib/tkextlib/SUPPOPRT_STATUS: add RELEASE_DATE information.
* lib/tkextlib/tile/style.rb: add "style element options <elem>"
  command support.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-16 09:22:01 +00:00
ocean
f80d8ab63f * ext/tcltklib/tcltklib.c (ip_rb_threadVwaitCommand): Tcl_Release was missing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-16 06:23:47 +00:00
nagai
01d3ad7485 * ext/tk/lib/tk.rb: add Tk.getMultiple{Open|Save}File() which return
an Array of selected files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-16 04:37:07 +00:00
akr
37f56905ef * lib/time.rb (Time.parse): "Fri Jan 1 08:59:60 +0900 1999" was
parsed as "Fri Jan 01 09:00:00 JST 1999" even on an environment
  which supports leap seconds.
  (Time.rfc2822): ditto.
  (Time.xmlschema): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-16 04:00:01 +00:00
ocean
ad0f7f889b * ext/dl/sym.c (rb_dlsym_call): needs FREE_ARGS before return.
fixed memory leak. [ruby-Bugs-2034]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-15 23:39:27 +00:00
eban
f67c74acd7 * 2005-06-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-15 15:10:40 +00:00
nagai
eeb22fe3b8 * ext/tk/sample/demos-jp/ctext.rb: modify improper message text.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-15 15:02:32 +00:00
nobu
206b3b179b * 2005-06-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-15 14:21:12 +00:00
nagai
735b3e3cb7 * ext/tk/tk.rb: support "tk inactive" sub-command. [for Tcl/Tk8.5a3]
* ext/tk/tk/namespace.rb: support "namespace path" sub-command and
  'namespace ensemble' sub-command. [for Tcl/Tk8.5a3]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-15 09:30:54 +00:00