ruby-changes:68717
From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:12:33 +0900 (JST)
Subject: [ruby-changes:68717] f68ddaa54a (master): Declare instead of define data varaibles in header
https://git.ruby-lang.org/ruby.git/commit/?id=f68ddaa54a From f68ddaa54aee1d1470372c8f38f61e58bf61d55a Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Fri, 22 Jan 2021 15:06:51 -0500 Subject: Declare instead of define data varaibles in header --- ujit_codegen.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ujit_codegen.h b/ujit_codegen.h index 26b97bbc2a..a3fd53a154 100644 --- a/ujit_codegen.h +++ b/ujit_codegen.h @@ -5,8 +5,8 @@ https://github.com/ruby/ruby/blob/trunk/ujit_codegen.h#L5 #include "ujit_core.h" // Code blocks we generate code into -codeblock_t* cb; -codeblock_t* ocb; +extern codeblock_t *cb; +extern codeblock_t *ocb; // Code generation state typedef struct JITState -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/