ruby-changes:49439
From: shyouhei <ko1@a...>
Date: Tue, 2 Jan 2018 18:09:33 +0900 (JST)
Subject: [ruby-changes:49439] shyouhei:r61552 (trunk): string literal longer than 509 characters is a C99ism
shyouhei 2018-01-02 15:41:49 +0900 (Tue, 02 Jan 2018) New Revision: 61552 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61552 Log: string literal longer than 509 characters is a C99ism Modified files: trunk/template/insns_info.inc.tmpl Index: template/insns_info.inc.tmpl =================================================================== --- template/insns_info.inc.tmpl (revision 61551) +++ template/insns_info.inc.tmpl (revision 61552) @@ -13,6 +13,13 @@ https://github.com/ruby/ruby/blob/trunk/template/insns_info.inc.tmpl#L13 #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[<% https://github.com/ruby/ruby/blob/trunk/template/insns_info.inc.tmpl#L36 ; #define insn_name_info insn_name_info_base+insn_name_info_offset +#endif static const char insn_operand_info[][8] = { % @insns.each do |insn| -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/