mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-03 14:34:32 +00:00
Fix all headers to comply with C standard (#957)
* Fix all headers to comply with C standard * fix a file in libultra * Update include/stdbool.h Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Update stdbool.h * Update z64animation.h Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
This commit is contained in:
parent
fbc4071cc8
commit
e3f1ccd902
524 changed files with 1051 additions and 1050 deletions
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_ABI_H_
|
||||
#define _ULTRA64_ABI_H_
|
||||
#ifndef ULTRA64_ABI_H
|
||||
#define ULTRA64_ABI_H
|
||||
|
||||
/* Audio commands: */
|
||||
/*
|
||||
|
@ -528,4 +528,4 @@ typedef short ENVMIX_STATE[40];
|
|||
_a->words.w1 = _SHIFTL(pitchAccu, 0, 16); \
|
||||
}
|
||||
|
||||
#endif /* _ULTRA64_ABI_H_ */
|
||||
#endif /* ULTRA64_ABI_H */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_CONTROLLER_H_
|
||||
#define _ULTRA64_CONTROLLER_H_
|
||||
#ifndef ULTRA64_CONTROLLER_H
|
||||
#define ULTRA64_CONTROLLER_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "ultra64/message.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_CONVERT_H_
|
||||
#define _ULTRA64_CONVERT_H_
|
||||
#ifndef ULTRA64_CONVERT_H
|
||||
#define ULTRA64_CONVERT_H
|
||||
|
||||
#define OS_CLOCK_RATE 62500000LL
|
||||
#define OS_CPU_COUNTER (OS_CLOCK_RATE*3/4)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "ultra64/mbi.h"
|
||||
|
||||
#ifndef _ULTRA64_GBI_H_
|
||||
#define _ULTRA64_GBI_H_
|
||||
#ifndef ULTRA64_GBI_H
|
||||
#define ULTRA64_GBI_H
|
||||
|
||||
/* To enable Fast3DEX grucode support, define F3DEX_GBI. */
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _GS2DEX_H_
|
||||
#define _GS2DEX_H_
|
||||
#ifndef GS2DEX_H
|
||||
#define GS2DEX_H
|
||||
|
||||
#ifdef _LANGUAGE_C_PLUS_PLUS
|
||||
extern "C" {
|
||||
|
@ -374,6 +374,6 @@ extern void guS2DInitBg(uObjBg *);
|
|||
#ifdef _LANGUAGE_C_PLUS_PLUS
|
||||
}
|
||||
#endif
|
||||
#endif /* _GS2DEX_H_ */
|
||||
#endif /* GS2DEX_H */
|
||||
|
||||
/*======== End of gs2dex.h ========*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_GU_H_
|
||||
#define _ULTRA64_GU_H_
|
||||
#ifndef ULTRA64_GU_H
|
||||
#define ULTRA64_GU_H
|
||||
|
||||
#define GU_PI 3.1415926
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_HARDWARE_H_
|
||||
#define _ULTRA64_HARDWARE_H_
|
||||
#ifndef ULTRA64_HARDWARE_H
|
||||
#define ULTRA64_HARDWARE_H
|
||||
|
||||
#define HW_REG(reg, type) *(volatile type*)((reg) | 0xa0000000)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_INTERNAL_H_
|
||||
#define _ULTRA64_INTERNAL_H_
|
||||
#ifndef ULTRA64_INTERNAL_H
|
||||
#define ULTRA64_INTERNAL_H
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ u32 initialized;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_INTERRUPT_H_
|
||||
#define _ULTRA64_INTERRUPT_H_
|
||||
#ifndef ULTRA64_INTERRUPT_H
|
||||
#define ULTRA64_INTERRUPT_H
|
||||
|
||||
typedef u32 OSIntMask;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_MBI_H_
|
||||
#define _ULTRA64_MBI_H_
|
||||
#ifndef ULTRA64_MBI_H
|
||||
#define ULTRA64_MBI_H
|
||||
|
||||
/*
|
||||
* Header file for the Media Binary Interface
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_MESSAGE_H_
|
||||
#define _ULTRA64_MESSAGE_H_
|
||||
#ifndef ULTRA64_MESSAGE_H
|
||||
#define ULTRA64_MESSAGE_H
|
||||
|
||||
#include "ultra64/types.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_PFS_H_
|
||||
#define _ULTRA64_PFS_H_
|
||||
#ifndef ULTRA64_PFS_H
|
||||
#define ULTRA64_PFS_H
|
||||
|
||||
#include "ultra64.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_PI_H_
|
||||
#define _ULTRA64_PI_H_
|
||||
#ifndef ULTRA64_PI_H
|
||||
#define ULTRA64_PI_H
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ u32 errStatus;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_PRINTF_H_
|
||||
#define _ULTRA64_PRINTF_H_
|
||||
#ifndef ULTRA64_PRINTF_H
|
||||
#define ULTRA64_PRINTF_H
|
||||
#include "stdarg.h"
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_RCP_H_
|
||||
#define _ULTRA64_RCP_H_
|
||||
#ifndef ULTRA64_RCP_H
|
||||
#define ULTRA64_RCP_H
|
||||
|
||||
#define VI_NTSC_CLOCK 48681812 /* Hz = 48.681812 MHz */
|
||||
#define VI_PAL_CLOCK 49656530 /* Hz = 49.656530 MHz */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_RDP_H_
|
||||
#define _ULTRA64_RDP_H_
|
||||
#ifndef ULTRA64_RDP_H
|
||||
#define ULTRA64_RDP_H
|
||||
|
||||
/* DP Command Registers */
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_RSP_H_
|
||||
#define _ULTRA64_RSP_H_
|
||||
#ifndef ULTRA64_RSP_H
|
||||
#define ULTRA64_RSP_H
|
||||
|
||||
/* SP Status Flags */
|
||||
#define SP_STATUS_HALT 0x001
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_SPTASK_H_
|
||||
#define _ULTRA64_SPTASK_H_
|
||||
#ifndef ULTRA64_SPTASK_H
|
||||
#define ULTRA64_SPTASK_H
|
||||
|
||||
/* Task Types */
|
||||
#define M_NULTASK 0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_THREAD_H_
|
||||
#define _ULTRA64_THREAD_H_
|
||||
#ifndef ULTRA64_THREAD_H
|
||||
#define ULTRA64_THREAD_H
|
||||
|
||||
#define OS_PRIORITY_MAX 255
|
||||
#define OS_PRIORITY_VIMGR 254
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_TIME_H_
|
||||
#define _ULTRA64_TIME_H_
|
||||
#ifndef ULTRA64_TIME_H
|
||||
#define ULTRA64_TIME_H
|
||||
|
||||
#include "ultra64/message.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_TYPES_H_
|
||||
#define _ULTRA64_TYPES_H_
|
||||
#ifndef ULTRA64_TYPES_H
|
||||
#define ULTRA64_TYPES_H
|
||||
|
||||
typedef signed char s8;
|
||||
typedef unsigned char u8;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ULTRA64_VI_H_
|
||||
#define _ULTRA64_VI_H_
|
||||
#ifndef ULTRA64_VI_H
|
||||
#define ULTRA64_VI_H
|
||||
|
||||
/* Special Features */
|
||||
#define OS_VI_GAMMA_ON 0x0001
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue