# HG changeset patch # User Olaf Wintermann # Date 1376066767 -7200 # Node ID 81a02ad99388b6422fd3d9604611638c1b0420b5 # Parent b798f2eed26ac3f8196d03c61a7e435b4986d6fa changed parameter order of ucx_map_new_a diff -r b798f2eed26a -r 81a02ad99388 ucx/map.c --- a/ucx/map.c Fri Aug 09 15:29:26 2013 +0200 +++ b/ucx/map.c Fri Aug 09 18:46:07 2013 +0200 @@ -32,10 +32,10 @@ #include "map.h" UcxMap *ucx_map_new(size_t size) { - return ucx_map_new_a(size, NULL); + return ucx_map_new_a(NULL, size); } -UcxMap *ucx_map_new_a(size_t size, UcxAllocator *allocator) { +UcxMap *ucx_map_new_a(UcxAllocator *allocator, size_t size) { if(size == 0) { size = 16; } diff -r b798f2eed26a -r 81a02ad99388 ucx/map.h --- a/ucx/map.h Fri Aug 09 15:29:26 2013 +0200 +++ b/ucx/map.h Fri Aug 09 18:46:07 2013 +0200 @@ -92,11 +92,11 @@ /** * Creates a new hash map with the specified size using an UcxAllocator. + * @param allocator the allocator to use * @param size the size of the hash map - * @param allocator the allocator to use * @return a pointer to the new hash map */ -UcxMap *ucx_map_new_a(size_t size, UcxAllocator *allocator); +UcxMap *ucx_map_new_a(UcxAllocator *allocator, size_t size); /** * Frees a hash map.