Project

General

Profile

Bug #6066 » core.return.patch

Patch for C files in the project root - drbrain (Eric Hodel), 02/23/2012 09:39 AM

View differences:

encoding.c (working copy)
}
else
rb_raise(rb_eArgError, "invalid byte sequence in %s", rb_enc_name(enc));
return 0; /* not reached */
}
#undef rb_enc_codepoint
re.c (working copy)
rb_raise(rb_eIndexError, "undefined group name reference: %s",
StringValuePtr(s));
}
return 0; /* not reached */
}
/*
object.c (working copy)
default:
return rb_convert_type(val, T_FLOAT, "Float", "to_f");
}
return Qnil; /* not reached */
}
/*
io.c (working copy)
rb_eof_error();
else
return ret;
return Qnil; /* not reached */
}
/*
......
rb_eof_error();
else
return ret;
return Qnil; /* not reached */
}
/*
pack.c (working copy)
return 6;
}
rb_raise(rb_eRangeError, "pack(U): value out of range");
return 0; /* not reached */
}
static const unsigned long utf8_limits[] = {
proc.c (working copy)
}
}
rb_bug("rb_method_entry_arity: invalid method entry type (%d)", def->type);
return 0; /* not reached */
}
/*
vm_method.c (working copy)
rb_f_notimplement(int argc, VALUE *argv, VALUE obj)
{
rb_notimplement();
return Qnil; /* not reached */
}
static void
struct.c (working copy)
}
}
rb_name_error(id, "no member '%s' in struct", rb_id2name(id));
return Qnil; /* not reached */
}
/*
class.c (working copy)
else
rb_raise(rb_eArgError, "wrong number of arguments (%d for %d%s)",
argc, n_mand, f_var ? "+" : "");
return 0; /* not reached */
}
/*!
process.c (working copy)
return r;
rb_raise(rb_eArgError, "invalid resource name: %s", name);
return 0; /* not reached */
}
static rlim_t
......
if (strcmp(name, "SAVED_CUR") == 0) return RLIM_SAVED_CUR;
#endif
rb_raise(rb_eArgError, "invalid resource value: %s", name);
return (rlim_t)0; /* not reached */
}
#endif
......
errno = EPERM;
rb_sys_fail(0);
}
return Qnil; /* not reached */
}
#else
static VALUE
......
errno = EPERM;
rb_sys_fail(0);
}
return Qnil; /* not reached */
}
#else
static VALUE
cont.c (working copy)
fib->prev = Qnil;
return prev;
}
return Qnil; /* not reached */
}
VALUE rb_fiber_transfer(VALUE fib, int argc, VALUE *argv);
dmydln.c (working copy)
dln_load(const char *file)
{
rb_loaderror("this executable file can't load extension libraries");
return NULL;
}
vm_insnhelper.c (working copy)
else {
rb_bug("vm_search_normal_superclass: should not be reach here");
}
return Qnil; /* not reached */
}
static void
bignum.c (working copy)
goto bignum;
}
rb_bug("big_fdiv");
/* NOTREACHED */
return Qnil; /* NOTREACHED */
}
/*
marshal.c (working copy)
return (ID)id;
}
rb_raise(rb_eArgError, "bad symbol");
return (ID)NULL; /* not reached */
}
static ID
......
rb_raise(rb_eArgError, "dump format error for symbol(0x%x)", type);
break;
}
return (ID)NULL; /* not reached */
}
static VALUE
(6-6/11)