Closed ijsf closed 3 months ago
I've cleaned up this PR. All tests are passing now.
uintptr_t
and intptr_t
are not touched, even though they are host dependent. Though in some places their use could theoretically be problematic (e.g. ELF header, ld objects), but it is of no concern right now.
After careful consideration, I would like to reject this pull request because it is difficult for me to support the MinGW64 platform. I apologize for not being able to meet your request.
Requirement for #156.
This seems to be one of the more invasive changes necessary.
unsigned long
,long
,uintptr_t
andintptr_t
do not have sizes that are explicitly defined in the C spec, while some of the arithmetic done on it assumes 64-bit sizes. The pointer types have been replaced with typedefs, and all of these types ultimately resolve to long long or stdint types now.wchar_t
is now explicitly a 32-bit integer inside the compiler.