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

17403 Коммитов

Автор SHA1 Сообщение Дата
usa 56e69d7109 * win32/win32.c (readdir_internal): free old temporary filename.
[ruby-core:24820]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 05:16:56 +00:00
nobu 265bd9e661 * string.c (rb_str_new_frozen): must not change encoding of frozen
shared string.  [ruby-dev:39068]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 04:00:03 +00:00
nobu df9f513387 * configure.in (rb_cv_broken_crypt): needs more checks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 02:52:00 +00:00
matz 5703c1756c * sprintf.c (rb_str_format): should preserve format encoding
before raising CompatibilityError.  [ruby-list:46274]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 23:53:21 +00:00
naruse e666111955 * encoding.c (rb_enc_compatible): If a string is empty and
other's encoding is US-ASCII, returns the empty string's encoding.
  [ruby-list:46274]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 22:52:39 +00:00
naruse 8b83fc2704 * encoding.c (is_data_encoding): fix condition.
* encoding.c (enc_capable): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 22:39:54 +00:00
svn 9a28cb243c * 2009-08-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 15:07:00 +00:00
nobu d26cfd565d * test/ruby/test_rubyoptions.rb (test_shebang): fix for new behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 15:06:51 +00:00
tadf 8e6a754b5d * lib/date.rb (complete_frags): Monday must be suitable for %W's
default day.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 14:14:41 +00:00
akr 3aabcaa3da rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 13:27:46 +00:00
nobu 8dfd78fc1c * numeric.c (num_divmod): fixed rdoc. [ruby-core:24862]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 12:42:53 +00:00
svn 7e30520ac2 * 2009-08-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 00:13:51 +00:00
nari 915fe3d784 * ChangeLog: fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 00:13:35 +00:00
nobu 60d1320326 * include/ruby/intern.h (rb_path2class): no deprecation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-10 12:45:33 +00:00
kazu 2915bc4dc2 fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-10 09:10:18 +00:00
nari 51b7ec84a2 * ChangeLog: sign why.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-10 07:13:56 +00:00
nari de5f15bbe4 * gc.c: reject unused longlife gc.
* debug.c: ditto.

* include/ruby/intern.h: ditto.

* include/ruby/ruby.h: ditto.

* iseq.c: ditto.

* node.h: ditto.

* vm_insnhelper.c: ditto.

* vm_insnhelper.h: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-10 02:40:34 +00:00
nobu a8cf451714 * marshal.c (must_not_be_anonymous): fixed silly miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-09 22:02:31 +00:00
nobu 3ece383660 * marshal.c (class2path, w_unique, w_extended, w_class, w_uclass):
deal with non-ascii class path.  [ruby-core:24790]

* marshal.c (r_unique, path2class, path2module, obj_alloc_by_path),
  (r_object0): ditto.

* variable.c (rb_path_to_class): new encoding-aware function to
  get a class from its name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-09 21:55:55 +00:00
nagai 979ac967a9 * ext/tk/extconf.rb (search_tclConfig): last change isn't enough. fixed it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-09 12:24:55 +00:00
nobu 83c5dfb7ea * common.mk (ruby.imp): excluded prelude.o to get rid of circular
dependency.  [ruby-dev:39052]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-09 07:37:22 +00:00
mame 20d6525a6f * bignum.c (rb_big_cmp, bigsub, big_real_len, bigmul1_normal,
bigmul1_balance, big_split): remove BDIGITS() inside of the loops.
  same as r24444.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-09 05:55:00 +00:00
naruse e56bf07b16 New API Encoding#ascii_compatible?.
* encoding.c (enc_ascii_compatible_p): added. [ruby-core:24793]
  (Init_Encoding): New API Encoding#ascii_compatible?.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 23:25:32 +00:00
