ucx/map.h

changeset 30
23bb65cbf7a4
parent 29
bce0d7f2912b
child 31
91ac86557290
     1.1 --- a/ucx/map.h	Tue Feb 21 01:13:17 2012 +0100
     1.2 +++ b/ucx/map.h	Fri Feb 24 15:53:50 2012 +0100
     1.3 @@ -40,9 +40,9 @@
     1.4  int ucx_map_put(UcxMap *map, UcxKey key, void *data);
     1.5  void* ucx_map_get(UcxMap *map, UcxKey key);
     1.6  
     1.7 -#define ucx_map_sstr_put(m, s, d) ucx_map_put(m, ucx_key(s.ptr, 1+s.length), d)
     1.8 +#define ucx_map_sstr_put(m, s, d) ucx_map_put(m, ucx_key(s.ptr, s.length), d)
     1.9  #define ucx_map_cstr_put(m, s, d) ucx_map_put(m, ucx_key(s, 1+strlen(s)), d)
    1.10 -#define ucx_map_sstr_get(m, s) ucx_map_get(m, ucx_key(s.ptr, 1+s.length))
    1.11 +#define ucx_map_sstr_get(m, s) ucx_map_get(m, ucx_key(s.ptr, s.length))
    1.12  #define ucx_map_cstr_get(m, s) ucx_map_get(m, ucx_key(s, 1+strlen(s)))
    1.13  
    1.14  UcxKey ucx_key(void *data, size_t len);

mercurial