Re:Arena Allocators in C
by flohofwoe on Wednesday October 14, 2026 @04:24AM
(#50084208)
It's ok as long as the types don't leak into the public API when the code is distributed as a library. But yeah, it looks like a leftover bad habit from pre-C99 times (I suspect the author is on Windows where MSVC was very late to the C99 party), and Microsoft also recommened for a while to build C code via the C++ compiler, which is where the "cast result of malloc" habit might come from.
[ Parent
| on HN ]
There are no comments on this comment yet.