On Sat Sep 16 01:02:17 2023 +0000, Fabian Maurer wrote:
I would just use a separate wrapper function to call the base case,
and free the array from there, rather than decrementing count like that. Sorry, I'm not sure I understand what you mean...
I mean something like:
static bool type_has_full_pointer_recurse(..., struct visited_struct_array *structs) { ... }
static bool type_has_full_pointer(...) { struct visited_struct_array structs = {0}; bool ret = type_has_full_pointer_recurse(..., &structs); free(structs.structs); return ret; }