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

41130 Коммитов

Автор SHA1 Сообщение Дата
nobu f604375832 process.c: fix rdoc of Process.getsid [ci skip]
* process.c (proc_getsid): [DOC] Fix double word 'for' and typo.
  [Fix GH-1080]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-04 02:38:25 +00:00
nobu 96831c00a3 test_gdbm.rb: sync after reorganize
* test/gdbm/test_gdbm.rb (test_reorganize): sync after reorganize
  to ensure that the db file get packed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-04 02:33:50 +00:00
nobu ecbbd23646 fake.rb: fix builddir
* tool/fake.rb (prehook): consider the case building under the
  source directory.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-04 01:32:54 +00:00
nobu 7995eb43cb mkmf/base.rb: capture output
* test/mkmf/base.rb (TestMkmf::Base::Capture#write): capture
  output inside mkmf method.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-04 01:31:15 +00:00
nobu 051127abec mkmf.rb: revert r52431
* lib/mkmf.rb: it's an issue of test/mkmf.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-04 01:31:09 +00:00
svn 9801be68a9 * 2015-11-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-03 21:17:18 +00:00
normal 2f418fb363 include/ruby/ruby.h (struct RObject): hide iv_index_tbl type
This is an implementation detail and should not be exposed to
C extension users.  We may change this to id_table soon; and
id_table should not be exposed as a public API.

It is highly unlikely any existing C extensions require this;
so the risk of breakage is very low.  Ideally, all of RObject
could be hidden.

[ruby-core:71306] [Feature #11647]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-03 21:16:48 +00:00
nobu 3a67ca1ee5 test_gdbm.rb: teardown
* test/gdbm/test_gdbm.rb (teardown): show hidden files.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-03 13:24:27 +00:00
nobu e0d6328ff4 test_timeout.rb: exact messages
* test/test_timeout.rb (test_rescue_exit, test_custom_exception):
  assert with exact messages.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-03 12:15:31 +00:00
nobu ce58200fb7 test_gdbm.rb: teardown
* test/gdbm/test_gdbm.rb (teardown): show tmpdir contents if
  failed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-03 08:18:52 +00:00
nobu 6d57a52685 mkmf.rb: log messages
* lib/mkmf.rb (xsystem, xpopen, egrep_cpp, pkg_config): log
  messages to the log file too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-03 07:52:22 +00:00
nobu a3ee54f8a6 parse.y: revert lbracket
* parse.y (lbracket): remove .? before aref.  [Feature #11537]
  revert r52422 and r52424

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-03 00:27:04 +00:00
nobu b907c6e925 keywords: make name singed
* defs/keywords (kwtable::name): turn into singed int, as gperf
  fills invalid slots with -1.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-02 23:08:26 +00:00
normal b147b5a3b8 id_table: const correctness for _size and _memsize
This allows us to swap in rb_id_table_memsize for st_memsize
(which takes a "const st_table *") more easily.

It also makes sense to do the same for rb_id_table_size,
too; as the table cannot be altered when accessing size.

* id_table.h (rb_id_table_size): const arg
  (rb_id_table_memsize): ditto
* id_table.c (st_id_table_size): ditto
  (st_id_table_memsize): ditto
  (list_id_table_size): ditto
  (list_id_table_memsize): ditto
  (hash_id_table_size): ditto
  (hash_id_table_memsize): ditto
  (mix_id_table_size): ditto
  (mix_id_table_memsize): ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-02 22:18:32 +00:00
normal ca86c3abb8 variable.c: remove casts for rb_class_ivar_set callers
Casting any arguments of rb_class_ivar_set to st_data_t is wrong
as the function does not take any st_data_t parameters anymore.
There's no functional change, as ID, VALUE, and st_data_t are
all the same type, but this reduces confusion and improves
maintainability for future type changes.

* variable.c (find_class_path): remove cast for rb_class_ivar_set
  (rb_ivar_set): ditto
  (rb_cvar_set): ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-02 21:50:24 +00:00
normal 5aef9e1d78 variable.c (rb_global_tbl): convert to id_table
Mainly this is to reduce casting a tiny amount; and
probably nothing depends on the order of globals.
Likely no measurable memory usage improvement as globals
are not common, but maybe some weird code out there benefits.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-02 21:26:26 +00:00
svn 295135be43 * 2015-11-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-02 17:10:58 +00:00
ngoto 71c972c05b * parse.y (NO_QCALL): fix type mismatch of operands that causes
compile error with Oracle Solaris Studio on Solaris.
  [Bug #11645] [ruby-dev:49327]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-02 17:10:38 +00:00
svn e802ec51fd * 2015-11-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-02 11:10:02 +00:00
nobu dbf73f6fc2 parse.y: lbracket
* parse.y (lbracket): support .? before aref.  [Feature #11537]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-02 11:07:13 +00:00
ko1 840e6b6307 * id_table.c (mix_id_table_insert): do not touch list during
list->hash transition because GC can run during transition.




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-01 08:17:25 +00:00
nobu 9f37449f17 ruby-runner.c.in: trivial optimization
* template/ruby-runner.c.in (main): trivial optimization.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-01 02:50:59 +00:00
normal 513d8b349f iseq.c (iseq_memsize): account for rb_call_cache entries
Add some comments to clarify the allocated field used for the
allocations while we're at it.

TODO: figure out a better way of testing/maintaining this...

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-01 02:13:54 +00:00
nobu 7484d07ca7 parse.y: invalid symbol
* parse.y (parser_yylex): ':' separated by a comment and a newline
  is not valid as symbol.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-01 00:12:12 +00:00
nobu 1a2a4084d9 tcltklib.c: basename
* ext/tk/tcltklib.c (setup_rubytkkit): use ruby_enc_find_basename
  if available, instead of File.basename.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 23:39:37 +00:00
svn 753ee6ac57 * 2015-11-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 23:34:42 +00:00
nobu 48a66a58b0 ruby-runner: RUBY_INSTALL_NAME
* Makefile.in (ruby-runner), template/ruby-runner.c.in: use
  expanded RUBY_INSTALL_NAME, not RUBY_BASE_NAME.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 23:34:17 +00:00
hsbt a8438d3033 * test/openssl/test_pair.rb: skipped tests if openssl doesn't support
ECDH cipher.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 11:16:02 +00:00
nobu bd362b70ba mdoc2man.rb: colon in quotes
* tool/mdoc2man.rb (parse_macro): colon should not pop quotes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 06:22:46 +00:00
nobu eef8b3fc9d optional arguments
* man/ruby.1 (SYNOPSIS): arguments of -F and -K are optional.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 06:22:31 +00:00
nobu fb1c88342a remove extraneous space
* man/ruby.1 (SYNOPSIS): remove extraneous space for -K option
  too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 06:02:04 +00:00
nobu afde597521 remove extraneous space
* man/ruby.1 (SYNOPSIS): remove extraneous space for -F option as
  it does not allow spaces before its argument.
  [ruby-core:71283] [Bug #11641]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 05:58:12 +00:00
nobu 9cd5c850a4 ruby.1: fix --enable/disable
* man/ruby.1: missing Fl before --{enable|disable}.

* tool/mdoc2man.rb (parse_macro): supprot braces, Bro and Brc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 05:55:28 +00:00
nobu a27564377f test_super.rb: test_missing_super
* test/ruby/test_super.rb (test_missing_super): test for the
  simple case super method is not found.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 05:19:36 +00:00
ko1 abbe73bf02 revert r52402
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 05:01:40 +00:00
nobu c8caec546a vm_insnhelper.c: get rid of copying garbage
* vm_insnhelper.c (vm_call_method_missing): get rid of extra
  garbage after argv.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 04:54:45 +00:00
nobu 1c89b6bd1f test_exception.rb: get rid of did_you_mean
* test/ruby/test_exception.rb (test_message_of_name_error): get
  rid of failure caused by did_you_mean message.
  [ruby-core:71282] [Bug #11640]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 03:18:25 +00:00
ko1 f5b2da3a53 * vm_insnhelper.c (vm_search_super_method): do not touch `ci' here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 01:32:02 +00:00
nobu 9b18348293 tcltklib.c: GC guard
* ext/tk/tcltklib.c (setup_rubytkkit): add GC guard instead of
  volatile.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 01:25:32 +00:00
nobu ce7f8287e2 eval_error.c: Fix a format of `NameError#message`
* eval_error.c (undef_mesg_for): fix typo.  Before this commit
  `ArgumentError: malformed format string - %$` was raised when
  `NameError#message` is called.  [ruby-core:71282] [Bug #11640]
  [Fix GH-1077]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 01:22:51 +00:00
nobu 9d64a54209 internal.h: RUBY_DTRACE_HOOK
* internal.h (RUBY_DTRACE_HOOK): extract from
  RUBY_DTRACE_CREATE_HOOK for other type hooks.

* gc.c (RUBY_DTRACE_GC_HOOK): ditto.

* parse.y (RUBY_DTRACE_PARSE_HOOK): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 01:02:29 +00:00
nobu 1546ffed49 use rb_source_loc and rb_source_location
* error.c, eval.c, eval_error.c, gc.c, variable.c, vm.c,
  vm_eval.c, vm_trace.c: use rb_source_loc/rb_source_location
  instead of combination of rb_sourcefile/rb_sourcefilename and
  rb_sourceline.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 01:02:26 +00:00
nobu 954224f3c5 vm.c: initialize line always
* vm.c (rb_source_location): reset line to 0 if no location is
  found.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 00:17:41 +00:00
svn 7e9a86ea40 * 2015-10-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 00:02:31 +00:00
nobu e712233387 ignore dump terminal
* tool/generic_erb.rb, tool/ifchange: no colorization if tput
  returned nothing or dump terminal.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-31 00:02:19 +00:00
kazu 8db48b11c6 fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-30 13:40:17 +00:00
ktsj 833dcacd73 * gems/bundled_gems: update to power_assert 0.2.5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-30 12:14:10 +00:00
ko1 a96ae767ac * gc.c (newobj_slowpath): do not need to use flags hack (commit miss).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-30 10:30:47 +00:00
naruse 8ced6af83f explicitly overwrite signal handling
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-30 10:18:29 +00:00
ko1 e3e5d634f0 * gc.c (heap_get_freeobj_from_next_freepage): not so UNLIKELY.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-30 10:09:50 +00:00