1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-13 02:10:57 +00:00

Reduce dependencies on global.h (10) (#2490)

* reduce z64.h size

* fix z_cheap_proc.inc.c

* ,bss

* remove temp delcaration
This commit is contained in:
mzxrules 2025-02-26 17:18:30 -05:00 committed by GitHub
parent 2b30c61a26
commit cf1a39c26f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
116 changed files with 663 additions and 308 deletions

View file

@ -1,4 +1,5 @@
#include "global.h"
#include "libc64/sprintf.h"
#include "assert.h"
#include "fault.h"
NORETURN void __assert(const char* assertion, const char* file, int line) {

View file

@ -1,11 +1,14 @@
#include "global.h"
#include "boot.h"
#include "stack.h"
#include "stackcheck.h"
#if PLATFORM_N64
#include "cic6105.h"
#endif
#include "z_locale.h"
#include "z64thread.h"
#include "global.h"
#pragma increment_block_number "gc-eu:0 gc-eu-mq:0 gc-jp:0 gc-jp-ce:0 gc-jp-mq:0 gc-us:0 gc-us-mq:0 ntsc-1.2:128"
StackEntry sBootThreadInfo;

View file

@ -1,7 +1,9 @@
#pragma increment_block_number "ntsc-1.2:0"
#include "global.h"
#include "audiomgr.h"
#include "cic6105.h"
#include "regs.h"
#include "sched.h"
#include "fault.h"
s32 func_80001714(void);

View file

@ -1,4 +1,5 @@
#include "buffers.h"
#include "main.h"
#include "segment_symbols.h"
#include "stack.h"
#include "stackcheck.h"

View file

@ -1,4 +1,5 @@
#include "global.h"
#include "attributes.h"
typedef struct ISVDbg {
/* 0x00 */ u32 magic; // "IS64"

View file

@ -1,8 +1,14 @@
#include "global.h"
#include "libu64/debug.h"
#include "alignment.h"
#include "line_numbers.h"
#include "padmgr.h"
#include "region.h"
#include "terminal.h"
#include "versions.h"
#include "line_numbers.h"
#include "z_locale.h"
#include "macros.h"
#include "global.h"
s32 gCurrentRegion = 0;

View file

@ -19,6 +19,9 @@
* to be uncompressed and the request queue and address translation is skipped.
*/
#include "libc64/sleep.h"
#include "libc64/sprintf.h"
#include "libu64/debug.h"
#include "attributes.h"
#include "fault.h"
#include "line_numbers.h"
#if PLATFORM_N64
@ -33,7 +36,7 @@
#include "global.h"
#pragma increment_block_number "gc-eu:128 gc-eu-mq:128 gc-jp:128 gc-jp-ce:128 gc-jp-mq:128 gc-us:128 gc-us-mq:128" \
"ntsc-1.2:86 pal-1.0:84 pal-1.1:84"
"ntsc-1.2:12 pal-1.0:10 pal-1.1:10"
StackEntry sDmaMgrStackInfo;
OSMesgQueue sDmaMgrMsgQueue;