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

string literal longer than 509 characters is a C99ism

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2018-01-02 06:41:49 +00:00
parent 11c19de76b
commit dfb24be6c4

View file

@ -13,6 +13,13 @@
#define <%=t%> '<%=c%>'
% end
#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
static const char *insn_name_info[] = {
% @insns.each do |insn|
"<%= insn.name %>",
% end
};
#else
static const unsigned short insn_name_info_offset[] = {
% insn_name_length = @insns.inject(0) do |ofs, insn|
<%= ofs %>,
@ -29,6 +36,7 @@ static const char insn_name_info_base[<%=insn_name_length%>] = ""
;
#define insn_name_info insn_name_info_base+insn_name_info_offset
#endif
static const char insn_operand_info[][8] = {
% @insns.each do |insn|