mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Prefer enum ruby_tag_type
over int
This commit is contained in:
parent
a91800c4a0
commit
28a2105a55
6 changed files with 14 additions and 14 deletions
12
eval.c
12
eval.c
|
@ -463,7 +463,7 @@ rb_class_modify_check(VALUE klass)
|
|||
}
|
||||
}
|
||||
|
||||
NORETURN(static void rb_longjmp(rb_execution_context_t *, int, volatile VALUE, VALUE));
|
||||
NORETURN(static void rb_longjmp(rb_execution_context_t *, enum ruby_tag_type, volatile VALUE, VALUE));
|
||||
static VALUE get_errinfo(void);
|
||||
#define get_ec_errinfo(ec) rb_ec_get_errinfo(ec)
|
||||
|
||||
|
@ -541,7 +541,7 @@ exc_setup_message(const rb_execution_context_t *ec, VALUE mesg, VALUE *cause)
|
|||
}
|
||||
|
||||
static void
|
||||
setup_exception(rb_execution_context_t *ec, int tag, volatile VALUE mesg, VALUE cause)
|
||||
setup_exception(rb_execution_context_t *ec, enum ruby_tag_type tag, volatile VALUE mesg, VALUE cause)
|
||||
{
|
||||
VALUE e;
|
||||
int line;
|
||||
|
@ -645,7 +645,7 @@ rb_ec_setup_exception(const rb_execution_context_t *ec, VALUE mesg, VALUE cause)
|
|||
}
|
||||
|
||||
static void
|
||||
rb_longjmp(rb_execution_context_t *ec, int tag, volatile VALUE mesg, VALUE cause)
|
||||
rb_longjmp(rb_execution_context_t *ec, enum ruby_tag_type tag, volatile VALUE mesg, VALUE cause)
|
||||
{
|
||||
mesg = exc_setup_message(ec, mesg, &cause);
|
||||
setup_exception(ec, tag, mesg, cause);
|
||||
|
@ -655,10 +655,10 @@ rb_longjmp(rb_execution_context_t *ec, int tag, volatile VALUE mesg, VALUE cause
|
|||
|
||||
static VALUE make_exception(int argc, const VALUE *argv, int isstr);
|
||||
|
||||
NORETURN(static void rb_exc_exception(VALUE mesg, int tag, VALUE cause));
|
||||
NORETURN(static void rb_exc_exception(VALUE mesg, enum ruby_tag_type tag, VALUE cause));
|
||||
|
||||
static void
|
||||
rb_exc_exception(VALUE mesg, int tag, VALUE cause)
|
||||
rb_exc_exception(VALUE mesg, enum ruby_tag_type tag, VALUE cause)
|
||||
{
|
||||
if (!NIL_P(mesg)) {
|
||||
mesg = make_exception(1, &mesg, FALSE);
|
||||
|
@ -985,7 +985,7 @@ rb_protect(VALUE (* proc) (VALUE), VALUE data, int *pstate)
|
|||
VALUE
|
||||
rb_ensure(VALUE (*b_proc)(VALUE), VALUE data1, VALUE (*e_proc)(VALUE), VALUE data2)
|
||||
{
|
||||
int state;
|
||||
enum ruby_tag_type state;
|
||||
volatile VALUE result = Qnil;
|
||||
VALUE errinfo;
|
||||
rb_execution_context_t * volatile ec = GET_EC();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue