Generalize the map implementation
Bug #707624 reported by
Johannes T
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TTT |
Invalid
|
Medium
|
Johannes T |
Bug Description
It should be possible to use any value as key for ttt_map_t. The API should be
ttt_map_alloc (&map, size, int (*hash)(void *), int (*cmp)(void *), void* (*dup)(void *))
ttt_map_set (map, void*, void*)
ttt_map_get (map, void*, &void*)
Related branches
Changed in ttt: | |
status: | Fix Committed → Invalid |
To post a comment you must log in.
The map now accepts custom (void) pointers and custom duplicate/copy functions.