diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-05-30 19:23:34 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-05-30 19:23:34 -0400 |
commit | 72daebf48e4a27de9f6633b2693ab96fb4ef1e44 (patch) | |
tree | 41d98c736ea9fcb6cdc47c621130b08b48a145de /libdimension/dimension/map.h | |
parent | 8807ab192b36acbc94e11790e9261c799ce77892 (diff) | |
download | dimension-72daebf48e4a27de9f6633b2693ab96fb4ef1e44.tar.xz |
map: Use pool.
Diffstat (limited to 'libdimension/dimension/map.h')
-rw-r--r-- | libdimension/dimension/map.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libdimension/dimension/map.h b/libdimension/dimension/map.h index 7e12e7e..77b1fe9 100644 --- a/libdimension/dimension/map.h +++ b/libdimension/dimension/map.h @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2011 Tavian Barnes <tavianator@tavianator.com> * + * Copyright (C) 2009-2014 Tavian Barnes <tavianator@tavianator.com> * * * * This file is part of The Dimension Library. * * * @@ -32,16 +32,11 @@ typedef struct dmnsn_map { /** * Create an empty map. + * @param[in] pool The memory pool to allocate from. * @param[in] size The size of the objects to store in the map. * @return A map with no entries. */ -dmnsn_map *dmnsn_new_map(size_t size); - -/** - * Delete a map. - * @param[in,out] map The map to delete. - */ -void dmnsn_delete_map(dmnsn_map *map); +dmnsn_map *dmnsn_new_map(dmnsn_pool *pool, size_t size); /** * Add an entry (a scalar-object pair) to a map. |