Change to C99 and add weak references

This commit is contained in:
2025-09-05 20:01:36 -07:00
parent 4efdcc97ae
commit 12e3923938
8 changed files with 295 additions and 51 deletions

View File

@ -10,8 +10,8 @@
* Initial value of #refcount_global_allocator.
*/
static const RefcountAllocator DEFAULT_ALLOCATOR = {
.malloc = malloc,
.free = free,
.malloc.no_data = malloc,
.free.no_data = free,
.pass_data = false,
.user_data = NULL,
};