mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
size_t must be an unsigned it. Moreover, by definition, size_t is the return type of the "sizeof" operator, which is defined by the compiler. Both GCC and clang define a __SIZE_TYPE__ macro to let the libc header know about the type used by the sizeof operator. Change-Id: Ie44f1ba69fe2b1d5ce5cd9a0e7fd8a7f10c1199d
liba is an adhoc libc. Warning: you must call "liba_init()" before using liba. We need a very small subset of the functionality provided by the standard C library. We could use an available libc implementation, but those are usually way too large and may have problematic licenses. It wouldn't even be fair to call liba a libc at all since it doesn't come close to implementing a significant portion of the standard. However, we do need some functionality usually provided by libc, so instead of reinventing the wheel we just implement the same entities (types, functions, etc…).