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

2361 Коммитов

Автор SHA1 Сообщение Дата
nobu 443ddb0969 * parse.y: integrate operations for stack_type. [ruby-dev:21681]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-23 04:44:04 +00:00
nahi 00ac002f79 * test/soap/calc/*, test/soap/helloworld/*: set logging threshold to ERROR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-22 15:43:10 +00:00
nobu f136a3225e * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
ignore tests which raised LoadError.

* test/drb/drbtest.rb, test/ruby/test_beginendblock.rb,
  test/ruby/test_system.rb: avoid requiring same file twice.

* test/drb/test_drbssl.rb, test/drb/test_drbunix.rb: should not use
  ARGV unless invoked directly.  do not create test cases unless
  required libraries are available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-22 03:53:41 +00:00
matz 903f98a643 * eval.c (ruby_cleanup): should not ignore exit_value in END
execution. [ruby-dev:21670]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 17:38:37 +00:00
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
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
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
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
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
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
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
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
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
nobu 0c25b62505 ruby-list
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-15 00:49:35 +00:00
usa 888d06be01 * ext/enumerator/enumerator.c (enumerator_each): avoid VC++ warning.
* ext/syck/syck.h: include stdio.h for definition of FILE.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-15 00:32:44 +00:00
why c76c3349e4 * ext/syck/bytecode.c: Checkin of YAML bytecode support.
* ext/syck/gram.c: Ditto.

* ext/syck/syck.c: Ditto.

* ext/syck/token.c: Ditto.

* ext/syck/handler.c: Ditto.

* ext/syck/handler.c: Now using 'tag' rather than 'taguri' in type URIs.

* ext/syck/rubyext.c: Ditto (on both counts).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 23:15:19 +00:00
knu 3982f82b03 * lib/generator.rb: A new library which converts an internal
iterator to an external iterator.

* lib/abbrev.rb: A new library which creates an abbreviation table
  from a list.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 20:14:20 +00:00
nagai 6bd9229984 ext/tk/sample/demos-en/entry3.rb, ext/tk/sample/demos-jp/entry3.rb :
* new demo-scripts

ext/tk/sample/demos-en/widget, ext/tk/sample/demos-jp/widget :
 * add entries for 'entry3.rb'


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 19:36:09 +00:00
knu 6d9c20d6a3 * test/digest/test_digest.rb: Moved from ext/digest/test.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 19:34:46 +00:00
nagai e437d32cc1 ChangeLog: forgot. sorry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 18:55:23 +00:00
nagai 382b4ae9a3 ext/tcltklib/tcltklib.c:
* replace Tcl/Tk's vwait and tkwait to switch on threads smoothly and
   avoid seg-fault.
 * add TclTkIp._thread_vwait and _thread_tkwait for waiting on a thread.
   ( Because Tcl/Tk's vwait and tkwait command wait on a eventloop. )
ext/tk/lib/multi-tk.rb:
 * support TclTkIp._thread_vwait and _thread_tkwait
ext/tk/lib/tk.rb:
 * now, TkVariable#wait has 2 arguments.
   If 1st argument is true, waits on a thread. If false, waits on an eventloop.
   If 2nd argument is true, checks existence of rootwidgets. If false, doesn't.
   Default is wait(true, false).
 * add TkVariable#tkwait(arg) which is equal to TkVariable#wait(arg, true)
 * wait_visibility and wait_destroy have an argument for waiting on a
   thread or an eventloop.
 * improve of accessing Tcl/Tk's special variables
ext/tk/lib/tkafter.rb:
 * support 'wait on a thread' and 'wait on an eventloop'


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 15:25:45 +00:00
nahi 6adad13946 forgot..
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 15:14:49 +00:00
nobu 0b841783b5 * eval.c (ruby_finalize_0): return the given exit status unless
SystemExit got raised.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 10:09:39 +00:00
nobu 921d595fd4 * intern.h (ruby_stop): never return.
* ruby.h (ruby_run): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 02:53:53 +00:00
akr 839ef7bfbb * lib/pathname.rb (realpath): make ELOOP check bit more robust.
(children): prepend self by default.
  (chroot): obsoleted.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-13 19:46:07 +00:00
nobu e7257aa72e * eval.c (rb_require_safe): segfault after loading .so.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-13 17:29:34 +00:00