diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-11-17 07:11:45 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-11-17 09:00:06 +0900 |
| commit | aae8237335accdede59a2ca7a2775ea11156884b (patch) | |
| tree | ad61e379c58032c155ec1c65fe6e26c8b6c130d5 /Rakefile | |
| parent | 354934d398043ba3bb680b26ef23cecf465d36a4 (diff) | |
| download | mruby-aae8237335accdede59a2ca7a2775ea11156884b.tar.gz mruby-aae8237335accdede59a2ca7a2775ea11156884b.zip | |
Scan all active C source files; ref 600e333
In addition, `include/mruby.h` will be scanned for error class symbols.
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -98,8 +98,8 @@ MRuby.each_target do |target| end end + cfiles += Dir.glob(gem.dir+"/{src,core}/*.c") if gem.cdump? - cfiles += Dir.glob(gem.dir+"/{src,core}/*.c") rbfiles += Dir.glob(gem.dir+"/mrblib/**/*.rb") psfiles += Dir.glob(gem.dir+"/**/presym") end @@ -176,6 +176,8 @@ file presym_file => cfiles+rbfiles+psfiles+[__FILE__] do macro_to_symbol[[prefix, suffix]] * name }] end + csymbols += File.readlines("#{MRUBY_ROOT}/include/mruby.h").grep(/define E_/).join.scan(/MRB_SYM\((\w+)\)/) + rbsymbols = rbfiles.map do |f| src = File.read(f) src.force_encoding(Encoding::BINARY) |
