From a98a1850640ca709ed68df3ca57f0404bbc4d3fc Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Sat, 29 Nov 2025 06:41:28 -0700 Subject: clean up remaining struct and function name collisions I think that having structs with the same name be completely different depending on which part of the program you look at is even less readable than having functions with same name. --- map.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'map.c') diff --git a/map.c b/map.c index 6ec02d6..d8568ea 100644 --- a/map.c +++ b/map.c @@ -273,11 +273,11 @@ const Map *map_prefix(const Map *map, const char *prefix) return top; } -static void clear(Map n) +static void map_clear_impl(Map n) { if (!n.v) { - clear(n.u.n->child[0]); - clear(n.u.n->child[1]); + map_clear_impl(n.u.n->child[0]); + map_clear_impl(n.u.n->child[1]); free(n.u.n); } else { free((char*)n.u.s); @@ -287,7 +287,7 @@ static void clear(Map n) void map_clear(Map *map) { if (map->u.n) - clear(*map); + map_clear_impl(*map); map->u.n = NULL; map->v = NULL; } -- cgit v1.2.3