Lines Matching defs:zmap
82 struct zmap *map;
282 // zmap: Mapping data type for arrays; a hash table. Values in hash are either
283 // 0 (unused), -1 (marked deleted), or one plus the number of the zmap slot
288 struct zmap {
567 //// zmap (array) implementation
586 static struct zmap_slot *find_mapslot(struct zmap *m, struct zstring *key, int *hash, int *probe)
616 static struct zvalue *zmap_find(struct zmap *m, struct zstring *key)
623 static void zmap_init(struct zmap *m)
636 struct zmap *m = xmalloc(sizeof(*m));
642 static void zmap_delete_map_incl_slotdata(struct zmap *m)
652 static void zmap_delete_map(struct zmap *m)
658 static void zmap_rehash(struct zmap *m)
683 static struct zmap_slot *zmap_find_or_insert_key(struct zmap *m, struct zstring *key)
703 static void zmap_delete(struct zmap *m, struct zstring *key)
2704 static void set_map_element(struct zmap *m, int k, char *val, size_t len)
2728 static void set_field(struct zmap *unused, int fnum, char *s, size_t size)
2742 static int splitter(void (*setter)(struct zmap *, int, char *, size_t), struct zmap *m, char *s, struct zvalue *zvfs)
3959 struct zmap *m = v->map; // Need for MAPSLOT macro