X-macro is questionable.

This commit is contained in:
Neil 2021-03-21 14:21:48 -07:00
parent 756ef9e485
commit 822cc4e4ba
1 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,8 @@
/** X-macro for a minimal dynamic array: `MIN_ARRAY(name, type)`, where `name`
is an identifier prefix that satisfies `C` naming conventions when mangled and
`type` is defined tag-type associated therewith. When expanding the array,
resizing may be necessary and incurs amortised cost; any pointers to this
memory may become stale. */
/** Macro for a type-specific minimal dynamic array: `MIN_ARRAY(name, type)`,
where `name` is an identifier prefix that satisfies `C` naming conventions
when mangled and `type` is defined tag-type associated therewith. When
expanding the array, resizing may be necessary and incurs amortised cost; any
pointers to this memory may become stale. */
#include <stdlib.h> /* size_t realloc free */
#include <string.h> /* memmove strcmp memcpy */