diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-11-28 21:22:02 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-11-28 21:23:14 -0800 |
commit | acb76663ba20241e7c2552aafae8b1d883520b9a (patch) | |
tree | 837d5b9537466e93410c8c0a06bf842439f49070 | |
parent | 74bdf09215da3c9f1eb31feea3666359acbce527 (diff) |
MJIT: Rename mjit_compiler.h to mjit_c.h
because it exists primarily for generating mjit_c.rb.
-rw-r--r-- | common.mk | 2 | ||||
-rw-r--r-- | mjit_c.h (renamed from mjit_compiler.h) | 2 | ||||
-rw-r--r-- | mjit_compiler.c | 2 | ||||
-rwxr-xr-x | tool/mjit/bindgen.rb | 4 |
4 files changed, 5 insertions, 5 deletions
@@ -10024,11 +10024,11 @@ mjit_compiler.$(OBJEXT): {$(VPATH)}iseq.h mjit_compiler.$(OBJEXT): {$(VPATH)}method.h mjit_compiler.$(OBJEXT): {$(VPATH)}missing.h mjit_compiler.$(OBJEXT): {$(VPATH)}mjit.h +mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_c.h mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_c.rb mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_c.rbinc mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_compile_attr.inc mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_compiler.c -mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_compiler.h mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_unit.h mjit_compiler.$(OBJEXT): {$(VPATH)}node.h mjit_compiler.$(OBJEXT): {$(VPATH)}ruby_assert.h diff --git a/mjit_compiler.h b/mjit_c.h index b465be00fd..01d624233a 100644 --- a/mjit_compiler.h +++ b/mjit_c.h @@ -1,4 +1,4 @@ -// This file is parsed by tool/mjit/generate.rb for MJIT's C/Ruby interop. +// This file is parsed by tool/mjit/generate.rb to generate mjit_c.rb #ifndef MJIT_COMPILER_H #define MJIT_COMPILER_H diff --git a/mjit_compiler.c b/mjit_compiler.c index be3942a7b0..f71a9f09eb 100644 --- a/mjit_compiler.c +++ b/mjit_compiler.c @@ -10,7 +10,7 @@ #if USE_MJIT -#include "mjit_compiler.h" +#include "mjit_c.h" #include "internal.h" #include "internal/compile.h" #include "internal/hash.h" diff --git a/tool/mjit/bindgen.rb b/tool/mjit/bindgen.rb index 1c60262216..c9bfc470c8 100755 --- a/tool/mjit/bindgen.rb +++ b/tool/mjit/bindgen.rb @@ -335,8 +335,8 @@ if Dir.exist?(clangd_cache) system('rm', '-rf', clangd_cache, exception: true) end -# Parse mjit_compiler.h and generate mjit_c.rb -nodes = HeaderParser.new(File.join(src_dir, 'mjit_compiler.h'), cflags: cflags).parse +# Parse mjit_c.h and generate mjit_c.rb +nodes = HeaderParser.new(File.join(src_dir, 'mjit_c.h'), cflags: cflags).parse generator = BindingGenerator.new( src_path: src_path, uses: %w[ |