summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 10:42:18 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 10:42:18 (GMT)
commit5ac1972c1a7b56aa1aace73b30c1a8fcd8705ac8 (patch)
treef5582c6b19c726762db2456056f67a357bdb9a36 /vm_core.h
parentb117572863b63d0cf1aafd89750cf7b51c31304d (diff)
* vm_core.h: rename enum missing_reason to enum method_missing_reason.
* vm_core.h: use enum method_missing_reason for rb_thread_t::method_missing_reason. * vm_eval.c: catch up this fix. * vm_insnhelper.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/vm_core.h b/vm_core.h
index 2f1ca25..ff2b8a9 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -141,6 +141,16 @@ typedef struct rb_call_info_kw_arg_struct {
VALUE keywords[1];
} rb_call_info_kw_arg_t;
+enum method_missing_reason {
+ MISSING_NOENTRY = 0x00,
+ MISSING_PRIVATE = 0x01,
+ MISSING_PROTECTED = 0x02,
+ MISSING_VCALL = 0x04,
+ MISSING_SUPER = 0x08,
+ MISSING_MISSING = 0x10,
+ MISSING_NONE = 0x20
+};
+
/* rb_call_info_t contains calling information including inline cache */
typedef struct rb_call_info_struct {
/* fixed at compile time */
@@ -167,15 +177,7 @@ typedef struct rb_call_info_struct {
union {
int opt_pc; /* used by iseq */
int index; /* used by ivar */
- enum missing_reason {
- MISSING_NOENTRY = 0x00,
- MISSING_PRIVATE = 0x01,
- MISSING_PROTECTED = 0x02,
- MISSING_VCALL = 0x04,
- MISSING_SUPER = 0x08,
- MISSING_MISSING = 0x10,
- MISSING_NONE = 0x20
- } missing_reason; /* used by method_missing */
+ enum method_missing_reason method_missing_reason; /* used by method_missing */
int inc_sp; /* used by cfunc */
} aux;
@@ -721,7 +723,7 @@ typedef struct rb_thread_struct {
rb_ensure_list_t *ensure_list;
/* misc */
- int method_missing_reason;
+ enum method_missing_reason method_missing_reason;
int abort_on_exception;
#ifdef USE_SIGALTSTACK
void *altstack;