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

40622 Коммитов

Автор SHA1 Сообщение Дата
nobu 068394a7d6 win32ole.c: make ole_mb2wc more generic
* ext/win32ole/win32ole.c (ole_vstr2wc): use ole_mb2wc.

* ext/win32ole/win32ole.c (ole_mb2wc): parametrize code page.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-21 14:40:57 +00:00
nobu 5deaacb0f1 win32ole.c: constified
* ext/win32ole/win32ole.c (vtEventSink): constified.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-21 14:35:33 +00:00
svn 929c9a81b0 * 2015-09-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-21 11:54:00 +00:00
nobu d3b3eff1a9 test_win32ole_event.rb: fix typo [ci skip]
* test/win32ole/test_win32ole_event.rb: fix typo.
  swbemsink_avairable? => swbemsink_available?  [Fix GH-1025]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-21 11:53:41 +00:00
nobu 6177abcbf0 string.c: separate resetting code range
* string.c (rb_str_setbyte): separate resetting code range by each
  code range, and remove unnecessary branches.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-20 01:17:25 +00:00
nobu 9bc67e1efa cont.c: append to continuations doc [ci skip]
* cont.c (rb_callcc): [DOC] append continuations example accros
  methods.  [Fix GH-1026]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-20 01:07:40 +00:00
nobu 6628cd6b37 parse.y: simplify ripper_id2sym
* parse.y (ripper_id2sym): remove unnecessary comparison as
  rb_ispunct has stricter condition, and cast explicitly to
  suppress warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-19 23:04:48 +00:00
ko1 bffa617d36 * iseq.c (rb_iseq_free): free rb_iseq_t::body::cc_entries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-19 18:21:35 +00:00
ko1 d5ec9ec308 * vm_core.h: split rb_call_info_t into several structs.
* rb_call_info (ci) has compiled fixed information.
  * if ci->flag & VM_CALL_KWARG, then rb_call_info is
    also rb_call_info_with_kwarg. This technique reduce one word
    for major rb_call_info data.
  * rb_calling_info has temporary data (argc, blockptr, recv).
    for each method dispatch. This data is allocated only on
    machine stack.
  * rb_call_cache is for inline method cache.
  Before this patch, only rb_call_info_t data is passed.
  After this patch, above three structs are passed.
  This patch improves:
  * data locarity (rb_call_info is now read-only data).
  * reduce memory consumption (rb_call_info_with_kwarg,
    rb_calling_info).
* compile.c: use above data.
* insns.def: ditto.
* iseq.c: ditto.
* vm_args.c: ditto.
* vm_eval.c: ditto.
* vm_insnhelper.c: ditto.
* vm_insnhelper.h: ditto.
* iseq.h: add iseq_compile_data::ci_index and
  iseq_compile_data::ci_kw_indx.
* tool/instruction.rb: introduce TS_CALLCACHE operand type.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-19 17:59:58 +00:00
svn 19499aaeb1 * 2015-09-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-19 17:19:00 +00:00
akr c748ac9893 * test/lib/envutil.rb: mkfifo command based File.mkfifo method
definition removed.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-19 17:18:49 +00:00
nobu b026a71750 iseq.h: rb_iseq_t
* iseq.h (rb_iseq_t): also should be defined here for prototype
  declarations arguments.

