changed parameter order of ucx_map_new_a

Fri, 09 Aug 2013 18:46:07 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 09 Aug 2013 18:46:07 +0200
changeset 137
81a02ad99388
parent 136
b798f2eed26a
child 139
dddb9348ea42

changed parameter order of ucx_map_new_a

ucx/map.c file | annotate | diff | comparison | revisions
ucx/map.h file | annotate | diff | comparison | revisions
--- 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;
     }
--- 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.

mercurial