diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-06 05:31:15 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-06 05:31:15 +0000 |
commit | 8366da01fb62f7c860e86831642b99cfa6e60712 (patch) | |
tree | a74438d5d81cd1f45cce353cf0f6c04b7c87fde5 /src/common/container.h | |
parent | 368f62c79d8bd64db74eed1680527d438c6d050b (diff) | |
download | tor-8366da01fb62f7c860e86831642b99cfa6e60712.tar.gz tor-8366da01fb62f7c860e86831642b99cfa6e60712.zip |
r17935@catbus: nickm | 2008-02-05 20:54:54 -0500
Add typechecking cast functions for typed digestmap variants.
svn:r13396
Diffstat (limited to 'src/common/container.h')
-rw-r--r-- | src/common/container.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/container.h b/src/common/container.h index 305dc0ea0a..e4364109de 100644 --- a/src/common/container.h +++ b/src/common/container.h @@ -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); \ |