X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fhtable%2Fhtable_type.h;h=03cc46fc5836c8003e2c1e325c13a5ec6df5db47;hp=3b555cde4aaadd183d6e196ac50986d11fdc58d7;hb=6abc867fce8c3eba40eb26092d31e34b47dd9165;hpb=0c3590dc33d644f73bb8587db454c491830aaf26 diff --git a/ccan/htable/htable_type.h b/ccan/htable/htable_type.h index 3b555cde..03cc46fc 100644 --- a/ccan/htable/htable_type.h +++ b/ccan/htable/htable_type.h @@ -38,6 +38,9 @@ * * It's currently safe to iterate over a changing hashtable, but you might * miss an element. Iteration isn't very efficient, either. + * + * You can use HTABLE_INITIALIZER like so: + * struct ht = { HTABLE_INITIALIZER(ht.raw, _hash, NULL) }; */ #define HTABLE_DEFINE_TYPE(type, keyof, hashfn, eqfn, name) \ struct name { struct htable raw; }; \