summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-14 13:19:30 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-14 13:19:30 +0000
commit559fd3e439194bbc8d55cae30c8c1ba13832c8e8 (patch)
treeef41db126b616ae21c633176f9256e19f02fa8fe /iseq.c
parent5825359dd87a26d5daf7a604583baa0ab48cc543 (diff)
downloadruby-559fd3e439194bbc8d55cae30c8c1ba13832c8e8.tar.gz
* insns.def, iseq.c, vm_insnhelper.c: rename variable name
(ip -> iseq). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/iseq.c b/iseq.c
index 617165e08b..b623a90ceb 100644
--- a/iseq.c
+++ b/iseq.c
@@ -748,9 +748,9 @@ insn_operand_intern(rb_iseq_t *iseq,
case TS_LINDEX:
{
- rb_iseq_t *ip = iseq->local_iseq;
- int lidx = ip->local_size - (int)op;
- const char *name = rb_id2name(ip->local_table[lidx]);
+ rb_iseq_t *liseq = iseq->local_iseq;
+ int lidx = liseq->local_size - (int)op;
+ const char *name = rb_id2name(liseq->local_table[lidx]);
if (name) {
ret = rb_str_new2(name);
@@ -762,13 +762,13 @@ insn_operand_intern(rb_iseq_t *iseq,
}
case TS_DINDEX:{
if (insn == BIN(getdynamic) || insn == BIN(setdynamic)) {
- rb_iseq_t *ip = iseq;
+ rb_iseq_t *diseq = iseq;
VALUE level = *pnop, i;
const char *name;
for (i = 0; i < level; i++) {
- ip = ip->parent_iseq;
+ diseq = diseq->parent_iseq;
}
- name = rb_id2name(ip->local_table[ip->local_size - op]);
+ name = rb_id2name(diseq->local_table[diseq->local_size - op]);
if (!name) {
name = "*";