RJIT: Clean up the declaration mess

This commit is contained in:
Takashi Kokubun 2023-03-08 23:07:30 -08:00
parent cf08a85b85
commit 7d7b67a472
2 changed files with 2 additions and 10 deletions

6
rjit.c
View File

@ -6,10 +6,7 @@
**********************************************************************/
#include "ruby/internal/config.h" // defines USE_RJIT
// ISO C requires a translation unit to contain at least one declaration
void rb_rjit(void) {}
#include "rjit.h" // defines USE_RJIT
#if USE_RJIT
@ -32,7 +29,6 @@ void rb_rjit(void) {}
#include "vm_core.h"
#include "vm_callinfo.h"
#include "rjit.h"
#include "rjit_c.h"
#include "ruby_assert.h"
#include "ruby/debug.h"

View File

@ -6,14 +6,10 @@
**********************************************************************/
#include "ruby/internal/config.h" // defines USE_RJIT
// ISO C requires a translation unit to contain at least one declaration
void rb_rjit_c(void) {}
#include "rjit.h" // defines USE_RJIT
#if USE_RJIT
#include "rjit.h"
#include "rjit_c.h"
#include "internal.h"
#include "internal/compile.h"