* method.h (rb_iseq_t): get rid of redefinition.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-19 01:53:34 +00:00
svn 71ed163fb3 * 2015-09-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-19 01:49:00 +00:00
nobu 4f46dd034f iseq.h, method.h: fix include guards [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-19 01:48:48 +00:00
nobu 9289515562 file.c: File.mkfifo
* file.c (rb_file_s_mkfifo): implement File.mkfifo.
  [Feature #11536]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-18 11:11:14 +00:00
shugo 30f9177d5d * NEWS: add Net::FTP#mlst and Net::FTP#mlsd.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-18 07:56:57 +00:00
nobu 91efee1bd0 common.mk: no prefixes
* common.mk (yes-test-testframework): remove unnecessary test
  directory prefixes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-18 04:45:01 +00:00
nobu f8a2398a86 thread.c: suppress warnings only if GCC6+
* thread.c (rb_fd_no_init): suppress warnings by applying ASSUME
  only if GCC 6 or lator, to get rid of freeze with GCC 4.7.2-5.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-18 04:42:58 +00:00
svn 02bb538c3d * 2015-09-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-17 22:41:02 +00:00
tenderlove 3b90363f76 * ext/objspace/objspace_dump.c (obj_type): add IMEMO types to the heap
dump information.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-17 22:40:24 +00:00
kazu 391b8c323b tabify indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-17 14:12:40 +00:00
kazu 6df966af22 fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-17 14:12:06 +00:00
hsbt 8f688497c1 * common.mk: fix command error with outside builddir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-17 13:33:11 +00:00
hsbt 3d86c47356 * common.mk: separated test for test-framework from test-all task.
They should be invoke at first before tests of test-all.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-17 08:42:14 +00:00
nobu e9edce8ebb id_table.h: include guard
* id_table.h (RUBY_ID_TABLE_H): add include guard.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-17 08:24:54 +00:00
kosaki ae05ae33c1 * test/ruby/test_dir.rb (TestDir#test_fileno): s/?x/"x"/. Don't
use tricky code, please.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-17 03:21:15 +00:00
svn 76da19cfb1 * 2015-09-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-17 01:02:46 +00:00
nobu 80e386e92c id_table.c: fix types
* id_table.c (insert_into_chain, insert_into_main): fix argument
  types in prototype declarations.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-17 01:01:39 +00:00
nobu 7ed700d2da vm_core.h: revert VM objspace on Windows
* vm_core.h (ENABLE_VM_OBJSPACE): disable now, as socklist and
  conlist will be freed exit_handler(), after object space
  destruction.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 12:14:52 +00:00
suke a2dce5c60a * encindex.h: fix typo of last #endif comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 11:53:50 +00:00
nobu dfa9eb54bd variable.c: fail if frozen
* variable.c (set_const_visibility): fail if the class/module is
  frozen.  [ruby-core:70828] [Bug #11532]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 11:39:29 +00:00
nobu c3a48736a6 vm_core.h: enable VM objspace on Windows
* vm_core.h (ENABLE_VM_OBJSPACE): enable per-VM object space on
  Windows by default, as rb_w32_sysinit() no longer depends on
  ruby_xmalloc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 08:18:02 +00:00
nobu 077e2037eb ruby.h: RUBY_FL_PROMOTED
* include/ruby/ruby.h (ruby_fl_type): revive RUBY_FL_PROMOTED for
  .gdbinit.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 08:15:58 +00:00
knu 11b804feee [DOC] Remove `\0` since it's aprt of octal notation
A typo is fixed while at it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 06:58:56 +00:00
knu 5ac401c8dc [DOC] `\0` is interpreted as NUL only if not followed by an octal digit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 06:31:39 +00:00
nobu 2b89d63e61 literals.rdoc: add DEL [ci skip]
* doc/syntax/literals.rdoc (Strings): [DOC] add DEL.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 06:21:13 +00:00
knu 6989f24117 [DOC] Revise the character literal part.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 06:16:15 +00:00
knu d23857e558 [DOC] Document the full list of supported escape sequences in string literals
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 06:03:18 +00:00
nobu 965d8241c1 string.c: keep coderange
* string.c (rb_str_setbyte): keep the code range as possible.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 05:50:00 +00:00
nobu 22190b3f32 literals.rdoc: fix typos
* doc/syntax/literals.rdoc (Strings): fix typos.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 05:31:26 +00:00
usa 35947f6d42 * doc/syntax/literals.rdoc (Strings): mention about ?a literal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 04:24:31 +00:00
kosaki 06ca0b67f4 * dir.c (glob_helper): check pathtype once again by lstat(2) if
dp->d_type is DT_UNKNOWN. XFS may return DT_UNKNOWN.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 03:19:53 +00:00
svn 8e177fca13 * 2015-09-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-15 19:24:47 +00:00
kosaki bb79c011bf * test/ruby/test_thread.rb (TestThread#test_mutex_synchronize):
insert waste loop for invoking preemptive thread context switch.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-15 19:23:43 +00:00
nobu abbd388431 gc.c: define objspace functions always
* gc.c (rb_objspace_alloc, rb_objspace_free): define always
  regardless ENABLE_VM_OBJSPACE, and free heap pages.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-15 10:38:58 +00:00
nobu 70b2af3b21 win32.c: no xmalloc at sys_init
* win32/win32.c (rb_w32_sysinit, rb_w32_readdir): compare by
  encoding index to get rid of encoding initialization before VM
  object space allocation.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-15 06:15:44 +00:00
nobu 2046f38aa6 dir.c: fundamental_encoding_p
* dir.c (fundamental_encoding_p, push_glob): compare by encoding
  index immediately.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-15 06:06:19 +00:00
nobu 9c9d555e7f win32.c: encindex.h
* win32/win32.c: needs encindex.h for encoding indexes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-15 06:03:37 +00:00
nobu 89fb3746ac localeinit.c: encindex.h
* localeinit.c: needs encindex.h for ENCINDEX_US_ASCII and
  ENCINDEX_ASCII.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-15 05:57:30 +00:00
nobu 75a1d33bcf enc: fundamental encindex
* enc/{ascii,us_ascii,utf_8}.c: set encoding indexes of
  fundamental built-in encodings so that usable as well as
  allocated rb_encoding before rb_enc_init().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-15 05:49:52 +00:00