#pragma once #include struct bt_node_t { struct bt_node_t *left; struct bt_node_t *right; struct bt_node_t *parent; void *value; // 数据 } __attribute__((aligned(sizeof(long)))); struct bt_root_t { struct bt_node_t *bt_node; int (*cmp)(struct bt_node_t *a, struct bt_node_t *b); // 比较函数 a>b 返回1, a==b返回0, a