From c0c20ccb519071802e82341f0bb584c9d833b3de Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 21 Jul 2015 10:47:45 +0000 Subject: * compile.c: constify the first parameter (iseq). * iseq_add_mark_object() * iseq_add_mark_object_compile_time() * iseq.c, iseq.h (rb_iseq_add_mark_object): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index a61c5866af..e6b00e55bb 100644 --- a/compile.c +++ b/compile.c @@ -422,7 +422,7 @@ APPEND_ELEM(ISEQ_ARG_DECLARE LINK_ANCHOR *anchor, LINK_ELEMENT *before, LINK_ELE #endif static int -iseq_add_mark_object(rb_iseq_t *iseq, VALUE v) +iseq_add_mark_object(const rb_iseq_t *iseq, VALUE v) { if (!SPECIAL_CONST_P(v)) { rb_iseq_add_mark_object(iseq, v); @@ -433,7 +433,7 @@ iseq_add_mark_object(rb_iseq_t *iseq, VALUE v) #define ruby_sourcefile RSTRING_PTR(iseq->location.path) static int -iseq_add_mark_object_compile_time(rb_iseq_t *iseq, VALUE v) +iseq_add_mark_object_compile_time(const rb_iseq_t *iseq, VALUE v) { if (!SPECIAL_CONST_P(v)) { rb_ary_push(iseq->compile_data->mark_ary, v); -- cgit v1.2.3