mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 08:25:20 +08:00
Move prism_compile.h include out of iseq.h
iseq.h does not reference any of the pm_* types or functions declared in prism_compile.h, so include the latter from the files that actually use it instead. Only 6 of the 19 files including iseq.h need the prism declarations, so this keeps prism/prism.h out of the include closure of ast.c, box.c, builtin.c, cont.c, eval.c, jit.c, proc.c, thread.c, vm_dump.c, vm_trace.c, yjit.c, zjit.c and internal/jit.h. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
e43b7fe4d2
commit
091399f637
7 files changed
+7
-1
Notes:
git
2026-10-14 14:21:01 +00:00
No files matched your search
@@ -38,6 +38,7 @@
|
||||
#include "internal/thread.h"
|
||||
#include "internal/variable.h"
|
||||
#include "iseq.h"
|
||||
#include "prism_compile.h"
|
||||
#include "ruby/util.h"
|
||||
#include "vm_core.h"
|
||||
#include "vm_sync.h"
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#include "internal/gc.h"
|
||||
#include "shape.h"
|
||||
#include "vm_core.h"
|
||||
#include "prism_compile.h"
|
||||
|
||||
RUBY_EXTERN const int ruby_api_version[];
|
||||
#define ISEQ_MAJOR_VERSION ((unsigned int)ruby_api_version[0])
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "internal/thread.h"
|
||||
#include "internal/variable.h"
|
||||
#include "iseq.h"
|
||||
#include "prism_compile.h"
|
||||
#include "probes.h"
|
||||
#include "darray.h"
|
||||
#include "ruby/encoding.h"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "internal/array.h"
|
||||
#include "internal/eval.h"
|
||||
#include "iseq.h"
|
||||
#include "prism_compile.h"
|
||||
#include "vm_core.h"
|
||||
#include "builtin.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "prism.h"
|
||||
#include "prism_compile.h"
|
||||
#include "ruby/version.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "internal/ruby_parser.h"
|
||||
#include "internal/vm.h"
|
||||
#include "iseq.h"
|
||||
#include "prism_compile.h"
|
||||
#include "ruby/debug.h"
|
||||
#include "ruby/encoding.h"
|
||||
#include "ruby/internal/intern/io.h"
|
||||
|
||||
Reference in new issue
Block a user