summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-01-27 23:44:04 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-01-27 23:44:04 +0900
commit69f9460075271432334f590a91605401ca860001 (patch)
tree93ae28c4a5536322063fa02997772a2b7ef0eed0 /lib
parentf0eb50a55d09e8a203ce54dc2a6c6591943a2e6a (diff)
downloadmruby-69f9460075271432334f590a91605401ca860001.tar.gz
mruby-69f9460075271432334f590a91605401ca860001.zip
Add `static` modifiers to preallocated symbols tables; ref #5303
Diffstat (limited to 'lib')
-rw-r--r--lib/mruby/presym.rb4
1 files 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