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

25378 Коммитов

Автор SHA1 Сообщение Дата
svn aa27e42fd3 * 2012-02-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-20 06:50:40 +00:00
nobu 032d0a4cf7 * configure.in: check if -fstack-protector is really available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-20 06:50:36 +00:00
akr 05a2cd709f add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-19 14:44:36 +00:00
akr d7bf156afd * ext/dbm/extconf.rb: show header and library found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-19 14:44:24 +00:00
kazu 0e8cd8ae57 fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-19 14:14:44 +00:00
akr 95f3f9829f * ext/dbm/dbm.c (Init_dbm): refine DBM::VERSION definition.
* ext/dbm/extconf.rb: provide RUBYDBM_GDBM_HEADER macro.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-19 14:02:14 +00:00
nari 87a15a6981 revert r34691 and r34689
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-19 10:18:16 +00:00
akr 1efa14169a add assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-19 08:33:01 +00:00
akr 460bb8a829 * test/dbm/test_dbm.rb (test_dbmfile_suffix): check pag and dir is
empty for 4.3BSD ndbm.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-19 08:08:37 +00:00
nobu 310c2adf1b * enc/mktable.c (ENC_INFO): constify to suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-19 06:36:45 +00:00
nari f0e9fa3cb1 * gc.c (gc_clear_mark_on_sweep_slots): remove a unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-19 04:11:19 +00:00
nari 55e6e9e384 * gc.c (gc_clear_mark_on_sweep_slots): uses slot_sweep() for
unsweeped slots, because some dead objects might be marked in
  next the mark phase by false pointers.  [ruby-core:42672]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-19 03:07:59 +00:00
nobu 541e1aff20 * regparse.c: fix warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-19 01:51:05 +00:00
akr c509bec71d cosmetic change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 18:05:24 +00:00
akr 62debc952d * test/dbm/test_dbm.rb (test_dbmfile_suffix): check magic numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 18:01:02 +00:00
akr 0187905af2 * ext/dbm/extconf.rb: detect GDBM's ndbm.h by testing dbm_clearerr is
an empty macro.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 16:06:52 +00:00
nobu 0ffc74dece * regcomp.c, regexec.c: fix-up warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 15:41:59 +00:00
svn ca5a0db67b * 2012-02-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 15:31:13 +00:00
akr fcd8f78ea3 * ext/dbm/extconf.rb: don't choose 'dbm' if _GDB_H_ is defined which
is available since GDBM 1.9 because 'gdbm_compat' is appropriate
  choise since GDBM 1.8.1.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 15:31:09 +00:00
mrkn 923bff74b1 * random.c: remove a duplicated comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 14:28:42 +00:00
akr 90cc116431 simplify a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 10:06:24 +00:00
akr fc0111cce1 * ext/dbm/extconf.rb (dblib): prefer recent GDBM over older GDBM.
(have_declared_libvar): new function to check a declared variable
  exists in a library.
  (have_undeclared_libvar): renamed from renamed from have_libvar.
  (headers.db_check2): check that GDBM version variable if GDBM header
  is choosen.

* ext/dbm/dbm.c (Init_dbm): use HAVE_DECLARED_LIBVAR_GDBM_VERSION and
  HAVE_UNDECLARED_LIBVAR_GDBM_VERSION macro.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 09:47:07 +00:00
akr 4c1ea85dd8 * test/dbm/test_dbm.rb (test_dbmfile_suffix): DBM::VERSION should
be Berkeley DB if foo.db is created by DBM.open.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 04:54:09 +00:00
akr 48a97f2c94 * test/dbm/test_dbm.rb (test_dbmfile_suffix): test dbm file suffix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 04:41:15 +00:00
akr e7a1d4a309 * ext/dbm/dbm.c (DBM::VERSION): define it by detecting _GDBM_H_ or
_DBM_IOERR.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 03:51:52 +00:00
naruse 6227690604 * tool/enc-unicode.rb: don't use 1.9 feature on tools.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 02:47:41 +00:00
svn e0f059a105 * 2012-02-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 17:59:52 +00:00
tenderlove ace46301d8 * lib/fileutils.rb: refactored FileUtil methods to use the
`define_command` API.  Patch from 7rans <transfire@gmail.com>
* test/fileutils/test_dryrun.rb: corresponding test refactoring
* test/fileutils/test_nowrite.rb: ditto
* test/fileutils/test_verbose.rb: ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 17:59:47 +00:00
akr 92e7c2d3ea * ext/dbm/extconf.rb: remove dbm.
forgotten in r34666.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 12:41:54 +00:00
akr 6d1f751207 * ext/dbm/extconf.rb: refine header/libraty mismatch detection.
check only for ndbm.h except libc.  check _GDBM_H_ for gdbm.
  check _DBM_IOERR for the original ndbm.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 12:29:50 +00:00
