X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fdoc%2Fhashtable.txt;h=630b1aa5b0c3631131f031d279189e76ea9f997b;hb=HEAD;hp=72a0f5e0ead794710536a1f9b5b8477bb7f356aa;hpb=886df670ca5c391ffeb468dd2f30f02a81d257e6;p=libucw.git diff --git a/ucw/doc/hashtable.txt b/ucw/doc/hashtable.txt index 72a0f5e0..630b1aa5 100644 --- a/ucw/doc/hashtable.txt +++ b/ucw/doc/hashtable.txt @@ -52,7 +52,7 @@ You can define any of these macros and provide corresponding functions to customize the behaviour. The macros are: [[give_hashfn]] -- `HASH_GIVE_HASHFN` -- the table will use `uns +- `HASH_GIVE_HASHFN` -- the table will use `uint HASH_PREFIX(hash)(key)` to calculate hash of `key`. There is a sensible default for integers and strings. In the case of <>, it is mandatory @@ -78,14 +78,14 @@ to customize the behaviour. The macros are: *)` is used to initialize the rest of node. Useful if you use <> - `HASH_GIVE_ALLOC` -- you need to provide `void - \*HASH_PREFIX(alloc)(uns size` and `void HASH_PREFIX(free)(void \*)` + \*HASH_PREFIX(alloc)(uint size` and `void HASH_PREFIX(free)(void \*)` to allocate and deallocate the nodes. Default uses <> and <>, <> or <>, depending on <>, <>, <> and <> switches. - <> -- you need to provide `void - \*HASH_PREFIX(table_alloc)(uns size` and `void HASH_PREFIX(table_free)(void \*)` + \*HASH_PREFIX(table_alloc)(uint size` and `void HASH_PREFIX(table_free)(void \*)` to allocate and deallocate the table itself. Default uses <> and <> or the functions from `HASH_GIVE_ALLOC` depending on <> switch.