mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:07:36 +00:00
Kernel+AK: Add/fix uintptr_t and intptr_t definitions
We should move towards using uintptr_t instead of u32 for pointers everywhere, to prepare for an eventual 64-bit port.
This commit is contained in:
parent
68d5b39942
commit
e07b34b9b8
2 changed files with 5 additions and 2 deletions
|
@ -56,6 +56,9 @@ static_assert(sizeof(ssize_t) == sizeof(i32));
|
||||||
|
|
||||||
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
||||||
|
|
||||||
|
typedef __INTPTR_TYPE__ intptr_t;
|
||||||
|
typedef __UINTPTR_TYPE__ uintptr_t;
|
||||||
|
|
||||||
typedef u8 uint8_t;
|
typedef u8 uint8_t;
|
||||||
typedef u16 uint16_t;
|
typedef u16 uint16_t;
|
||||||
typedef u32 uint32_t;
|
typedef u32 uint32_t;
|
||||||
|
|
|
@ -69,8 +69,8 @@ typedef __INT_LEAST64_TYPE__ int_least64_t;
|
||||||
#define __int64_t_defined 1
|
#define __int64_t_defined 1
|
||||||
#define __uint64_t_defined 1
|
#define __uint64_t_defined 1
|
||||||
|
|
||||||
typedef __PTRDIFF_TYPE__ uintptr_t;
|
typedef __UINTPTR_TYPE__ uintptr_t;
|
||||||
typedef __PTRDIFF_TYPE__ intptr_t;
|
typedef __INTPTR_TYPE__ intptr_t;
|
||||||
|
|
||||||
typedef __UINTMAX_TYPE__ uintmax_t;
|
typedef __UINTMAX_TYPE__ uintmax_t;
|
||||||
#define UINTMAX_MAX __UINTMAX_MAX__
|
#define UINTMAX_MAX __UINTMAX_MAX__
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue