diff options
author | Revo <projectrevotpp@hotmail.com> | 2020-09-13 12:35:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-13 12:35:03 -0400 |
commit | 8a7bfac7d3a81b34be131c76a98cac1f4cf9cb82 (patch) | |
tree | d2a503a323ae06264ebab085d9e3108f7c5eb33c /include | |
parent | 11effce5c0a8c617662608d05cdf906ff8e73d2c (diff) | |
parent | 9c1b7dcd0a71137bd1193e5753a92607e2b301ad (diff) |
Merge pull request #39 from red031000/master
split OSAudioSystem and decomp first func
Diffstat (limited to 'include')
-rw-r--r-- | include/SDK/OS/OSAlloc.h | 22 | ||||
-rw-r--r-- | include/types.h | 40 |
2 files changed, 62 insertions, 0 deletions
diff --git a/include/SDK/OS/OSAlloc.h b/include/SDK/OS/OSAlloc.h new file mode 100644 index 0000000..150a5f8 --- /dev/null +++ b/include/SDK/OS/OSAlloc.h @@ -0,0 +1,22 @@ +#ifndef POKEREVO_OSALLOC_H +#define POKEREVO_OSALLOC_H + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct Cell Cell; + +struct Cell { + Cell* prev; + Cell* next; + long size; +}; + +Cell *DLInsert(Cell *original, Cell *inserted); + +#ifdef __cplusplus +} +#endif + +#endif //POKEREVO_OSALLOC_H diff --git a/include/types.h b/include/types.h new file mode 100644 index 0000000..01c7fbf --- /dev/null +++ b/include/types.h @@ -0,0 +1,40 @@ +#ifndef POKEREVO_TYPES_H +#define POKEREVO_TYPES_H + +typedef unsigned char u8; +typedef unsigned short int u16; +typedef unsigned long u32; + +typedef signed char s8; +typedef signed short int s16; +typedef signed long s32; + +typedef unsigned long long int u64; +typedef signed long long int s64; + +typedef volatile u8 vu8; +typedef volatile u16 vu16; +typedef volatile u32 vu32; +typedef volatile u64 vu64; + +typedef volatile s8 vs8; +typedef volatile s16 vs16; +typedef volatile s32 vs32; +typedef volatile s64 vs64; + +typedef float f32; +typedef volatile f32 vf32; + +typedef int BOOL; +#define TRUE 1 +#define FALSE 0 + +#ifndef NULL +#ifdef __cplusplus +#define NULL 0 +#else // __cplusplus +#define NULL ((void *)0) +#endif // __cplusplus +#endif + +#endif //POKEREVO_TYPES_H |