Bug #6066 » return.combined.patch
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
|
ext/digest/digest.c (working copy) | ||
---|---|---|
rb_digest_instance_update(VALUE self, VALUE str)
|
||
{
|
||
rb_digest_instance_method_unimpl(self, "update");
|
||
return Qnil; /* not reached */
|
||
}
|
||
/*
|
||
... | ... | |
rb_digest_instance_finish(VALUE self)
|
||
{
|
||
rb_digest_instance_method_unimpl(self, "finish");
|
||
return Qnil; /* not reached */
|
||
}
|
||
/*
|
||
... | ... | |
rb_digest_instance_reset(VALUE self)
|
||
{
|
||
rb_digest_instance_method_unimpl(self, "reset");
|
||
return Qnil; /* not reached */
|
||
}
|
||
/*
|
||
... | ... | |
rb_digest_instance_block_length(VALUE self)
|
||
{
|
||
rb_digest_instance_method_unimpl(self, "block_length");
|
||
return Qnil; /* not reached */
|
||
}
|
||
/*
|
ext/bigdecimal/bigdecimal.c (working copy) | ||
---|---|---|
}
|
||
rb_bug("Undefined operation in BigDecimalCmp()");
|
||
return Qnil; /* not reached */
|
||
}
|
||
/* Returns True if the value is zero. */
|
ext/dl/handle.c (working copy) | ||
---|---|---|
return INT2NUM(ret);
|
||
}
|
||
rb_raise(rb_eDLError, "dlclose() called too many times");
|
||
return Qnil; /* not reached */
|
||
}
|
||
VALUE
|
ext/tk/tcltklib.c (working copy) | ||
---|---|---|
} else {
|
||
return 0;
|
||
}
|
||
return 0; /* not reached */
|
||
}
|
||
static int
|
||
... | ... | |
} else {
|
||
return 0;
|
||
}
|
||
return 0; /* not reached */
|
||
}
|
||
... | ... | |
#if TCL_MAJOR_VERSION < 8 || (TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION < 6)
|
||
rb_raise(rb_eNotImpError,
|
||
"cancel_eval is supported Tcl/Tk8.6 or later.");
|
||
return 0; /* not reached */
|
||
#else
|
||
Tcl_Obj *msg_obj;
|
||
... | ... | |
default:
|
||
rb_raise(rb_eRuntimeError, "tcltklib has invalid release type number");
|
||
}
|
||
return Qnil; /* not reached */
|
||
}
|
||
... | ... | |
return Qnil;
|
||
}
|
||
}
|
||
return Qnil; /* not reached */
|
||
#else
|
||
return name;
|
||
#endif
|
ext/tk/tkutil/tkutil.c (working copy) | ||
---|---|---|
}
|
||
rb_raise(rb_eArgError, "Hash is expected for 1st argument");
|
||
}
|
||
return Qnil; /* not reached */
|
||
}
|
||
static VALUE
|
ext/fiddle/conversions.c (working copy) | ||
---|---|---|
default:
|
||
rb_raise(rb_eRuntimeError, "unknown type %d", type);
|
||
}
|
||
return Qnil; /* not reached */
|
||
}
|
||
/* vim: set noet sw=4 sts=4 */
|
ext/socket/raddrinfo.c (working copy) | ||
---|---|---|
default:
|
||
rb_raise(rb_eTypeError, "neither IO nor file descriptor");
|
||
}
|
||
return Qnil; /* not reached */
|
||
}
|
||
/*
|
ext/socket/socket.c (working copy) | ||
---|---|---|
error_exit_name:
|
||
if (res) freeaddrinfo(res);
|
||
rsock_raise_socket_error("getnameinfo", error);
|
||
return Qnil; /* not reached */
|
||
}
|
||
/*
|
ext/ripper/eventids2.c (working copy) | ||
---|---|---|
return ripper_id_CHAR;
|
||
}
|
||
rb_raise(rb_eRuntimeError, "[Ripper FATAL] unknown token %d", tok);
|
||
return (ID)NULL; /* not reached */
|
||
}
|
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
|