[Core] Fix more C99 compliance issues

This fixes almost all the C99 compliance issues in the implementation of
Clay.

Now the only issues remaining are:
- ##__VA_ARGS__, which isn't easy to solve without switching to C23.
- Defining a struct within offsetof to get the alignment of a type,
  which also isn't easy to solve without switching to C11.
- A number of times that signed integers are compared with unsigned
  integers, which will need some rethinking of all the types for lengths
  and indices etc.
- Some strangeness with the CLAY_SIZING_FIT and CLAY_SIZING_GROW macros,
  which don't compile without specifying -std=gnu99 rather than -std=c99
  for some reason.
This commit is contained in:
FintasticMan 2024-12-28 11:14:00 +00:00
parent 37af99b221
commit d761935ce1
No known key found for this signature in database
GPG Key ID: A00F1AB6DB1ED386

443
clay.h

File diff suppressed because it is too large Load Diff