Граф коммитов

3641 Коммитов

Автор SHA1 Сообщение Дата
matz 06d9340f2e * eval.c (ruby_cleanup): call finalizers and exit procs before
terminating threads.

* eval.c (ruby_cleanup): preserve ruby_errinfo before ruby_finalize_0().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 14:42:15 +00:00
nobu 8af34b7b33 * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
prepend the directory of target file to the load path.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 06:57:14 +00:00
usa 9292a6254e * win32/win32.c (do_spawn, do_aspawn): should return child's exit
status to parent.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 06:23:51 +00:00
usa d820362c50 * win32/win32.c (do_spawn, do_aspawn): should wait child process even
if callded with P_OVERLAY.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 06:10:12 +00:00
eban 0152ff5c24 2003-10-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 04:48:59 +00:00
nagai 477f730aa4 bug fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 04:46:21 +00:00
shigek c2e6541a6a Added math.rb descriptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 03:52:43 +00:00
shigek 970ad34c95 Local version number(BigDecimal::ver) incremented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 03:29:54 +00:00
shigek 87704d6a3c can read data from file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 03:18:44 +00:00
nobu 212d962a3b C++/C99 style comments are not allowed yet. (ruby-bugs:PR#1184)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 02:47:17 +00:00
nahi 208ff30c07 * test/soap/calc/*, test/soap/helloworld/*: catch the exception from test
server thread and recover.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 15:37:11 +00:00
seki bc867112ec import drb/runit/*.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 15:24:00 +00:00
nobu d6153337f6 * eval.c (rb_eval): set current node after arguments evaluation.
[ruby-dev:21632]

* eval.c (rb_yield_0): set current node and keep it at local jump.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 14:55:50 +00:00
nobu 28f2a1da54 * eval.c (rb_thread_cleanup): keep thread group for main thread.
[ruby-dev:21644]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 13:01:21 +00:00
nobu 229c37a6da * eval.c (rb_catch): backout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 09:28:13 +00:00
matz 6eb98c5ebe * eval.c (PUSH_FRAME): generate unique number to be TAG_JUMP()
destination.

* eval.c (localjump_destination): use unique number in ruby_frame
  for localjump destination.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 08:33:49 +00:00
nobu 8405551e6d * test/ruby/test_signal.rb (test_signal): restore old trap.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 02:31:47 +00:00
usa de6f26a296 2003-10-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 02:11:42 +00:00
matz e75c34c2e9 * gc.c (gc_sweep): loosen page free condition to avoid add_heap()
race condition. [ruby-dev:21633]

* gc.c (gc_sweep): do not update malloc_limit when malloc_increase
  is smaller than malloc_limit.

* ext/socket/socket.c (make_hostent): h_aliases may be NULL.
  (ruby-bugs PR#1195)

* ext/socket/socket.c (sock_s_gethostbyaddr): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 02:06:42 +00:00
usa 0014687097 * lib/debug.rb (debug_command): remove debug print.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 00:46:01 +00:00
eban a253e7c512 2003-10-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-19 04:29:08 +00:00
akr 2768ca8b90 * lib/pathname.rb (foreachline, dir_foreach): add obsolete warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-19 04:14:40 +00:00
nahi cf73166d47 * test/soap/calc/*, test/soap/helloworkd/*: changed port# of test server.
(17171)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-18 15:21:18 +00:00
eban df8b1ad9e8 * missing/acosh.c (DBL_MANT_DIG): typo fix(ifdef -> ifndef).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-18 14:04:18 +00:00
eban fa48756408 2003-10-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-18 05:18:41 +00:00
nagai ec40d939af modify the message and comments on the source
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-17 22:36:40 +00:00
why 9e2f9cf233 * ext/syck/yamlbyte.h: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-17 21:03:16 +00:00
why 71a8bebf5a * ext/syck/rubyext.c: YAML::Syck::compile method.
* ext/syck/syck.c: Buffer edge bug.

* ext/syck/yaml2byte.c: YAML to bytecode converter.

* ext/syck/bytecode.c: Bytecode parser fixes to empty collections
  and empty strings.

* ext/syck/token.c: Ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-17 20:53:39 +00:00
knu 23f6b5bdc4 * ext/enumerator/enumerator.c, ext/enumerator/enumerator.txt:
Provide Kernel#to_enum as an alias for Kernel#enum_for.  Maybe
  this is a better name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-17 14:09:43 +00:00
knu a7ddb2e342 * lib/generator.rb: Add rdoc documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-17 14:01:26 +00:00
knu a4ba07c242 * lib/set.rb: Reword and fix Overview.
* lib/set.rb: It is not necessary to require
  'test/unit/ui/console/testrunner'.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-17 13:17:35 +00:00
knu 86bbeb6017 Reword and fix Overview.
It is not necessary to require 'test/unit/ui/console/testrunner'.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-17 13:16:03 +00:00
eban 8cdd299bf0 2003-10-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-17 12:32:52 +00:00
nagai b860656cb0 add some documents
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-17 07:59:32 +00:00
usa c7d278adb9 * test/ruby/test_range.rb: added.
* MANIFEST: add test/ruby/test_range.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-17 02:18:01 +00:00
nagai 4cb439cac9 forgot to add 'unicodeout.rb'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-17 01:09:19 +00:00
matz 8ef5da3be1 consistent parentheses in assignment RHS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-16 17:47:19 +00:00
matz 3ec0bc3828 * lib/debug.rb (DEBUGGER__::Context::debug_command): do not call
debug_silent_eval() when $1 is not set. (ruby-bugs PR#1194)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-16 17:46:14 +00:00
nagai 653ad6fd4b (bug fix) instance variable @frame was used without initializing on
TkComposite module


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-16 15:14:41 +00:00
nagai 6559430fb7 If $DEBUG == true and some exception is caused in a callback
operation, Ruby/Tk shows a (verbose) backtrace information on
the callback process.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-16 14:53:47 +00:00
eban 0ed68132e5 2003-10-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-16 08:03:44 +00:00
matz 231d3e9654 * string.c (rb_str_upto): ("a"..."a").to_a should return [].
[ruby-core:01634]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-16 08:01:15 +00:00
nagai 98a3a9db97 Add Tk::EncodedString and Tk::UTF8_String class to support characters
using the \uXXXX escape to the UNICODE string.
sample/{demos-en,demos-jp}/unicodeout.rb are samples of Tk::UTF8_String.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-16 07:45:51 +00:00
nobu e45c4cd1ac * test/digest/test_digest.rb (test_eq): show failed class.
* test/ruby/test_iterator.rb (test_break, test_return_trace_func):
  test localjump destination.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-15 23:38:10 +00:00
knu c1b6f966be Add a XXX comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-15 13:50:51 +00:00
nahi 57292a2ab4 * lib/soap/netHttpClient.rb: use URI::HTTP#request_uri instead of
instance_eval('path_query').  [ruby-list:38575]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-15 11:25:41 +00:00
matz a23075a53e * lib/cgi.rb (CGI::Cookie): tiny typo fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-15 08:34:35 +00:00
nobu c12ae030ba * eval.c (ruby_run): just return FAILURE instead of parse error
count.  [ruby-list:38569]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-15 06:00:57 +00:00
usa 0ac52b49f4 * ext/digest/digest.c (rb_digest_base_alloc): need to initialize
buffer. [ruby-dev:21622]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-15 04:19:48 +00:00
matz 87025fdd43 * marshal.c (w_object): dump extended modules as well.
* marshal.c (r_object0): TYPE_USRMARSHAL should restore extended
  modules before invoking marshal_load.  these two fixes are done
  by Masatoshi Seki <m_seki@mva.biglobe.ne.jp>.

* parse.y (yylex): argument parentheses preceded by spaces should
  be warned; not error.  [ruby-talk:84103]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-15 02:27:56 +00:00