mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c51e356c68
commit
e1d5d4e7f2
5 changed files with 13 additions and 12 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
Mon Oct 4 07:16:55 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Mon Oct 4 06:40:24 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* Makefile.in (clean-rdoc): Don't use \ in variable expantion.
|
* Makefile.in (clean-rdoc): Don't use \ in variable expantion.
|
||||||
|
|
|
@ -2091,7 +2091,6 @@ onigenc_unicode_property_name_to_ctype(OnigEncoding enc, UChar* name, UChar* end
|
||||||
UChar *p;
|
UChar *p;
|
||||||
OnigCodePoint code;
|
OnigCodePoint code;
|
||||||
|
|
||||||
p = name;
|
|
||||||
len = 0;
|
len = 0;
|
||||||
for (p = name; p < end; p += enclen(enc, p, end)) {
|
for (p = name; p < end; p += enclen(enc, p, end)) {
|
||||||
code = ONIGENC_MBC_TO_CODE(enc, p, end);
|
code = ONIGENC_MBC_TO_CODE(enc, p, end);
|
||||||
|
|
1
thread.c
1
thread.c
|
@ -1387,7 +1387,6 @@ ruby_thread_stack_overflow(rb_thread_t *th)
|
||||||
{
|
{
|
||||||
th->raised_flag = 0;
|
th->raised_flag = 0;
|
||||||
#ifdef USE_SIGALTSTACK
|
#ifdef USE_SIGALTSTACK
|
||||||
th->raised_flag = 0;
|
|
||||||
rb_exc_raise(sysstack_error);
|
rb_exc_raise(sysstack_error);
|
||||||
#else
|
#else
|
||||||
th->errinfo = sysstack_error;
|
th->errinfo = sysstack_error;
|
||||||
|
|
|
@ -1204,7 +1204,7 @@ rb_ivar_count(VALUE obj)
|
||||||
switch (TYPE(obj)) {
|
switch (TYPE(obj)) {
|
||||||
case T_OBJECT:
|
case T_OBJECT:
|
||||||
if ((tbl = ROBJECT_IV_INDEX_TBL(obj)) != 0) {
|
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);
|
const VALUE *const ivptr = ROBJECT_IVPTR(obj);
|
||||||
for (i = count = 0; i < num; ++i) {
|
for (i = count = 0; i < num; ++i) {
|
||||||
if (ivptr[i] != Qundef) {
|
if (ivptr[i] != Qundef) {
|
||||||
|
|
12
vm.c
12
vm.c
|
@ -453,16 +453,10 @@ rb_vm_stack_to_heap(rb_thread_t * const th)
|
||||||
static VALUE
|
static VALUE
|
||||||
vm_make_proc_from_block(rb_thread_t *th, rb_block_t *block)
|
vm_make_proc_from_block(rb_thread_t *th, rb_block_t *block)
|
||||||
{
|
{
|
||||||
VALUE proc = block->proc;
|
if (!block->proc) {
|
||||||
|
block->proc = rb_vm_make_proc(th, block, rb_cProc);
|
||||||
if (block->proc) {
|
|
||||||
return block->proc;
|
|
||||||
}
|
}
|
||||||
|
return block->proc;
|
||||||
proc = rb_vm_make_proc(th, block, rb_cProc);
|
|
||||||
block->proc = proc;
|
|
||||||
|
|
||||||
return proc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue