X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstrmap%2F_info;h=b8768698bf87a40de3a9bbc7163488206a02b281;hp=55319a82db53009bd3ab0b6cdd5830bd73cfd4d7;hb=ad2ce76c10f808283ea7cf25cd8e76a15710c4f3;hpb=b87f63cb8228c8fcbf760defdcf9e4c332da7667 diff --git a/ccan/strmap/_info b/ccan/strmap/_info index 55319a82..b8768698 100644 --- a/ccan/strmap/_info +++ b/ccan/strmap/_info @@ -16,10 +16,11 @@ * license_depends_compat FAIL * * Example: + * #include * #include * #include * - * static bool dump(const char *member, size_t value, void *unused) + * static bool dump(const char *member, size_t value, void *unused UNNEEDED) * { * printf("%s at %zu. ", member, value); * // true means keep going with iteration. @@ -29,7 +30,7 @@ * int main(int argc, char *argv[]) * { * size_t i; - * struct { STRMAP_MEMBERS(size_t); } map; + * STRMAP(size_t) map; * * strmap_init(&map); * for (i = 1; i < argc; i++)