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

28705 Коммитов

Автор SHA1 Сообщение Дата
nobu 31e6f72c8e vm.c: save blockprocval
* vm.c (rb_vm_make_proc): save the proc made from the given block so
  that it will not get collected.  [ruby-core:50545] [Bug #7507]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 13:46:11 +00:00
kazu 1bddcc72f6 fix typos and remove trailing spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 13:35:05 +00:00
ngoto 9920da5593 * ext/dl/lib/dl/func.rb (DL::Function#bind): When Fiddle is used,
@ptr should be updated. This fixes SEGV raised in DL::Function#call
  after calling DL::Function#bind. [Bug #7516] [ruby-dev:46708]
* test/dl/test_func.rb (test_bind): test for the above


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 13:24:19 +00:00
tarui 17a11774ca * thread.c (rb_thread_s_async_interrupt_timing): have to check ints before jumpping out.
* test/ruby/test_thread.rb (test_async_interrupt_with_return): add test
	  rescue has to catch a queued async exception at the time of return.
	* test/ruby/test_thread.rb (test_async_interrupt_with_break): add test
	  rescue has to catch a queued async exception at the time of break.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 09:54:58 +00:00
ko1 592e87e1f8 * test/ruby/memory_status.rb: suppress warning.
A patch from NAKAMURA Usaku.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 07:56:07 +00:00
drbrain 16c34f9df0 * lib/rdoc/parser/changelog.rb: Parse more ChangeLog file variations.
* test/rdoc/test_rdoc_parser_changelog.rb:  Test for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 07:07:28 +00:00
nobu 8d7e3c6aba * test/mkmf/test_have_func.rb: tests for have_func.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 06:30:39 +00:00
nobu 34dc263af8 test_have_library.rb: assert_have_library
* test/mkmf/test_have_library.rb (assert_have_library): extract.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 06:30:36 +00:00
nobu 228d36fb35 test_have_macro.rb: TestHaveMacro
* test/mkmf/test_have_macro.rb (TestMkmf::TestHaveMacro): rename.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 06:30:34 +00:00
nobu 94cb1c9b4b * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 04:08:17 +00:00
nobu 1dd7e5690c * test/mkmf/test_have_library.rb: tests for have_library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 03:59:39 +00:00
ngoto f1841f43eb * ext/dl/lib/dl/func.rb (DL::Function#initialize, DL::Function#bind):
ABI should be set by using CFunc#calltype even when Fiddle is used.
  When Fiddle is used and a block is given, name shoud not be ignored.
  [ruby-core:50562] [Bug #7514]
* ext/dl/lib/dl/import.rb (DL::Importer#bind_function): should respect
  abi and name when Fiddle is used.
* test/dl/test_func.rb (test_name_with_block): test for "name" method
  with giving a block.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 03:20:05 +00:00
zzak 342d2f2aa6 * doc/shell.rd, doc/shell.rd.ja: Removed stale doc files
* lib/shell.rb, lib/shell/*: Merge and updates docs from doc/shell.rd*


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 02:55:07 +00:00
ko1 895bb667b2 * test/ruby/test_settracefunc.rb: disable trace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 02:43:31 +00:00
nobu 1692d49338 mkmf.rb: different strings from conflict markers
* lib/mkmf.rb (MakeMakefile#macro_defined?): use clearly different
  strings from conflict markers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 02:37:41 +00:00
kazu 1d50afc2a2 tabify and fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 02:00:01 +00:00
nobu df8d84bb73 * ChangeLog: remove conflict marker.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-05 01:23:03 +00:00
zzak 32a75432b6 * lib/README: Add rdoc modeline directive and formatting libs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 19:24:37 +00:00
tarui 9f9380edf0 typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 19:11:42 +00:00
tarui afa3ce2518 * test/ruby/test_thread.rb (test_async_interrupt_blocking): bugfix
about defared check


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 19:06:46 +00:00
tarui 64f634f1de * vm_core.h (RUBY_VM_CHECK_INTS_BLOCKING): check async queue everytime.
* thread.c (sleep_forever): check RUBY_VM_CHECK_INTS_BLOCKING first.
        * thread.c (sleep_timeval): ditto.
        * test/ruby/test_thread.rb (test_async_interrupt_blocking): add a test
          exceptions are correctly defared and raised on :on_blocking context.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 18:38:21 +00:00
nobu 28ee4c2966 id.c: generate
* common.mk, defs/id.def, template/id.c.tmpl: generate id.c as well as id.h.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 17:36:19 +00:00
usa 01380620bd * test/ruby/memory_status.rb: fixed small typos introduced at r38182.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 16:08:05 +00:00
kosaki 70d603a412 supress warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 16:06:43 +00:00
kosaki 3765f668c6 supress warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 16:05:40 +00:00
kosaki bbfbf662cc * thread.c (rb_mutex_owned_p): new method that return current
thread have the target mutex or not. [Feature #7505] [ruby-dev:46697]
* test/ruby/test_thread.rb (test_mutex_owned, test_mutex_owned2):
  test for the above.
* NEWS: new for the above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 16:02:07 +00:00
svn 1bdf339516 * 2012-12-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 15:10:23 +00:00
seki d8164d50c9 * lib/erb.rb (make_compiler, add_put_cmd, add_insert_cmd): extract
methods.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 15:10:17 +00:00
nobu 784019f740 id.h.tmpl: remove unused id
* template/id.h.tmpl (attr_ids): remove Bitblt and Answer which are no
  longer predefined.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 14:54:21 +00:00
ngoto 34422887c2 * test/ruby/memory_status.rb (Memory): use fiddle/types if available.
* test/ruby/memory_status.rb (Memory::Win32): :stdcall is needed on
  x86 WIN32. This commit partly reverts r38054.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 09:55:07 +00:00
ngoto b6b8960018 * ext/fiddle/lib/fiddle/types.rb: copied from ext/dl/lib/dl/types.rb
and modified for Fiddle, needed for migration from DL to Fiddle.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 09:08:12 +00:00
ngoto 7b103012dc * ext/fiddle/lib/fiddle/import.rb (import_function, bind_function):
should respect call_type for migration from DL to Fiddle.
  [Bug #7484] [ruby-core:50405]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 09:00:23 +00:00
kazu b2e6a26a37 fix typos
unification is uncountable

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 08:39:59 +00:00
nobu b3be67bdf1 * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 07:57:58 +00:00
drbrain 95ae31b70b * .document: Added ChangeLog and doc/ChangeLog-* as documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 07:54:13 +00:00
drbrain 38b9667310 * lib/rdoc/parser/changelog.rb: Added a ChangeLog parser to RDoc.
* lib/rdoc/parser.rb:  ditto
* test/rdoc/test_rdoc_parser_changelog.rb:  Test for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 07:50:48 +00:00
nobu 086fce3135 * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 07:24:21 +00:00
nobu cfa4a59da8 marshal.c: PRIsVALUE
* marshal.c (path2class, path2module): use PRIsVALUE.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 07:23:34 +00:00
nobu dd2eb69457 marshal.c: rb_check_funcall
* marshal.c (w_object, marshal_dump, marshal_load): use
  rb_check_funcall if possible.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 07:23:25 +00:00
nobu 2974b00f17 marshal.c: GC guard
* marshal.c (w_object, marshal_dump, r_object0, marshal_load): use
  RB_GC_GUARD() (directly or indirectly) instead of volatile.
* variable.c (rb_path_to_class): prevent the arguemnt from GC.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 07:23:20 +00:00
ko1 d3842de5c9 * vm_opts.h: enable optimization - operand unifications.
Operand unification technique enable to combine
  an instruction and specific operands and make new
  instruction.
* defs/opt_operand.def: add several configuration
  of operand unifications.
* insns.def: use `int' instead to suppress warning.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 04:57:50 +00:00
naruse 51ee08fd71 Suppress warning: uninitialized variable [ruby-core:50470] [Bug #7494]
Conditional operator is required to return true or false.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 01:01:37 +00:00
naruse f68ab20044 * parse.y: replase parser->enc with current_enc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-04 01:01:34 +00:00
drbrain 56fca7f141 * README.EXT: Converted to RDoc format
* README.EXT.ja:  ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-03 23:34:17 +00:00
drbrain ec05ade531 * lib/rdoc/ri/driver.rb: Fixed ri page display for files with
extensions.
* test/rdoc/test_rdoc_ri_driver.rb:  Test for above


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-03 23:32:39 +00:00
drbrain f8f5a9eb4e * .document: Add NEWS for `ri ruby:NEWS`
* NEWS:  Set format as rdoc
* doc/NEWS-1.8.7:  ditto
* doc/NEWS-1.9.1:  ditto
* doc/NEWS-1.9.2:  ditto
* doc/NEWS-1.9.3:  ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-03 19:12:03 +00:00
svn 943da6d279 * 2012-12-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-03 15:08:07 +00:00
kazu 2c5c076009 adjust style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-03 15:08:00 +00:00
nagachika ef0003a448 * ChangeLog: fix a typo for r38151.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-03 14:55:13 +00:00
ko1 9975712793 * vm_exec.c: check VM_COLLECT_USAGE_DETAILS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-03 11:38:43 +00:00