diff options
author | red031000 <rubenru09@aol.com> | 2020-09-13 17:27:26 +0100 |
---|---|---|
committer | red031000 <rubenru09@aol.com> | 2020-09-13 17:27:26 +0100 |
commit | 3f33ccb9a723b2e214a76880d4830398698d27db (patch) | |
tree | e7ab1e41dddbc8bc0227896c9061e68f9984cc76 /include | |
parent | 6351f79a77797a69ec1a0ed8acc923128b09a514 (diff) |
FISRT FUNC DECOMPED, DLInsert
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 |