* iseq.c (ruby_node_name): update node names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c179584ba4
commit
02ae0a3e76
@ -1,3 +1,7 @@
|
|||||||
|
Tue Jun 26 16:22:45 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* iseq.c (ruby_node_name): update node names.
|
||||||
|
|
||||||
Tue Jun 26 15:21:20 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
Tue Jun 26 15:21:20 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* include/ruby/ruby.h: IL32LLP64 support.
|
* include/ruby/ruby.h: IL32LLP64 support.
|
||||||
|
20
iseq.c
20
iseq.c
@ -817,6 +817,18 @@ char *
|
|||||||
ruby_node_name(int node)
|
ruby_node_name(int node)
|
||||||
{
|
{
|
||||||
switch (node) {
|
switch (node) {
|
||||||
|
/*
|
||||||
|
# generated by this script.
|
||||||
|
src = 'include/ruby/node.h'
|
||||||
|
f = open(File.expand_path(src))
|
||||||
|
line = f.gets while /enum node_type \{/ !~ line
|
||||||
|
while line = f.gets
|
||||||
|
break if /(NODE_.+),/ !~ line
|
||||||
|
node = $1
|
||||||
|
puts " case #{node}:"
|
||||||
|
puts "\treturn \"#{node}\";"
|
||||||
|
end
|
||||||
|
*/
|
||||||
case NODE_METHOD:
|
case NODE_METHOD:
|
||||||
return "NODE_METHOD";
|
return "NODE_METHOD";
|
||||||
case NODE_FBODY:
|
case NODE_FBODY:
|
||||||
@ -883,6 +895,8 @@ ruby_node_name(int node)
|
|||||||
return "NODE_CDECL";
|
return "NODE_CDECL";
|
||||||
case NODE_CVASGN:
|
case NODE_CVASGN:
|
||||||
return "NODE_CVASGN";
|
return "NODE_CVASGN";
|
||||||
|
case NODE_CVDECL:
|
||||||
|
return "NODE_CVDECL";
|
||||||
case NODE_OP_ASGN1:
|
case NODE_OP_ASGN1:
|
||||||
return "NODE_OP_ASGN1";
|
return "NODE_OP_ASGN1";
|
||||||
case NODE_OP_ASGN2:
|
case NODE_OP_ASGN2:
|
||||||
@ -953,6 +967,10 @@ ruby_node_name(int node)
|
|||||||
return "NODE_DREGX_ONCE";
|
return "NODE_DREGX_ONCE";
|
||||||
case NODE_ARGS:
|
case NODE_ARGS:
|
||||||
return "NODE_ARGS";
|
return "NODE_ARGS";
|
||||||
|
case NODE_ARGS_AUX:
|
||||||
|
return "NODE_ARGS_AUX";
|
||||||
|
case NODE_OPT_ARG:
|
||||||
|
return "NODE_OPT_ARG";
|
||||||
case NODE_POSTARG:
|
case NODE_POSTARG:
|
||||||
return "NODE_POSTARG";
|
return "NODE_POSTARG";
|
||||||
case NODE_ARGSCAT:
|
case NODE_ARGSCAT:
|
||||||
@ -1031,8 +1049,6 @@ ruby_node_name(int node)
|
|||||||
return "NODE_LAMBDA";
|
return "NODE_LAMBDA";
|
||||||
case NODE_OPTBLOCK:
|
case NODE_OPTBLOCK:
|
||||||
return "NODE_OPTBLOCK";
|
return "NODE_OPTBLOCK";
|
||||||
case NODE_LAST:
|
|
||||||
return "NODE_LAST";
|
|
||||||
default:
|
default:
|
||||||
rb_bug("unknown node (%d)", node);
|
rb_bug("unknown node (%d)", node);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user