1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-12 01:40:47 +00:00

Cleanup includes in header files (#2540)

* Cleanup includes in header files

* include libc headers without libc/ prefix

* fix

* fix2

* fix3

* fix4

* some bss lol

* bss

* fix
This commit is contained in:
Dragorn421 2025-05-24 22:20:51 +02:00 committed by GitHub
parent f7073a7837
commit 6d56b1b8e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 62 additions and 49 deletions

View file

@ -1,5 +1,7 @@
#include "libaudio.h"
#include "synthInternals.h"
#include "stdbool.h"
#include "stddef.h"
// WARNING: THE FOLLOWING CONSTANT MUST BE KEPT IN SYNC WITH SCALING IN MICROCODE!!!
#define SCALE 16384

View file

@ -1,6 +1,7 @@
#include "libaudio.h"
#include "synthInternals.h"
#include "libc/math.h"
#include "stdbool.h"
#include "stddef.h"
#include "ultra64/convert.h"
#define EQPOWER_LENGTH 128

View file

@ -1,5 +1,6 @@
#include "libaudio.h"
#include "synthInternals.h"
#include "stddef.h"
void alFilterNew(ALFilter* f, ALCmdHandler h, ALSetParam s, s32 type) {
f->source = NULL;

View file

@ -1,5 +1,6 @@
#include "libaudio.h"
#include "synthInternals.h"
#include "stddef.h"
void* alHeapDBAlloc(u8* file, s32 line, ALHeap* hp, s32 num, s32 size) {
s32 bytes;

View file

@ -1,9 +1,6 @@
#ifndef __LIB_AUDIO__
#define __LIB_AUDIO__
#include "libc/stdbool.h"
#include "libc/stddef.h"
#include "libc/stdint.h"
#include "ultra64/ultratypes.h"
#include "libaudio_abi.h"

View file

@ -1,5 +1,8 @@
#include "libaudio.h"
#include "synthInternals.h"
#include "stdbool.h"
#include "stddef.h"
#include "stdint.h"
#include "ultra64/R4300.h"
#ifndef MIN

View file

@ -1,5 +1,7 @@
#include "libaudio.h"
#include "synthInternals.h"
#include "stdbool.h"
#include "stddef.h"
#include "ultra64/convert.h"
Acmd* alResamplePull(void* filter, s16* outp, s32 outCnt, s32 sampleOffset, Acmd* p) {

View file

@ -1,5 +1,8 @@
#include "libaudio.h"
#include "synthInternals.h"
#include "stdbool.h"
#include "stddef.h"
#include "stdint.h"
#include "ultra64/convert.h"
#define RANGE 2.0

View file

@ -1,4 +1,5 @@
#include "libaudio.h"
#include "stddef.h"
ALGlobals* alGlobals = NULL;

View file

@ -1,3 +1,4 @@
#include "libaudio.h"
#include "synthInternals.h"
ALFxRef* alSynAllocFX(ALSynth* s, s16 bus, ALSynConfig* c, ALHeap* hp) {

View file

@ -1,4 +1,5 @@
#include "synthInternals.h"
#include "libaudio.h"
#include "stddef.h"
void alSynDelete(ALSynth* drvr) {
drvr->head = NULL;

View file

@ -1,4 +1,6 @@
#include "libaudio.h"
#include "synthInternals.h"
#include "stddef.h"
#ifndef MIN
#define MIN(a, b) (((a) < (b)) ? (a) : (b))

View file

@ -1,4 +1,4 @@
#include "libc/stddef.h"
#include "stddef.h"
int strcmp(const char* s, const char* t) {
while (*s == *t) {