kike: implement LIST

This commit is contained in:
2014-08-02 23:31:41 +02:00
parent 97f35bedfd
commit 96f4b81182
2 changed files with 56 additions and 3 deletions

View File

@@ -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