kike: implement LIST
This commit is contained in:
@@ -634,7 +634,7 @@ str_map_iter_init (struct str_map_iter *self, struct str_map *map)
|
||||
self->link = NULL;
|
||||
}
|
||||
|
||||
static bool
|
||||
static void *
|
||||
str_map_iter_next (struct str_map_iter *self)
|
||||
{
|
||||
struct str_map *map = self->map;
|
||||
@@ -643,10 +643,10 @@ str_map_iter_next (struct str_map_iter *self)
|
||||
while (!self->link)
|
||||
{
|
||||
if (self->next_index >= map->len)
|
||||
return false;
|
||||
return NULL;
|
||||
self->link = map->map[self->next_index++];
|
||||
}
|
||||
return true;
|
||||
return self->link->data;
|
||||
}
|
||||
|
||||
static uint64_t
|
||||
|
||||
Reference in New Issue
Block a user