ruby-changes:36793
From: nobu <ko1@a...>
Date: Wed, 17 Dec 2014 11:58:04 +0900 (JST)
Subject: [ruby-changes:36793] nobu:r48874 (trunk): compile.c: constify
nobu 2014-12-17 11:57:53 +0900 (Wed, 17 Dec 2014) New Revision: 48874 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48874 Log: compile.c: constify * compile.c (iseq_set_local_table): constify ID table. Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 48873) +++ compile.c (revision 48874) @@ -344,7 +344,7 @@ static int iseq_setup(rb_iseq_t *iseq, L https://github.com/ruby/ruby/blob/trunk/compile.c#L344 static int iseq_optimize(rb_iseq_t *iseq, LINK_ANCHOR *anchor); static int iseq_insns_unification(rb_iseq_t *iseq, LINK_ANCHOR *anchor); -static int iseq_set_local_table(rb_iseq_t *iseq, ID *tbl); +static int iseq_set_local_table(rb_iseq_t *iseq, const ID *tbl); static int iseq_set_exception_local_table(rb_iseq_t *iseq); static int iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *anchor, NODE * node); @@ -1336,7 +1336,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK https://github.com/ruby/ruby/blob/trunk/compile.c#L1336 } static int -iseq_set_local_table(rb_iseq_t *iseq, ID *tbl) +iseq_set_local_table(rb_iseq_t *iseq, const ID *tbl) { int size; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/