From ced7671e5e3f15ee2b9e7ae68b6e9030a266a2a6 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 4 Feb 2006 15:49:04 +0000 Subject: [PATCH] friendly form for balance factors --- include/avl.h | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5