Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 6 additions & 29 deletions shared/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,16 @@
extern "C" {
#endif



typedef unsigned int uint32_t;
typedef long unsigned int size_t;
typedef unsigned long uint64_t;
typedef unsigned long uintptr_t;
typedef unsigned short uint16_t;
typedef unsigned char uint8_t;

#define UINT64_MAX 0xFFFFFFFFFFFFFFFFULL
#define UINT16_MAX 0xFFFF
#define UINT32_MAX 0xFFFFFFFF

typedef int int32_t;
typedef long int64_t;
typedef long intptr_t;
typedef short int16_t;
typedef char int8_t;
// Note: only include freestanding headers here
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

typedef struct sizedptr {
uintptr_t ptr;
size_t size;
} sizedptr;

#define NULL 0

#ifdef __cplusplus
}
#else

typedef unsigned int bool;

#define true 1
#define false 0

#endif
} // extern "C"
#endif