]> git.ozlabs.org Git - ccan/blobdiff - ccan/btree/_info
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / btree / _info
index 46877229b9e015944d9b6cf56d289ad4a78165a0..7a69ed910243e5bead2fb60109a326383607abd2 100644 (file)
@@ -1,5 +1,6 @@
-#include <string.h>
 #include "config.h"
 #include "config.h"
+#include <stdio.h>
+#include <string.h>
 
 /**
  * btree - Efficient sorted associative container based on B-trees.
 
 /**
  * btree - Efficient sorted associative container based on B-trees.
@@ -37,7 +38,7 @@
  * };
  * 
  * //Define the ordering function order_by_letter_set
  * };
  * 
  * //Define the ordering function order_by_letter_set
- * btree_search_implement
+ * static btree_search_implement
  * (
  *     order_by_letter_set,
  *     struct word *,
  * (
  *     order_by_letter_set,
  *     struct word *,
@@ -50,7 +51,7 @@
  * char *chomp(char *str);
  * char *make_letter_set(char *str);
  * 
  * 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;
  *     
  * {
  *     btree_iterator iter;
  *     
@@ -61,7 +62,7 @@
  *     btree_insert_at(iter, word);
  * }
  * 
  *     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 = {
  * {
  *     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;
  *     
  * {
  *     (void) ctx;
  *     
@@ -97,7 +98,7 @@
  *     return 1;
  * }
  * 
  *     return 1;
  * }
  * 
- * struct btree *read_dictionary(const char *filename)
+ * static struct btree *read_dictionary(const char *filename)
  * {
  *     FILE *f;
  *     char line[256];
  * {
  *     FILE *f;
  *     char line[256];
  *     
  *     return btree;
  * 
  *     
  *     return btree;
  * 
- * fail:
+ *   fail:
  *     btree_delete(btree);
  *     fprintf(stderr, "%s: %s\n", filename, strerror(errno));
  *     return NULL;
  *     btree_delete(btree);
  *     fprintf(stderr, "%s: %s\n", filename, strerror(errno));
  *     return NULL;
  *     return str;
  * }
  *
  *     return str;
  * }
  *
- * Author: Joey Adams
- * Version: 0.1.0
- * Licence: BSD
+ * Author: Joey Adams <joeyadams3.14159@gmail.com>
+ * License: MIT
+ * Version: 0.2
  */
 int main(int argc, char *argv[])
 {
  */
 int main(int argc, char *argv[])
 {