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

8805 Коммитов

Автор SHA1 Сообщение Дата
ko1 e98f7e1eaa * common.mk: change "gdb" rule. You can debug miniruby with
$(srcdir)/test.rb on gdb by this rule (type "make gdb").
  If you write break points to "breakpoints.gdb" on $srcdir,
  gdb runs with this file.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-25 15:58:27 +00:00
ko1 fd6f1f0a71 * win32/Makefile.sub: enable -Zi (debug) option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-25 02:48:19 +00:00
ko1 757ed3ccf1 * ruby.h: define RUBY_VM macro and remove NATIVETHREAD* macros.
* intern.h: ditto.
* signal.c (posix_signal): remove unused function
  posix_nativethread_signal().



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-25 02:43:43 +00:00
ko1 571317ee30 * thread.c (rb_thread_run): fix to ANSI style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-25 02:36:58 +00:00
aamine 565bcdcb30 * bootstraptest/runner.rb: show source code in error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-25 02:10:38 +00:00
ko1 71986ef6bc * yarvcore.h:
rename:
  rb_iseq_t#file_name -> filename
  rb_iseq_t#local_tbl -> local_table
  add:
  rb_iseq_t#local_table_size
* compile.c: separate local_table_size and local_size
  (local variable size)
* blockinlining.c: apply above rename.
* compile.h: ditto.
* eval.c: ditto.
* iseq.c: ditto.
* proc.c: ditto.
* vm.c: ditto.
* vm_dump.c: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-25 01:34:33 +00:00
aamine 9c9b619799 * bootstraptest/runner.rb: add lib/ to load path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-25 01:28:14 +00:00
nobu 96110732f1 * rubyio.h (HAVE_RB_IO_T): macro to tell if rb_io_t is defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-25 01:16:58 +00:00
aamine f42150744c * common.mk: new target "btest", to run bootstraptests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 10:39:30 +00:00
nobu 5b10c170e5 * file.c, gc.c, io.c, ruby.h, rubyio.h, win32/win32.h (rb_io_t):
renamed from OpenFile.

* ext/dl/cptr.c, ext/io/wait/wait.c, ext/openssl/ossl.h,
  ext/openssl/ossl_bio.c, ext/openssl/ossl_ssl.c, ext/pty/pty.c,
  ext/readline/readline.c, ext/socket/socket.c: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 10:30:50 +00:00
aamine 793c649f65 * bootstraptest/runner.rb: new option -v,--verbose.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 10:28:36 +00:00
aamine e9ee00eead * yarvtest/test_method.rb: removed (merged to bootstraptest).
* yarvtest/test_class.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 09:56:02 +00:00
nobu b1b44331de * thread.c (DEBUG_OUT): leave pointer size to runtime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 09:54:49 +00:00
nobu 8ac59769bc * file.c (rb_thread_flock, rb_file_flock): use UBF feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 09:45:41 +00:00
aamine 145f0b0f50 * bootstraptest/test_class.rb: new file.
* bootstraptest/test_method.rb: add tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 09:45:25 +00:00
nobu eb3f1f7aeb * file.c (rb_thread_flock, rb_file_flock): use UBF feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 09:44:41 +00:00
nobu c034fce5ce * process.c (rb_waitpid_blocking, rb_waitpid): use UBF feature.
* thread_win32.ci (rb_w32_wait_events_blocking): blocking version.

* win32/win32.c (waitpid): use rb_w32_wait_events_blocking().




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 09:43:40 +00:00
nobu f425798fda * intern.h (rb_thread_blocking_region): add prototype.
* thread.c (BLOCKING_REGION): restore previous UBF.

* thread.c (rb_thread_blocking_region): default UBF to interrupt
  in system dependent way by RB_UBF_DFL.
  + ubf_select() on posix system
  + ubf_handle() on Win32
  + none on cygwin



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 09:41:41 +00:00
nobu 5374de14e3 * thread.c (rb_thread_debug): added runtime debugging flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 09:39:25 +00:00
aamine b0d8301744 * parse.y (f_arg, opt_f_block_arg): ripper should export VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 08:45:58 +00:00
aamine 45c7ead6ae * bootstraptest/runner.rb: fix syntax error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 07:53:14 +00:00
aamine d7c2f391fc * bootstraptest/runner.rb: new option --help.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 07:51:52 +00:00
aamine 18e1d27353 * bootstraptest: new test suite.
* bootstraptest/runner.rb: new file.
* bootstraptest/test_literal.rb: new file.
* bootstraptest/test_method.rb: new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 07:47:53 +00:00
usa 1930f14533 * win32/win32.c (StartSocket): remove unnecessary code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 07:31:11 +00:00
matz 02c147f04e * parse.y (struct local_vars): remove unused nofree member from
struct.

