1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2007-05-03 09:09:14 +00:00
parent fba2420be4
commit d942a9a1ee
6 changed files with 44 additions and 37 deletions

View file

@ -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