From 69f9460075271432334f590a91605401ca860001 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 27 Jan 2021 23:44:04 +0900 Subject: Add `static` modifiers to preallocated symbols tables; ref #5303 --- lib/mruby/presym.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mruby/presym.rb b/lib/mruby/presym.rb index b00940a65..d56719487 100644 --- a/lib/mruby/presym.rb +++ b/lib/mruby/presym.rb @@ -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 -- cgit v1.2.3