nobu 28f00681ca * ext/ripper/eventids2.c (token_to_eventid): added
keyword_do_LAMBDA.  [ruby-dev:39049]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 22:25:11 +00:00
svn d0e62a5509 * 2009-08-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 17:11:49 +00:00
yugui b1c4052fdf * tool/compile_prelude.rb: fixes a regexp pattern for require.
It had matched 'require("foo"('.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 17:11:39 +00:00
matz 0ecfb5f625 fix the name in the entry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 05:34:09 +00:00
matz 4307340208 * bignum.c (bigzero_p): removing BDIGITS() inside of the
loop. inspired by Hitohiro Kanai's blog entry
  <http://d.hatena.ne.jp/CanI/20090807/1249657492>.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 02:47:02 +00:00
nobu ac2557e09f * marshal.c (w_symbol r_symlink, r_symbol, r_object0): fix for
non-ascii symbols.  loading such symbols can cause segfaults in
  older versions.  [ruby-core:24788]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-07 21:18:33 +00:00
nobu 5414f008d7 * eval_error.c (error_print): removed an extra argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 18:25:11 +00:00
nobu b07df38265 * eval.c (rb_exc_raise, rb_exc_fatal): nil is used to reraise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 18:22:57 +00:00
knu b7aa5a41d3 Fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:56:12 +00:00
knu 04cad34c2f * ext/digest/sha2/sha2.c: The ULL suffix is not supported by
pre-C99 compilers, so resurrect the ULL() macro to regain
  portability. [ruby-dev:39032]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:51:37 +00:00
knu 43b2e3be9a * ext/digest/*/extconf.rb: inttypes.h and unistd.h need not be
checked here. [ruby-dev:39032]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:36:54 +00:00
svn eb6c13bd08 * 2009-08-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:07:18 +00:00
nagai 833b354578 * ext/tk/extconf.rb (search_tclConfig): fix logic bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:07:11 +00:00
usa e97f1270b5 * ext/digest/sha2/lib/sha2.eb: should require sha2.so.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 12:18:38 +00:00
usa 2bfa64d0b8 * ext/digest/sha2/sha2.c (*_Final): typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 12:12:32 +00:00
knu 7fdaba27ca * ext/digest/sha2/sha2.h (BYTE_ORDER): Define BYTE_ORDER as
necessary. [ruby-dev:39029]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 10:49:05 +00:00
nobu a809077956 * encoding.c (rb_enc_associate_index): cannot set encoding on
special constants.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 07:36:29 +00:00
nobu a2393c3e53 * encoding.c (valid_encoding_name_p): rejects too long encoding
names.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 07:26:49 +00:00
nobu 30995c6594 * encoding.c (encoding_data_type): typed data.
* encoding.c (enc_capable, rb_enc_get_index): Symbol is encoding
  capable.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 07:25:13 +00:00
nobu 87c1a07d6a * encoding.c (rb_enc_get_index): fixed indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 07:08:42 +00:00
nobu efb9097352 * vm_method.c (rb_method_entry_eq): deals with optimized method
properly.  [ruby-core:24789]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 06:44:10 +00:00
nobu f86f669cf3 * test/mkmf/base.rb (TestMkmf): was turned into a class, because
MiniUnit doesn't complain even if a testcase has no tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 04:30:15 +00:00
nobu a032b1bdb8 * test/mkmf/base.rb: split from test_sizeof.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 04:14:50 +00:00
nobu c6ada1e7e0 * lib/mkmf.rb (check_sizeof): added optional compiler option
argument.  [ruby-core:24785]

* lib/mkmf.rb (create_makefile): suppressed shadowing outer local
  variable warnings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 04:00:38 +00:00
nobu d04b691b96 * lib/test/unit/testcase.rb (Test::Unit): removes silly TestCase
class.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 03:05:16 +00:00
knu d427b8a8ee * ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an
off-by-one bug in SHA-256 hashing.  Reduce differences from
  the original while at it. [Bug #1799]




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 16:40:33 +00:00
svn c7b5cecb36 * 2009-08-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 15:13:15 +00:00