friendly form for balance factors

This commit is contained in:
Pierangelo Masarati 2006-02-04 15:49:04 +00:00
parent ec7e2af34a
commit ced7671e5e

View file

@ -59,6 +59,8 @@ struct avlnode {
#define EH 0
#define RH 1
#define avl_bf2str(bf) ((bf) == -1 ? "LH" : (bf) == 0 ? "EH" : (bf) == 1 ? "RH" : "(unknown)" )
/* thread bits */
#define AVL_THREAD 0
#define AVL_CHILD 1