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

38696 Коммитов

Автор SHA1 Сообщение Дата
nobu dbffdff1e7 vm_dump.c: no new strings in signal context
* vm_dump.c (rb_vm_bugreport): get rid of making new strings
  inside signal context.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-28 06:44:22 +00:00
nobu badb4de72a variable.c: rb_search_class_path
* variable.c (rb_tmp_class_path): defer making temporary class
  path string.
* variable.c (rb_search_class_path): search class path or return
  Qnil or Qfalse if unnamed, not creating a temporary path.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-28 06:42:29 +00:00
nobu 1ef1a0c602 variable.c: preserve name encoding of subclass
* variable.c (rb_tmp_class_path): preserve name encoding of an
  anonymous instance of module/class subclass.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-28 06:02:06 +00:00
svn 0066608c13 * 2015-02-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-27 23:32:58 +00:00
odaira 87ac21590e * ext/pty/pty.c: AIX supports autopush. Patch by Perry Smith [ruby-core:58539] [Bug #9144]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-27 23:32:48 +00:00
hsbt d9c32d62a0 * lib/rubygems: Update to RubyGems 2.4.6 and HEAD(800f2e6).
Fixed #1159, #1171, #1173 on rubygems/rubygems
* test/rubygems: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-27 13:00:45 +00:00
hsbt b89e894399 * lib/rake: Update to rake (9237e74), typo fix and remove needless
private syntax.
* test/rake: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-27 11:55:47 +00:00
ko1 ca6b174078 * vm_core.h: define vm_svar_index.
* vm_insnhelper.c, vm.c, compile.c: use vm_svar_index names.
* iseq.h: remove DEFAULT_SPECIAL_VAR_COUNT.
  use VM_SVAR_FLIPFLOP_START instead.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-27 08:10:04 +00:00
nobu 689df4ae2a compile.c: debug prints to stderr
* compile.c: send all debug prints to stderr, as ruby_debug_printf
  does.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-27 07:23:23 +00:00
nobu 52d810e2f0 compile.c: fix function name
* compile.c (APPEND_ELEM): fix function name so that the first
  argument will be inserted.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-27 07:02:04 +00:00
nobu d8abb9daaf io.c: wipe away ioctl buffer
* io.c (setup_narg): wipe away expanded part of buffer to get rid
  of revealing uncleaned data.  reported by Dongkwan Kim <dkay AT
  kaist.ac.kr>.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-27 04:57:51 +00:00
svn 6bb470cf80 * 2015-02-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-27 03:55:07 +00:00
nobu 194c390769 thread.c: refine enums
* ext/thread/thread.c: remove unnecessary enum values and add end
  of enumerations.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-27 03:55:00 +00:00
nobu b84e28d133 io.c: discard buffer always
* io.c (copy_stream_fallback_body): discard buffer always before
  exit or exception.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-27 03:54:54 +00:00
nobu 19711c7803 io.c: redulce RSTRING_PTR and RSTRING_LEN
* io.c: replace repeating RSTRING_PTR and RSTRING_LEN with local
  variables.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-26 14:42:26 +00:00
nobu e1aba5bb2f test_io.rb: separate platform-specific tests
* test/ruby/test_io.rb: separate platform-specific tests at load
  time instead of runtime.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-26 14:42:24 +00:00
nobu 727f525108 runruby.rb: use File::PATH_SEPARATOR
* tool/runruby.rb: use File::PATH_SEPARATOR as
  DYLD_INSERT_LIBRARIES is colon-separated list.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-26 14:42:11 +00:00
nobu 68c062b1f0 configure.in: PRELOADENV
* configure.in (PRELOADENV): platform specific environment to
  pre-load the given shared libraries.

* tool/runruby.rb: use config['PRELOADENV'] instead of hardcoded
  LD_PRELOAD.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-26 08:01:54 +00:00
nobu fefdad109a configure.in: check USDT headers
* configure.in (RUBY_DTRACE_AVAILABLE): try compile to see if
  headers are available too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-26 00:48:10 +00:00
nobu 25f99aef58 fake.rb: rubyarchhdrdir for rubyspec
* common.mk (test-rubyspec): use fake script to set header
  directories.

* template/fake.rb.in (RUBYOPT): set -r option to propagate to
  forked processes.

* tool/fake.rb (prehook): set rubyarchhdrdir too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 17:19:57 +00:00
nobu 41b2f1ada4 complex.c: sign of zeros
* complex.c (rb_nucomp_mul): preserve sign of zeros without NaN by
  regularized values.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 17:05:26 +00:00
svn 694d6f27cd * 2015-02-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 15:04:58 +00:00
nobu 8b89b2c6b9 runruby.rb: update pattern
* tool/runruby.rb: no space may be after RUBY_VERSION.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 15:04:45 +00:00
nobu 909c4c0fd7 complex.c: specialize
* complex.c (rb_nucomp_mul): specialize real numbers and purely
  imaginary numbers, and get rid of multiplication by zero.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 14:16:05 +00:00
hsbt a96c88eca1 * spec/default.mspec: use default configuration file name.
cc69f337b0

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 13:25:11 +00:00
hsbt 8e1839093e * spec/default.mspec: remove specific version number.
7a909e925c

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 13:22:17 +00:00
svn 55d749132c * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 13:08:16 +00:00
usa dad59fcd12 * ext/win32/Win32API.rb (initialize): accept both a string and an array
for the arguments of the imported function.
  reported by Aaron Stone [ruby-core:68208] [Bug #10876] [Fixes GH-835]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 13:08:01 +00:00
nobu 25edb07cb3 mkconfig.rb: delete DESTDIR
* tool/mkconfig.rb (RbConfig): delete default DESTDIR set by
  --with-destdir.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 09:17:33 +00:00
nobu 7722b3b67f runruby.rb: follow r49740
* tool/runruby.rb: follow the change of RUBY_VERSION check in
  rbconfig by r49740.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 09:17:28 +00:00
normal be5b7f6130 signal.c: preserve errno
* signal.c (sighandler): preserve errno
  Patch by Steven Stewart-Gallus <sstewartgallus00@mylangara.bc.ca>
  [ruby-core:68172] [Bug #10866]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 09:17:17 +00:00
nobu f4726dcdaa dir.c: same encoding to the pattern
* dir.c (push_pattern, push_glob): make globbed file names same
  encoding to the given pattern.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 06:59:39 +00:00
nobu ca3f71b8b5 complex.c: move optimization
* complex.c (f_complex_polar): move optimization for orthogonal
  cases from rb_nucomp_mul.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 06:48:55 +00:00
naruse 7d24866746 * tool/merger.rb: support 2.1+ versioning scheme.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 06:35:47 +00:00
nobu 7b65fb292a complex.c: M_PI in VC
* complex.c (_USE_MATH_DEFINES): needed for M_PI in Microsoft
  Visual C.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 02:25:22 +00:00
nobu 5ac58b272d insns.def: reverse
* insns.def (reverse): add new instruction for massign.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 00:20:39 +00:00
nobu 2c8cea84cc compile.c: unbalanced massign
* compile.c (compile_massign): adjust stack for unbalanced massign.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25 00:20:35 +00:00
gogotanaka 0c3a0d6588 * lib/cmath.rb (log): raise ArgumentError when more than 2 arguments
are passed. [ruby-core:66143] [Bug #10487]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24 23:53:21 +00:00
marcandre 0c4631b880 * lib/uri: [doc] Update common.rb [ci-skip] [fixes GH-838]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24 18:09:10 +00:00
svn c09c1ccb91 * 2015-02-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24 17:24:56 +00:00
gogotanaka 1765438110 * test/ruby/test_math.rb: Use assert_infinity instead of assert_equal(1.0/0, ...).
* test/ruby/test_math.rb: Add tests for overriding Integer#to_f.
  [ruby-core:67919] [Misc #10809]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24 17:24:45 +00:00
nobu 6a68a23109 common.mk: RUBY_TESTOPTS
* common.mk (TESTOPTS): initialize by the environment variable
  RUBY_TESTOPTS, which is prefixed to get rid of conflict.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24 14:02:38 +00:00
nobu ed00379c79 numeric.c: calculate complex numbers
* numeric.c (fix_plus, fix_mul): calculate complex numbers for
  commutative operations.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24 13:59:06 +00:00
nobu 3bcb10ad2a complex.c: multiply as rotation
* complex.c (nucomp_mul): calculate as rotation in complex plane
  if matrix calculation resulted in NaN.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24 13:58:52 +00:00
gogotanaka 87e3aec84d * test/ruby/test_math.rb(test_cbrt): Add an assertion for Math.cbrt(1.0/0)
and move #test_cbrt to more proper place.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24 12:57:23 +00:00
ko1 fbc8841a8f * vm_insnhelper.c (lep_svar_place, lep_svar_get): do not create
additional T_NODE object (svars holder) when only getting
  svars.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24 10:11:14 +00:00
nobu 759724fa2d mkrunnable.rb: try mklink
* tool/mkrunnable.rb (Mswin#ln_safe): try mklink command if not
  linked already.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24 04:59:03 +00:00
nobu c8141a8158 win32.c: reduce memory size
* win32/win32.c (szInternalCmds): reduce memory size, from 506 on
  32bit and 702 on 64bit to 490 bytes, and remove relocations.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24 04:51:39 +00:00
nobu fa1575d188 common.mk: prefix timestamp file by "."
* common.mk (ENC_TRANS_D): prefix by "." to clarify that timestamp
  file for build directory is under the build directory.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24 04:51:33 +00:00
nobu 7294d08d48 dir.c: use packed structs
* dir.c (is_case_sensitive, replace_real_basename): [OSX] use
  packed structs instead of arrays to suppress warning by older
  versions of gcc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24 03:34:10 +00:00