summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-28 09:40:46 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-28 09:40:46 +0000
commit7e35c2e2d0ba1b0a0d3df190df45158044a2620d (patch)
tree9b49f0e5b8658b3e441d7de5118f25f62870bd5d /iseq.h
parentf54ed7a794f5814f16ae7d070febe0f152ea319f (diff)
merges r21088 from trunk into ruby_1_(_1.
* iseq.h, iseq.c (rb_iseq_new_main): add a type ISEQ_TYPE_MAIN. [ruby-dev:37619] * compile.c (rb_dvar_defined, ruby_iseq_compile): ditto. * iseq.c (iseq_data_to_ary, iseq_load): ditto. * compile.c (iseq_compile_each): fix to check ip->compile_data. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/iseq.h b/iseq.h
index 393ba67593..f659708aba 100644
--- a/iseq.h
+++ b/iseq.h
@@ -30,7 +30,8 @@ struct st_table *ruby_insn_make_insn_table(void);
#define ISEQ_TYPE_RESCUE INT2FIX(5)
#define ISEQ_TYPE_ENSURE INT2FIX(6)
#define ISEQ_TYPE_EVAL INT2FIX(7)
-#define ISEQ_TYPE_DEFINED_GUARD INT2FIX(8)
+#define ISEQ_TYPE_MAIN INT2FIX(8)
+#define ISEQ_TYPE_DEFINED_GUARD INT2FIX(9)
#define CATCH_TYPE_RESCUE INT2FIX(1)
#define CATCH_TYPE_ENSURE INT2FIX(2)