summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/insns_info.inc.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/template/insns_info.inc.tmpl b/template/insns_info.inc.tmpl
index 933eb5ae0e..bf26279204 100644
--- a/template/insns_info.inc.tmpl
+++ b/template/insns_info.inc.tmpl
@@ -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|