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
     1.1 --- a/ucx/map.c	Fri Aug 09 15:29:26 2013 +0200
     1.2 +++ b/ucx/map.c	Fri Aug 09 18:46:07 2013 +0200
     1.3 @@ -32,10 +32,10 @@
     1.4  #include "map.h"
     1.5  
     1.6  UcxMap *ucx_map_new(size_t size) {
     1.7 -    return ucx_map_new_a(size, NULL);
     1.8 +    return ucx_map_new_a(NULL, size);
     1.9  }
    1.10  
    1.11 -UcxMap *ucx_map_new_a(size_t size, UcxAllocator *allocator) {
    1.12 +UcxMap *ucx_map_new_a(UcxAllocator *allocator, size_t size) {
    1.13      if(size == 0) {
    1.14          size = 16;
    1.15      }
     2.1 --- a/ucx/map.h	Fri Aug 09 15:29:26 2013 +0200
     2.2 +++ b/ucx/map.h	Fri Aug 09 18:46:07 2013 +0200
     2.3 @@ -92,11 +92,11 @@
     2.4  
     2.5  /**
     2.6   * Creates a new hash map with the specified size using an UcxAllocator.
     2.7 + * @param allocator the allocator to use
     2.8   * @param size the size of the hash map
     2.9 - * @param allocator the allocator to use
    2.10   * @return a pointer to the new hash map
    2.11   */
    2.12 -UcxMap *ucx_map_new_a(size_t size, UcxAllocator *allocator);
    2.13 +UcxMap *ucx_map_new_a(UcxAllocator *allocator, size_t size);
    2.14  
    2.15  /**
    2.16   * Frees a hash map.

mercurial