]> Kevux Git Server - fll/commit
Feature: Add _f_memory_USE_reallocarray_ and _f_memory_NO_zeroing_on_larger_ macros.
authorKevin Day <kevin@kevux.org>
Fri, 9 Feb 2024 04:34:55 +0000 (22:34 -0600)
committerKevin Day <kevin@kevux.org>
Fri, 9 Feb 2024 04:41:02 +0000 (22:41 -0600)
commit5c16170c3e04b2b9879d26f380544a1cac21a58a
treea0b69e84fa1b115ab53ae2dc2102c99423e54c70
parentf351ee5711680eda0ab5e8a005e12702af400a47
Feature: Add _f_memory_USE_reallocarray_ and _f_memory_NO_zeroing_on_larger_ macros.

The _f_memory_USE_reallocarray_ designates to use reallocarray() rather than realloc() in the f_memory project.
The _f_memory_NO_zeroing_on_larger_ designates to not perform the memset() to 0 for malloc() or realloc() calls where the new size is larger than the old size.

The programs provided by this project might expect the memory to be zeroed.
Please use _f_memory_NO_zeroing_on_larger_ carefully.
level_0/f_memory/c/private-memory.c
level_0/f_memory/data/build/defines