1.1 --- a/ucx/map.h Thu Oct 04 14:08:31 2012 +0200 1.2 +++ b/ucx/map.h Thu Oct 04 16:03:18 2012 +0200 1.3 @@ -14,7 +14,7 @@ 1.4 #endif 1.5 1.6 #define UCX_MAP_FOREACH(elm,iter) \ 1.7 - for(elm;ucx_map_iter_next(&iter,(void*)&elm)==0;) 1.8 + for(;ucx_map_iter_next(&iter,(void*)&elm)==0;) 1.9 1.10 typedef struct UcxMap UcxMap; 1.11 typedef struct UcxKey UcxKey; 1.12 @@ -64,6 +64,15 @@ 1.13 1.14 int ucx_map_iter_next(UcxMapIterator *i, void **elm); 1.15 1.16 +/* use for string maps only, values are not encoded */ 1.17 +int ucx_map_load(UcxMap *map, FILE *f); 1.18 +int ucx_map_store(UcxMap *map, FILE *f); 1.19 + 1.20 +/* TODO: 1.21 +int ucx_map_load_enc(UcxMap *map, FILE *f, copy_func decoder, void* decdata); 1.22 +int ucx_map_store_enc(UcxMap *map, FILE *f, copy_func encoder, void* encdata); 1.23 + */ 1.24 + 1.25 #ifdef __cplusplus 1.26 } 1.27 #endif