IndexedList_tree.h 799 B

12345678910111213141516
  1. #define CAVL_PARAM_USE_COUNTS 1
  2. #define CAVL_PARAM_NAME IndexedList__Tree
  3. #define CAVL_PARAM_ENTRY IndexedListNode
  4. #define CAVL_PARAM_LINK IndexedList__tree_link
  5. #define CAVL_PARAM_KEY IndexedList__tree_key
  6. #define CAVL_PARAM_ARG IndexedList__tree_arg
  7. #define CAVL_PARAM_COUNT uint64_t
  8. #define CAVL_PARAM_COUNT_MAX UINT64_MAX
  9. #define CAVL_PARAM_NULL NULL
  10. #define CAVL_PARAM_DEREF(arg, link) (link)
  11. #define CAVL_PARAM_COMPARE_NODES(arg, node1, node2) _IndexedList_comparator((arg), &(node1).ptr->key, &(node2).ptr->key)
  12. #define CAVL_PARAM_COMPARE_KEY_NODE(arg, key1, node2) _IndexedList_comparator((arg), (key1), &(node2).ptr->key)
  13. #define CAVL_PARAM_NODE_LINK tree_link
  14. #define CAVL_PARAM_NODE_BALANCE tree_balance
  15. #define CAVL_PARAM_NODE_PARENT tree_parent
  16. #define CAVL_PARAM_NODE_COUNT tree_count