18 Sep
2023
18 Sep
'23
5:19 p.m.
On Mon Sep 18 17:19:12 2023 +0000, Zebediah Figura wrote:
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; } Actually since this is a short-lived program you could even skip freeing the array.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3151#note_45748