From: Pierangelo Masarati Date: Sat, 4 Feb 2006 15:49:04 +0000 (+0000) Subject: friendly form for balance factors X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~234 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ced7671e5e3f15ee2b9e7ae68b6e9030a266a2a6;p=openldap friendly form for balance factors --- diff --git a/include/avl.h b/include/avl.h index f23ec135c1..05315377c0 100644 --- a/include/avl.h +++ b/include/avl.h @@ -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