22 if (
VKEY(map, i - 1) == key)
return VVAL(map, i - 1);
28 if (
VKEY(map, i - 1) == key)
return i - 1;
34 if (
VKEY(map, i - 1) == key) {
35 VVAL(map, i - 1) = ptr;
46 for (
vtype i = 0, j = 0; i < len; ++i) {
47 if (
VKEY(map, i) != key) {
meta header (use this to include the whole library)
ANN void map_init(const Map a)
ANN void map_release(const Map map)
ANN m_int map_index(const Map map, const vtype key)
ANN void map_remove(const Map map, const vtype key)
ANN void free_map(MemPool p, const Map map)
ANN vtype map_get(const Map map, const vtype key)
ANN void map_set(const Map map, const vtype key, const vtype ptr)
ANN void map_clear(const Map v)
ANEW Map new_map(MemPool p)
ANN void map_commit(const restrict Map map, const restrict Map commit)
static ANN vtype map_size(const Map map)
#define mp_calloc(p, name)
#define mp_free(p, name, a)
static ANN void vector_realloc(const Vector v)
static ANEW void * xcalloc(const m_uint n, const m_uint sz)
static ANEW void * xrealloc(void *p, const m_uint sz)