sotn-decomp/include/types.h
bismurphy 387164b7d9
Decompile RIC EntityCrossBoomerang (#1019)
Tried to comment this one pretty heavily since it's a relatively more
comprehensible function than usual.

Otherwise nothing too special or surprising here. I'm surprised at how
case 1 works though, I wonder what condition it's actually testing for.

Oh, and there was one pesky fake variable in there, but it's not too
egregious. It's in case 5.
2024-02-01 10:31:17 -08:00

57 lines
1.0 KiB
C

#ifndef TYPES_H
#define TYPES_H
#ifndef VERSION_PC
typedef char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned long u_long;
typedef unsigned int size_t;
#else
#include <sys/types.h>
#endif
#ifdef _MSC_VER
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned long long u_long;
#endif
typedef signed char s8;
typedef signed short s16;
typedef signed int s32;
typedef signed long long s64;
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long long u64;
typedef signed char byte;
typedef enum { false, true } bool;
#ifndef NULL
#define NULL (0)
#endif
typedef union {
s32 val;
struct {
s16 lo;
s16 hi;
} i;
} f32;
typedef struct {
/* 0x0 */ s16 x;
/* 0x2 */ s16 y;
} Point16; // size = 0x4
#endif