summaryrefslogtreecommitdiff
path: root/tool/insns2vm.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-03 09:09:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-03 09:09:14 +0000
commitd942a9a1eef1636ebd98998f8e13dd6b9e615bea (patch)
treee8e9193e10bf81d22c9893cb8e47951fa4483e99 /tool/insns2vm.rb
parentfba2420be4f16a74ed867098ef256c3702ffb5d4 (diff)
downloadruby-d942a9a1eef1636ebd98998f8e13dd6b9e615bea.tar.gz
* vm_evalbody.ci, insns.def, vm.c, tool/insns2vm.rb (rb_num_t):
renamed to get rid of name clash. [ruby-dev:30504] * yarvcore.c (ruby_thread_init): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/insns2vm.rb')
-rw-r--r--tool/insns2vm.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/insns2vm.rb b/tool/insns2vm.rb
index 4fecf0a701..57d282bd67 100644
--- a/tool/insns2vm.rb
+++ b/tool/insns2vm.rb
@@ -135,12 +135,12 @@ class InsnsDef
ret = "int inc = 0;\n"
@opes.each_with_index{|(t, v), i|
- if t == 'num_t'
+ if t == 'rb_num_t'
ret << " unsigned long #{v} = FIX2INT(opes[#{i}]);\n"
end
}
@defopes.each_with_index{|((t, var), val), i|
- if t == 'num_t' && val != '*'
+ if t == 'rb_num_t' && val != '*'
ret << " unsigned long #{var} = #{val};\n"
end
}
@@ -916,7 +916,7 @@ class InsnsDef
case op
when /^OFFSET/
"TS_OFFSET"
- when /^num_t/
+ when /^rb_num_t/
"TS_NUM"
when /^lindex_t/
"TS_LINDEX"
@@ -1037,7 +1037,7 @@ class InsnsDef
val = op[1]
case type
- when /^long/, /^num_t/, /^lindex_t/, /^dindex_t/
+ when /^long/, /^rb_num_t/, /^lindex_t/, /^dindex_t/
"INT2FIX(#{val})"
when /^VALUE/
val