Remove #includes from headers (#334)

* add "global.h" to files that use it

* add MSL_C includes to files that use them

* remove dolphin includes from headers that don't need them

* remove JSupport includes from headers that don't need them

* remove JKernel includes from headers that don't need them

* remove JUtility includes from headers that don't need them

* remove J3D includes from headers that don't need them

* remove J2D includes from headers that don't need them

* remove JAudio2 includes from headers that don't need them

* remove Z2AudioLib includes from headers that don't need them

* remove JMessage includes from headers that don't need them

* remove JParticle includes from headers that don't need them

* remove SComponent includes from headers that don't need them

* remove dol includes from headers that don't need them

* sort includes
This commit is contained in:
Jcw87
2023-05-12 12:10:14 -07:00
committed by GitHub
parent 8c7cda8589
commit 221f40e609
640 changed files with 1703 additions and 560 deletions
+4
View File
@@ -1,6 +1,8 @@
#ifndef CARDPRIV_H
#define CARDPRIV_H
#include "dolphin/os/OSAlarm.h"
#include "dolphin/os/OSThread.h"
#include "dolphin/types.h"
#ifdef __cplusplus
@@ -22,6 +24,8 @@ extern "C" {
#define CARD_MAX_MOUNT_STEP (CARD_NUM_SYSTEM_BLOCK + 2)
typedef struct DVDDiskID DVDDiskID;
typedef struct CARDDir {
u8 gameName[4];
u8 company[2];
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef DSP_H
#define DSP_H
#include "dolphin/os/OS.h"
#include "dolphin/os/OSTime.h"
volatile u16 __DSPRegs[32] : 0xCC005000;
volatile u32 __AIRegs[8] : 0xCC006C00;
+3 -1
View File
@@ -1,12 +1,14 @@
#ifndef EXIBIOS_H
#define EXIBIOS_H
#include "dolphin/os/OS.h"
#include "dolphin/types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OSContext OSContext;
vu32 __EXIRegs[16] : 0xCC006800;
#define EXI_MEMORY_CARD_59 0x00000004
+3 -1
View File
@@ -1,13 +1,15 @@
#ifndef GDGEOMETRY_H
#define GDGEOMETRY_H
#include "dolphin/gx/GX.h"
#include "dolphin/gx/GXEnum.h"
#include "dolphin/types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _GXVtxDescList GXVtxDescList;
void GDSetVtxDescv(GXVtxDescList*);
void GDSetArray(GXAttr attr, const void* data, u8 stride);
void GDSetArrayRaw(GXAttr attr, u32 data, u8 stride);
-1
View File
@@ -2,7 +2,6 @@
#define GXBUMP_H
#include "dolphin/gx/GXEnum.h"
#include "dolphin/mtx/mtx.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -3,7 +3,7 @@
#include "dolphin/gx/GXStruct.h"
#include "dolphin/gx/GXEnum.h"
#include "dolphin/os/OS.h"
#include "dolphin/os/OSThread.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -1,8 +1,8 @@
#ifndef OSALARM_H
#define OSALARM_H
#include "dolphin/os/OSTime.h"
#include "dolphin/os/OSError.h"
#include "dolphin/os/OSTime.h"
#ifdef __cplusplus
extern "C" {
+3 -1
View File
@@ -1,12 +1,14 @@
#ifndef OSERROR_H
#define OSERROR_H
#include "dolphin/os/OSContext.h"
#include "dolphin/types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OSContext OSContext;
extern u32 __OSFpscrEnableBits;
typedef u16 OSError;
+3 -1
View File
@@ -1,12 +1,14 @@
#ifndef OSINTERRUPT_H
#define OSINTERRUPT_H
#include "dolphin/os/OSContext.h"
#include "dolphin/types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OSContext OSContext;
typedef enum {
OS_INTR_MEM_0,
OS_INTR_MEM_1,
-1
View File
@@ -1,7 +1,6 @@
#ifndef OSMEMORY_H
#define OSMEMORY_H
#include "dolphin/types.h"
#include "dolphin/os/OSInterrupt.h"
#ifdef __cplusplus
+3 -1
View File
@@ -1,12 +1,14 @@
#ifndef PAD_H
#define PAD_H
#include "dolphin/os/OS.h"
#include "dolphin/types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OSContext OSContext;
typedef enum PADMask {
PAD_CHAN3_BIT = (1 << 28),
PAD_CHAN2_BIT = (1 << 29),
+2 -1
View File
@@ -1,7 +1,8 @@
#ifndef SIBIOS_H
#define SIBIOS_H
#include "dolphin/os/OS.h"
#include "dolphin/os/OSInterrupt.h"
#include "dolphin/os/OSTime.h"
#ifdef __cplusplus
extern "C" {
+2 -1
View File
@@ -1,13 +1,14 @@
#ifndef VI_H
#define VI_H
#include "dolphin/gx/GX.h"
#include "dolphin/types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _GXRenderModeObj GXRenderModeObj;
#define VI_TVMODE(format, interlace) (((format) << 2) + (interlace))
#define VI_INTERLACE 0