[前][次][番号順一覧][スレッド一覧]

ruby-changes:68855

From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:14:48 +0900 (JST)
Subject: [ruby-changes:68855] f4c04a9595 (master): Tweak include order in yjit_core.c

https://git.ruby-lang.org/ruby.git/commit/?id=f4c04a9595

From f4c04a9595d348d20100c17339b9185d9ed1ee71 Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Fri, 12 Mar 2021 12:54:54 -0500
Subject: Tweak include order in yjit_core.c

This is playing it safe. Ruby headers rely on some macros generated by
autoconf that affect what system headers behave. We should take care to
bring in those configs before including systme headers to stay
consistent with the rest of Ruby.
---
 yjit_core.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/yjit_core.c b/yjit_core.c
index 6bd9230c78..bd1f6bdd59 100644
--- a/yjit_core.c
+++ b/yjit_core.c
@@ -1,10 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/yjit_core.c#L1
+#include "ruby/ruby.h"
+#include "internal.h"
+#include "vm_sync.h"
+#include "builtin.h"
+
 #include "yjit_asm.h"
 #include "yjit_utils.h"
 #include "yjit_iface.h"
 #include "yjit_core.h"
 #include "yjit_codegen.h"
-#include "vm_sync.h"
-#include "builtin.h"
 
 // Maximum number of versions per block
 #define MAX_VERSIONS 4
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]