akr fbca1d0da1 * ext/dbm/extconf.rb: don't check libdbm. It is not a ndbm
implementation.  (libdbm in Version 7 Unix is database library
  for single database per process.)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 12:10:32 +00:00
nobu 242994f33d * ChangeLog: removed duplicated entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 08:18:16 +00:00
nobu 39d6938607 * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 08:17:29 +00:00
naruse 0424e152c6 * Merge Onigmo-5.13.1. [ruby-dev:45057] [Feature #5820]
https://github.com/k-takata/Onigmo
  cp reg{comp,enc,error,exec,parse,syntax}.c reg{enc,int,parse}.h
  cp oniguruma.h
  cp tool/enc-unicode.rb
  cp -r enc/

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 07:42:23 +00:00
nobu 5362e7fcdd * enum.c (enum_each_slice): arrays to be yielded can be newly
created in the block.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 06:20:56 +00:00
nobu 41e331cc36 * enum.c: move work variables to objects not to let called blocks
access stack area out of scope.  [Bug #5801]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 04:24:48 +00:00
naruse 3b243514ff * tool/merger.rb: remove borders from the commit message which is used
when the commit doesn't change ChangeLog.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 03:37:44 +00:00
nobu 68262a2048 * common.mk (btest, btest-ruby, test-sample test-knownbugs)
(test-all, test-ruby): depend on prog.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 02:50:22 +00:00
nobu 7d0066c542 * lib/mkmf.rb (create_header): log the content of header.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 00:56:25 +00:00
naruse 375fd3152f * tool/transcode-tblgen.rb (import_ucm): don't use \h because the
script should work with ruby 1.8.

* tool/enc-unicode.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 00:53:13 +00:00
nobu f5d724ab19 * enum.c (id_lshift): use constant ID.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-16 22:33:31 +00:00
akr 2f92a267f4 * ext/dbm/extconf.rb: refactored to split too long conditions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-16 22:32:10 +00:00
akr d698ea8991 * test/dbm/test_dbm.rb: fix skip condition for libgdbm 1.8.0 or prior.
reported by Bohuslav Kabrda.
  [ruby-core:42685] [Bug #6036]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-16 15:25:06 +00:00
svn 2e544c3362 * 2012-02-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-16 15:05:51 +00:00
akr 078b3cf95e * ext/dbm/extconf.rb: check _DB_H_ macro unavailable except
Berkeley DB library.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-16 15:05:46 +00:00
nobu fde3c421be * insns.def (splatarray): make new array if flag is set.
* compile.c (iseq_compile_each): make new array with
  splat. [ruby-core:21901][Feature #1125]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-15 20:41:38 +00:00
svn e315f8471d * 2012-02-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-15 15:16:24 +00:00
kazu f2c84d2da0 lib/abbrev.rb (Array#abbrev): add missing '"' in documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-15 15:16:20 +00:00
nagachika 0328ab1d0a * ChangeLog: add ticket ref of r34629.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-15 14:02:34 +00:00
nagachika 2910f6736e * cont.c (rb_fiber_reset_root_local_storage): add a new function to
restore rb_thread_t::local_storage.

* cont.c (rb_obj_is_fiber): add a new function to tell finalizer to
  prevent fibers from destroy.

* gc.c (rb_objspace_call_finalizer): don't sweep fibers at finalizing
  objspace.

* internal.h (rb_fiber_reset_root_local_storage, rb_obj_is_fiber):
  add prototypes.

* vm.c (ruby_vm_destruct): reset main thread's local_storage before
  free main thread. rb_thread_t::local_storage is replaced by fiber's
  local storage when forked from fiber, and it should be already freed
  when the fiber was destroyed.

* test/ruby/test_fiber.rb (test_fork_from_fiber): add test for fork
  from fiber.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-15 14:00:11 +00:00