Permalink
Browse files

Formatting nitpicks

  • Loading branch information...
1 parent 89c87a8 commit 8198a34954808eb98b5bc14fbe201a2f0d117ae1 @fmela committed Dec 5, 2017
Showing with 7 additions and 7 deletions.
  1. +2 −2 include/dict.h
  2. +1 −1 include/hb_tree.h
  3. +1 −1 include/pr_tree.h
  4. +1 −1 include/rb_tree.h
  5. +1 −1 include/sp_tree.h
  6. +1 −1 include/tr_tree.h
View
@@ -95,7 +95,7 @@ typedef size_t (*dict_count_func)(const void* obj);
typedef bool (*dict_verify_func)(const void* obj);
typedef struct {
- const bool sorted;
+ const bool sorted;
dict_inew_func inew;
dict_dfree_func dfree;
dict_insert_func insert;
@@ -163,7 +163,7 @@ typedef struct {
#define dict_search_gt(dct,key) ((dct)->_vtable->search_gt ? (dct)->_vtable->search_gt((dct)->_object, (key)) : NULL)
#define dict_remove(dct,key) ((dct)->_vtable->remove((dct)->_object, (key)))
#define dict_clear(dct,func) ((dct)->_vtable->clear((dct)->_object, (func)))
-#define dict_traverse(dct,func,user_data) ((dct)->_vtable->traverse((dct)->_object, (func), (user_data)))
+#define dict_traverse(dct,func,ud) ((dct)->_vtable->traverse((dct)->_object, (func), (ud)))
#define dict_select(dct,n,key,d) ((dct)->_vtable->select && (dct)->_vtable->select((dct)->_object, (n), (key), (d)))
#define dict_count(dct) ((dct)->_vtable->count((dct)->_object))
#define dict_verify(dct) ((dct)->_vtable->verify((dct)->_object))
View
@@ -49,7 +49,7 @@ dict_remove_result
hb_tree_remove(hb_tree* tree, const void* key);
size_t hb_tree_clear(hb_tree* tree, dict_delete_func delete_func);
size_t hb_tree_traverse(hb_tree* tree, dict_visit_func visit, void* user_data);
-bool hb_tree_select(hb_tree* tree, size_t n, const void** key, void** datum);
+bool hb_tree_select(hb_tree* tree, size_t n, const void** key, void** datum);
size_t hb_tree_count(const hb_tree* tree);
size_t hb_tree_min_path_length(const hb_tree* tree);
size_t hb_tree_max_path_length(const hb_tree* tree);
View
@@ -49,7 +49,7 @@ dict_remove_result
pr_tree_remove(pr_tree* tree, const void* key);
size_t pr_tree_clear(pr_tree* tree, dict_delete_func delete_func);
size_t pr_tree_traverse(pr_tree* tree, dict_visit_func visit, void* user_data);
-bool pr_tree_select(pr_tree* tree, size_t n, const void** key, void** datum);
+bool pr_tree_select(pr_tree* tree, size_t n, const void** key, void** datum);
size_t pr_tree_count(const pr_tree* tree);
size_t pr_tree_min_path_length(const pr_tree* tree);
size_t pr_tree_max_path_length(const pr_tree* tree);
View
@@ -49,7 +49,7 @@ dict_remove_result
rb_tree_remove(rb_tree* tree, const void* key);
size_t rb_tree_clear(rb_tree* tree, dict_delete_func delete_func);
size_t rb_tree_traverse(rb_tree* tree, dict_visit_func visit, void* user_data);
-bool rb_tree_select(rb_tree* tree, size_t n, const void** key, void** datum);
+bool rb_tree_select(rb_tree* tree, size_t n, const void** key, void** datum);
size_t rb_tree_count(const rb_tree* tree);
size_t rb_tree_min_path_length(const rb_tree* tree);
size_t rb_tree_max_path_length(const rb_tree* tree);
View
@@ -49,7 +49,7 @@ dict_remove_result
sp_tree_remove(sp_tree* tree, const void* key);
size_t sp_tree_clear(sp_tree* tree, dict_delete_func delete_func);
size_t sp_tree_traverse(sp_tree* tree, dict_visit_func visit, void* user_data);
-bool sp_tree_select(sp_tree* tree, size_t n, const void** key, void** datum);
+bool sp_tree_select(sp_tree* tree, size_t n, const void** key, void** datum);
size_t sp_tree_count(const sp_tree* tree);
size_t sp_tree_min_path_length(const sp_tree* tree);
size_t sp_tree_max_path_length(const sp_tree* tree);
View
@@ -49,7 +49,7 @@ dict_remove_result
tr_tree_remove(tr_tree* tree, const void* key);
size_t tr_tree_clear(tr_tree* tree, dict_delete_func delete_func);
size_t tr_tree_traverse(tr_tree* tree, dict_visit_func visit, void* user_data);
-bool tr_tree_select(tr_tree* tree, size_t n, const void** key, void** datum);
+bool tr_tree_select(tr_tree* tree, size_t n, const void** key, void** datum);
size_t tr_tree_count(const tr_tree* tree);
size_t tr_tree_min_path_length(const tr_tree* tree);
size_t tr_tree_max_path_length(const tr_tree* tree);

0 comments on commit 8198a34

Please sign in to comment.