hashmap: Make sure Iterator struct is named

Otherwise we can't forward declare it.

Split out of #37344
This commit is contained in:
Daan De Meyer
2025-05-14 17:21:37 +02:00
parent 02b6ac3a50
commit 5f7b80b4e5
+1 -1
View File
@@ -38,7 +38,7 @@ typedef struct IteratedCache IteratedCache; /* Caches the iterated order of on
/* Ideally the Iterator would be an opaque struct, but it is instantiated
* by hashmap users, so the definition has to be here. Do not use its fields
* directly. */
typedef struct {
typedef struct Iterator {
const void *next_key; /* expected value of that entry's key pointer */
unsigned idx; /* index of an entry to be iterated next */
#if ENABLE_DEBUG_HASHMAP