X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fbtree%2F_info;h=7a69ed910243e5bead2fb60109a326383607abd2;hb=e4142e580c36230a1e5137f8a5f5a5cc01a57a1e;hp=46877229b9e015944d9b6cf56d289ad4a78165a0;hpb=7b877620c687786bb5b2b4bb3daffc61ca4322cf;p=ccan diff --git a/ccan/btree/_info b/ccan/btree/_info index 46877229..7a69ed91 100644 --- a/ccan/btree/_info +++ b/ccan/btree/_info @@ -1,5 +1,6 @@ -#include #include "config.h" +#include +#include /** * btree - Efficient sorted associative container based on B-trees. @@ -37,7 +38,7 @@ * }; * * //Define the ordering function order_by_letter_set - * btree_search_implement + * static btree_search_implement * ( * order_by_letter_set, * struct word *, @@ -50,7 +51,7 @@ * char *chomp(char *str); * char *make_letter_set(char *str); * - * void insert_word(struct btree *btree, struct word *word) + * static void insert_word(struct btree *btree, struct word *word) * { * btree_iterator iter; * @@ -61,7 +62,7 @@ * btree_insert_at(iter, word); * } * - * void print_anagrams(struct btree *btree, char *line) + * static void print_anagrams(struct btree *btree, char *line) * { * btree_iterator iter, end; * struct word key = { @@ -86,7 +87,7 @@ * } * } * - * int destroy_word(struct word *word, void *ctx) + * static int destroy_word(struct word *word, void *ctx) * { * (void) ctx; * @@ -97,7 +98,7 @@ * return 1; * } * - * struct btree *read_dictionary(const char *filename) + * static struct btree *read_dictionary(const char *filename) * { * FILE *f; * char line[256]; @@ -129,7 +130,7 @@ * * return btree; * - * fail: + * fail: * btree_delete(btree); * fprintf(stderr, "%s: %s\n", filename, strerror(errno)); * return NULL; @@ -223,9 +224,9 @@ * return str; * } * - * Author: Joey Adams - * Version: 0.1.0 - * Licence: BSD + * Author: Joey Adams + * License: MIT + * Version: 0.2 */ int main(int argc, char *argv[]) {