mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
_insn_type_chars.erb: use C99
Now that comma at the end of enum is allowed, we can write this much more straight-forward. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e20714062b
commit
857bbfd02c
1 changed files with 3 additions and 2 deletions
|
@ -6,7 +6,8 @@
|
|||
%# conditions mentioned in the file COPYING are met. Consult the file for
|
||||
%# details.
|
||||
%
|
||||
% map = RubyVM::Typemap.each_pair.map {|k, (c, t)| sprintf "%s = '%s'", t, c }
|
||||
enum ruby_insn_type_chars {
|
||||
<%= map.join(",\n ") %>
|
||||
% RubyVM::Typemap.each_value do |(c, t)|
|
||||
<%= t %> = '<%= c %>',
|
||||
% end
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue