mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
r17935@catbus: nickm | 2008-02-05 20:54:54 -0500
Add typechecking cast functions for typed digestmap variants. svn:r13396
This commit is contained in:
parent
368f62c79d
commit
8366da01fb
@ -260,6 +260,10 @@ void* strmap_remove_lc(strmap_t *map, const char *key);
|
|||||||
{ \
|
{ \
|
||||||
return (maptype*)digestmap_new(); \
|
return (maptype*)digestmap_new(); \
|
||||||
} \
|
} \
|
||||||
|
static INLINE digestmap_t* prefix##to_digestmap(maptype *map) \
|
||||||
|
{ \
|
||||||
|
return (digestmap_t*)map; \
|
||||||
|
} \
|
||||||
static INLINE valtype* prefix##get(maptype *map, const char *key) \
|
static INLINE valtype* prefix##get(maptype *map, const char *key) \
|
||||||
{ \
|
{ \
|
||||||
return (valtype*)digestmap_get((digestmap_t*)map, key); \
|
return (valtype*)digestmap_get((digestmap_t*)map, key); \
|
||||||
|
Loading…
Reference in New Issue
Block a user