High-tide structure allocator for use in linked lists.
Using a free-list with the name of NAME_freelist, return a single element. The type of the element must be a structure with a field named next. When the free-list is empty, memory is claimed from the system in blocks. Elements may be returned to the pool by linking them into the free-list.
- Parameters
-
| s | The number of structures in the block. |
| t | The structure type. |
| n | The NAME portion of the NAME_freelist free-list. |
| v | The destination of the pointer to the allocated element. The contents of the allocated element will be memset to 0. |