Skip to content

Alloc wrappers

Rylie Pavlik requested to merge alloc-wrappers into master

I've wrapped both calloc and malloc in macros that provide a uniform interface with automatic casting to avoid type warnings.

I left the things that were malloc as U_TYPED_MALLOC, etc. since I assume that was chosen intentionally over calloc, but since it's only in the compositor, it may have simply been a style difference, in which case they might benefit from being switch to calloc.

Merge request reports