From 3f33ccb9a723b2e214a76880d4830398698d27db Mon Sep 17 00:00:00 2001 From: red031000 Date: Sun, 13 Sep 2020 17:27:26 +0100 Subject: FISRT FUNC DECOMPED, DLInsert --- include/SDK/OS/OSAlloc.h | 22 ++++++++++++++++++++++ include/types.h | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 include/SDK/OS/OSAlloc.h create mode 100644 include/types.h (limited to 'include') 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 -- cgit v1.2.3