* parse.y (parser_free): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 07:05:48 +00:00
shugo 1adef15072 * lib/thread.rb (ConditionVariable#broadcast): use Mutex
instead of Thread.exclusive.

* lib/monitor.rb (MonitorMixin#mon_exit): unset @mon_owner
  before calling Mutex#unlock.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 07:01:18 +00:00
aamine 0fa6a335d1 ignore static library libruby-static.a
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 06:53:08 +00:00
aamine dfd5c685c1 * parse.y (program): remove useless assignment to reduce warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 06:51:59 +00:00
matz b2035db684 * parse.y (lambda): remove unused clause from the rule to stop
warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 06:48:05 +00:00
shugo 97d26f32bb * lib/thread.rb: do not redefine Mutex#synchronize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 06:42:04 +00:00
shugo 33a9e63ad9 * lib/monitor.rb: rewritten using Mutex/ConditionVariable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 06:15:04 +00:00
ko1 61d521117a * lib/soap/mapping/factory.rb: catch up with spec changes (return
Symbols instead of Strings).
* lib/soap/mapping/mapping.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 05:22:05 +00:00
ko1 0fe72040e4 * parse.y, node.h, compile.c: change node tree structure. a purpose
of this change is to unify argument structure of method and block.
  this change prohibits duplicate block parameter name.
  new argument infromation:
  NODE_ARGS     [m: int, o: NODE_OPT_ARG, ->]
  NODE_ARGS_AUX [r: ID, b: ID, ->]
  NODE_ARGS_AUX [Pst: id, Plen: int, init: NODE*]
  optarg information:
  NODE_OPT_ARGS [idx, expr, ->]
* vm_macro.def: ditto.
* gc.c: ditto.
* iseq.c: ditto.
* compile.h: fix debug function name.
* test/ripper/test_scanner_events.rb: |_,_,foo| -> |_1,_2,foo|
* test/ruby/test_lambda.rb: disalbe test temporarily.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 02:07:05 +00:00
ko1 c5148e0383 * test/testunit/test_testcase.rb: catch up with current instance
variable spec.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 01:49:43 +00:00
ko1 e3155f4200 fix ChangeLog.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 01:45:18 +00:00
ko1 287aa3324a * common.mk: change vm_macro.def -> vm_macro.inc rule.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 01:41:46 +00:00
aamine 6a48d31ced * ext/racc/cparse/cparse.c (cparse_params_mark): remove useless rb_gc_mark. Thanks Tomoyuki Chikanaga. [ruby-dev:30405]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-24 01:38:26 +00:00
suke 1fcf93350f * ext/win32ole/win32ole.c: add WIN32OLE_VARIANT.array,
WIN32OLE_VARIANT#value=, refactoring.

* test/win32ole/test_win32ole_variant.rb: add some test for
  WIN32OLE_VARIANT.array, WIN32OLE_VARIANT#value=.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 22:39:25 +00:00
aamine bd3ee06295 * test/ruby/test_yield.rb: new test.
* yarvtest/test_yield.rb: removed (moved to test_yield.rb).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 09:38:08 +00:00
usa bb022bed3a * thread.c (rb_thread_polling): check interrupts here.
* thread_win32.ci (w32_wait_events): rename from w32_wait_event(), and
  now receive multiple event handles.

* win32/win32.c (wait_events, rb_w32_main_context): removed.

* thread_win32.ci (rb_w32_wait_events): new function.

* thread_win32.ci, win32/win32.c (rb_w32_sleep, rb_w32_Sleep): move
  from win32/win32.c to thread_win32.ci, and use w32_wait_events().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 09:33:53 +00:00
aamine bcd3345136 * test/ruby/test_optimization.rb: new test (merges test_opts.rb).
* yarvtest/test_opts.rb: removed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 09:13:49 +00:00
aamine f52fd2165b * test/ruby/test_assignment.rb: merge yarvtest/test_massign.
* yarvtest/test_massign.rb: removed (merged to test_assignment.rb).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 07:59:54 +00:00
usa 3207cd3897 * signal.c (sighandler): need to re-install sighandler on some
platforms.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 06:59:12 +00:00
aamine f35a641adb * test/ruby/test_primitive.rb: new test.
* yarvtest/test_bin.rb: removed (altered by test/ruby/test_{literal,primitive}.rb).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 06:41:25 +00:00
usa 5834171904 * win32/win32.c (set_pioinfo_extra): simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 06:07:55 +00:00
aamine a9921d08f9 * test/ruby/test_literal.rb: new test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 05:23:33 +00:00
knu 9af03319fb fix credit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 03:44:46 +00:00
knu e17884c45c * lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): Make the
Content-Length parameter optional for responses in
  xmlrpc/client.rb; suggested by Daniel Berger
  <Daniel.Berger@qwest.com> and approved by the maintainer.

* lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): Add DateTime
  support to xmlrpc; approved by the maintainer.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 03:42:01 +00:00
aamine 67c94cae96 * parse.y (lambda): add ripper event. This fixes bus error on "make test-all".
* ext/ripper/extconf.rb: do not stop build.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 03:25:26 +00:00
matz 606734f0b1 * parse.y: remove dyna_check_gen() prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 03:16:57 +00:00