Skip to content

Commit

Permalink
r17935@catbus: nickm | 2008-02-05 20:54:54 -0500
Browse files Browse the repository at this point in the history
 Add typechecking cast functions for typed digestmap variants.


svn:r13396
  • Loading branch information
nmathewson committed Feb 6, 2008
1 parent 368f62c commit 8366da0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/container.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ void* strmap_remove_lc(strmap_t *map, const char *key);
{ \
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) \
{ \
return (valtype*)digestmap_get((digestmap_t*)map, key); \
Expand Down

0 comments on commit 8366da0

Please sign in to comment.