TTT

Generalize the map implementation

Bug #707624 reported by Johannes T
6
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

Revision history for this message
Johannes T (jo-ey) wrote :

The map now accepts custom (void) pointers and custom duplicate/copy functions.

Changed in ttt:
status: Incomplete → Fix Committed
Johannes T (jo-ey)
Changed in ttt:
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.