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

25741 Коммитов

Автор SHA1 Сообщение Дата
nobu d28c18966d * regint.h (BITS_IN_ROOM, BS_ROOM, BS_BIT): suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 09:37:44 +00:00
nobu 9accaad5c4 * configure.in (Makefile): add missing test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 06:04:09 +00:00
nobu cd71db0ad6 * configure.in (Makefile): check with svn info, since svn 1.7 doesn't
have .svn under descendent directories.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 05:59:48 +00:00
nobu 11c57111f9 * configure.in (Makefile): get rid of confliction with -j.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 05:59:45 +00:00
nobu 3417dd28a6 TRY_LINK needs EXEEXT
* lib/mkmf.rb (TRY_LINK): need EXEEXT for cross-compiling.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 04:57:04 +00:00
nobu 3911327572 * ext/openssl/ossl_pkey_rsa.c (rsa_generate): fix argument type.
[Bug #6094]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 04:43:38 +00:00
nobu 24513fe21e workaround for mingw
* lib/mkmf.rb (try_link0, try_compile, try_cpp): check if the target
  file get created actually.  workaround for the case that the exit
  status of a cygwin program seems lost on mingw.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 02:17:30 +00:00
nobu b1bdada158 remove conftest files
* lib/mkmf.rb (try_constant): remove conftest files.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 02:17:26 +00:00
svn 9959405655 * 2012-03-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 02:14:47 +00:00
usa caf627afce * test/ruby/test_io.rb (TestIO#test_pos_with_getc): updated.
see [ruby-core:43550]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 02:14:42 +00:00
naruse b2cc0976a7 * regcomp.c: Merge Onigmo 3d855b30d574536d3ae600260208c6624ae4791c.
[Bug#6143] [Bug#6144] [Bug#6145]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-21 10:53:06 +00:00
svn 51f41bb843 * 2012-03-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-21 08:03:14 +00:00
usa af86dba25a * test/ruby/test_io.rb (TestIO#test_pos_with_getc): added.
see [Bug #6179][ruby-core:43518]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-21 08:03:08 +00:00
svn 905eb21dca * 2012-03-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-20 13:55:03 +00:00
nobu 1e42030f2a test_thread: test_condvar_wait_not_owner duplicates test_condvar_nolock
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-20 13:54:59 +00:00
shugo ded27bf5dc * enumerator.c (lazy_flat_map_func): convert the block value to
Array if it doesn't respond to each.  [ruby-core:43334]
  [Bug #6155]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-19 08:22:29 +00:00
shugo 592a629bd0 * enum.c (zip_i): variadic argument needs explicit cast on the
platforms where VALUE is longer than int.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-19 07:39:12 +00:00
shugo 831898bd99 * enumerator.c (enumerable_lazy): add an example of take and first
to the documentation.  [ruby-core:43344] [Bug #6158]
  add the description of the behavior when a block is given to zip
  or cycle.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-19 06:41:02 +00:00
nobu 0d1c2268a8 * compile.c (iseq_specialized_instruction): DRY and replace chain
of if-else with switch for special instructions.  based on a
  patch by Vasfed.  https://github.com/ruby/ruby/pull/105


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-19 06:20:55 +00:00
shyouhei d4f0f28430 * test/test_pty.rb: same as r29280, skip tests when PTY allocation
failed (that's not our fault).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-19 06:08:44 +00:00
svn 27c5389879 * 2012-03-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-18 15:21:04 +00:00
nobu f4aff7feb1 num2ll and num2ull
* ext/-test-/num2int/num2int.c (print_num2ll, print_num2ull): define
  only if long long is available, and use long long printf modifier
  checked by configure.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-18 15:21:04 +00:00
nobu bd377449f0 volatile errinfo
* eval_jump.c (rb_exec_end_proc): need volatile to prevent from
  setjmp/longjmp.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-18 15:21:00 +00:00
nobu e30dbb3671 fix condition for free
* gc.c (aligned_free): fix condition for free.  memalign() and
  posix_memalign() are not defined together normally.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-18 14:21:31 +00:00
yugui 1d006f353d * gc.c (aligned_malloc, aligned_free): added fallback implementations
for platforms like OSX Leopard.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-18 11:15:50 +00:00
nobu 3175fbf194 * win32/Makefile.sub: put an empty line between stub and script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-18 10:45:05 +00:00
nobu ed4c5f38ba * bignum.c (rb_big_pow): estimate result bit size more precisely.
[ruby-core:30735][Feature #3429]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-18 08:17:50 +00:00
nobu 2555f3f5bf * gc.c (free_method_entry_i): method entry may be in
unlinked_method_entry_list.  [ruby-core:43383][Bug #6171]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-18 08:17:39 +00:00
akr 7e78f6f526 * compile.c: typo fix by Run Paint Run Run.
[ruby-core:28368] [Bug #2824]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-18 06:28:41 +00:00
svn ef4ea58cbf * 2012-03-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-18 01:03:39 +00:00
ktsj 42c18fe764 * lib/profiler.rb: support calling singleton methods of
an instance of BasicObject.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-18 01:03:35 +00:00
kazu 30c0db4a85 follow r35040
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 22:05:31 +00:00
drbrain db3bce11dd * object.c: Fix indentation of Class#inherited example.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 21:57:24 +00:00
kazu ea6511c63a * string.c (trnext): fix bug with string ending with '\\'.
[ruby-dev:45374][Bug #6160]

* test/ruby/test_string.rb (TestString#test_delete): test for
  above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 16:49:44 +00:00
kazu 2cab78a9ff remove a trailing space [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 15:30:01 +00:00
svn 9a4c2a98ed * 2012-03-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 15:20:07 +00:00
kazu 25755e38b7 remove a trailing space
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 15:20:03 +00:00
nobu ba20fe6289 * string.c (trnext): should advance char-wise.
[ruby-core:43335][Bug #6156]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 11:06:27 +00:00
nobu 7af3e9f08b fix unreachable warning line number
* parse.y (block_append_gen): fix unreachable warning line number.
  should warn at the code, not jump.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 08:42:16 +00:00
nobu be2dc4434a fix typo
* test/ruby/test_module.rb (test_method_redefinition): fix typo.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 08:38:27 +00:00
nobu 2b906bf226 verbose_warning
* test/ruby/envutil.rb (verbose_warning): should not hide execptions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 08:38:24 +00:00
nobu d19e5328d8 suppress warning.
* test/ruby/envutil.rb: suppress warnings.

* test/ruby/test_exception.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 08:38:22 +00:00
nobu 36ada1b318 fix indent
* test/ruby/test_exception.rb (test_exception): fix indent.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 08:38:20 +00:00
nobu 9faa910961 Tempfile#open
* test/ruby/test_exception.rb (test_systemexit_new,
  test_exception_in_exception_equal): use Tempfile#open.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 08:38:18 +00:00
nobu 62cdd6e64a fix argument order
* test/ruby/test_parse.rb (test_void_expr_stmts_value): expected value
  comes first.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 08:38:16 +00:00
nobu a87f0aa071 bug number
* test/ruby/test_syntax.rb (test_keyword_rest): give the bug number to assertions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 08:38:13 +00:00
nobu 19451891d8 * enum.c (enum_take): allocate buffer array before iteration, as well
as enum_first did.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 08:33:10 +00:00
nobu a920c29c16 * enum.c (enum_first): remove duplication.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 06:02:37 +00:00
yugui a157c85a7f * load.c (ruby_init_ext): don't free the given pointer itself.
It is not guaranteed even that the pointer is on heap.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 05:45:39 +00:00
shugo 58d1b85c78 * vm_eval.c (rb_mod_module_eval): fix the documentation of
class_eval to mention class variable lookup.  [ruby-core:40649]
  [Bug #5544]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-16 05:38:52 +00:00