ruby-changes:17400
From: naruse <ko1@a...>
Date: Mon, 4 Oct 2010 07:57:39 +0900 (JST)
Subject: [ruby-changes:17400] Ruby:r29405 (trunk): * enc/unicode.c (onigenc_unicode_property_name_to_ctype):
naruse 2010-10-04 07:57:23 +0900 (Mon, 04 Oct 2010) New Revision: 29405 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29405 Log: * enc/unicode.c (onigenc_unicode_property_name_to_ctype): remove useless assignment. * vm.c (vm_make_proc_from_block): ditto. * variable.c (rb_ivar_count): ditto. Modified files: trunk/ChangeLog trunk/enc/unicode.c trunk/thread.c trunk/variable.c trunk/vm.c Index: ChangeLog =================================================================== --- ChangeLog (revision 29404) +++ ChangeLog (revision 29405) @@ -1,3 +1,12 @@ +Mon Oct 4 07:16:55 2010 NARUSE, Yui <naruse@r...> + + * enc/unicode.c (onigenc_unicode_property_name_to_ctype): + remove useless assignment. + + * vm.c (vm_make_proc_from_block): ditto. + + * variable.c (rb_ivar_count): ditto. + Mon Oct 4 06:40:24 2010 NARUSE, Yui <naruse@r...> * Makefile.in (clean-rdoc): Don't use \ in variable expantion. Index: enc/unicode.c =================================================================== --- enc/unicode.c (revision 29404) +++ enc/unicode.c (revision 29405) @@ -2091,7 +2091,6 @@ UChar *p; OnigCodePoint code; - p = name; len = 0; for (p = name; p < end; p += enclen(enc, p, end)) { code = ONIGENC_MBC_TO_CODE(enc, p, end); Index: variable.c =================================================================== --- variable.c (revision 29404) +++ variable.c (revision 29405) @@ -1204,7 +1204,7 @@ switch (TYPE(obj)) { case T_OBJECT: if ((tbl = ROBJECT_IV_INDEX_TBL(obj)) != 0) { - st_index_t i, num = tbl->num_entries, count = 0; + st_index_t i, count, num = tbl->num_entries; const VALUE *const ivptr = ROBJECT_IVPTR(obj); for (i = count = 0; i < num; ++i) { if (ivptr[i] != Qundef) { Index: thread.c =================================================================== --- thread.c (revision 29404) +++ thread.c (revision 29405) @@ -1387,7 +1387,6 @@ { th->raised_flag = 0; #ifdef USE_SIGALTSTACK - th->raised_flag = 0; rb_exc_raise(sysstack_error); #else th->errinfo = sysstack_error; Index: vm.c =================================================================== --- vm.c (revision 29404) +++ vm.c (revision 29405) @@ -453,16 +453,10 @@ static VALUE vm_make_proc_from_block(rb_thread_t *th, rb_block_t *block) { - VALUE proc = block->proc; - - if (block->proc) { - return block->proc; + if (!block->proc) { + block->proc = rb_vm_make_proc(th, block, rb_cProc); } - - proc = rb_vm_make_proc(th, block, rb_cProc); - block->proc = proc; - - return proc; + return block->proc; } VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/