Add `static` modifiers to preallocated symbols tables; ref #5303

parent f0eb50a5
......@@ -90,11 +90,11 @@ module MRuby
def write_table_header(presyms)
_pp "GEN", table_header_path.relative_path
File.open(table_header_path, "w:binary") do |f|
f.puts "const uint16_t presym_length_table[] = {"
f.puts "static const uint16_t presym_length_table[] = {"
presyms.each{|sym| f.puts " #{sym.bytesize},"}
f.puts "};"
f.puts
f.puts "const char * const presym_name_table[] = {"
f.puts "static const char * const presym_name_table[] = {"
presyms.each{|sym| f.puts %| "#{sym}",|}
f.puts "};"
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment