diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-09 13:30:33 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-09 13:30:33 +0000 |
commit | 30bd46a358a79e9c74ce041dd7e77162f3603ff4 (patch) | |
tree | fdd1c2be10995fd1ae420c8b5b7ef0c84d2d6d47 /tool/ruby_vm | |
parent | 55317a74f7df73bb3531ade54418c4bf6f95b30b (diff) | |
download | ruby-30bd46a358a79e9c74ce041dd7e77162f3603ff4.tar.gz |
comma at the end of enum is a C99ism.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/ruby_vm')
-rw-r--r-- | tool/ruby_vm/views/_insn_type_chars.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/ruby_vm/views/_insn_type_chars.erb b/tool/ruby_vm/views/_insn_type_chars.erb index 296004d458..b3eff5624f 100644 --- a/tool/ruby_vm/views/_insn_type_chars.erb +++ b/tool/ruby_vm/views/_insn_type_chars.erb @@ -5,8 +5,8 @@ %# granted, to either redistribute and/or modify this file, provided that the %# 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 { -% RubyVM::Typemap.each_pair do |k, (c, t)| - <%= t %> = '<%= c %>', -% end + <%= map.join(",\n ") %> }; |