/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "primes.h"
#include "hash2.h"
struct hash2_value {
unsigned int key_hash;
/* user_data[value_size] */
};
struct hash2_table {
unsigned int count;
unsigned int initial_size;
unsigned int hash_table_size;
unsigned int value_size;
void *context;
};
{
}
struct hash2_table *
{
return hash;
}
{
}
{
}
{
float nodes_per_list;
return;
return;
for (i = 0; i < old_count; i++) {
}
}
}
{
void *user_value;
return user_value;
}
}
return NULL;
}
{
}
}
}
return NULL;
}
{
}
{
} else {
}
return value + 1;
}
static void
{
deleted_value = *valuep;
}
{
return;
}
}
i_panic("hash2_remove(): key not found");
}
{
/* don't allow resizing, otherwise iterating would
break completely */
return;
}
}
}
{
}