diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-27 12:00:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-27 12:00:38 +0000 |
commit | fd144546885390d549414e5bc103111c7563be71 (patch) | |
tree | 41d9658f603493b6b557d3fa7c2a5353db2af28d /iseq.c | |
parent | a6488f04deba974e556290a84763fe4918ce9660 (diff) |
compile.c, iseq.c: consitfied NODE pointers
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -455,7 +455,7 @@ make_compile_option_value(rb_compile_option_t *option) } rb_iseq_t * -rb_iseq_new(NODE *node, VALUE name, VALUE path, VALUE realpath, +rb_iseq_new(const NODE *node, VALUE name, VALUE path, VALUE realpath, const rb_iseq_t *parent, enum iseq_type type) { return rb_iseq_new_with_opt(node, name, path, realpath, INT2FIX(0), parent, type, @@ -463,14 +463,14 @@ rb_iseq_new(NODE *node, VALUE name, VALUE path, VALUE realpath, } rb_iseq_t * -rb_iseq_new_top(NODE *node, VALUE name, VALUE path, VALUE realpath, const rb_iseq_t *parent) +rb_iseq_new_top(const NODE *node, VALUE name, VALUE path, VALUE realpath, const rb_iseq_t *parent) { return rb_iseq_new_with_opt(node, name, path, realpath, INT2FIX(0), parent, ISEQ_TYPE_TOP, &COMPILE_OPTION_DEFAULT); } rb_iseq_t * -rb_iseq_new_main(NODE *node, VALUE path, VALUE realpath, const rb_iseq_t *parent) +rb_iseq_new_main(const NODE *node, VALUE path, VALUE realpath, const rb_iseq_t *parent) { return rb_iseq_new_with_opt(node, rb_fstring_cstr("<main>"), path, realpath, INT2FIX(0), @@ -492,7 +492,7 @@ iseq_translate(rb_iseq_t *iseq) } rb_iseq_t * -rb_iseq_new_with_opt(NODE *node, VALUE name, VALUE path, VALUE realpath, +rb_iseq_new_with_opt(const NODE *node, VALUE name, VALUE path, VALUE realpath, VALUE first_lineno, const rb_iseq_t *parent, enum iseq_type type, const rb_compile_option_t *option) { @@ -852,7 +852,7 @@ iseqw_s_compile_file(int argc, VALUE *argv, VALUE self) { VALUE file, line = INT2FIX(1), opt = Qnil; VALUE parser, f, exc = Qnil; - NODE *node; + const NODE *node; rb_compile_option_t option; int i; |