X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Favl.h;h=405536f4746cdd06f809ecb3a1efa7a84ac06157;hb=8917b774f71562cdfaaddd7641889ab79ef95273;hp=70bdbcd6cbd963d316b843abc14fb3820acfb89b;hpb=aafdf48e99576ac71fb574a8da2e0a01768cded6;p=openldap diff --git a/include/avl.h b/include/avl.h index 70bdbcd6cb..405536f474 100644 --- a/include/avl.h +++ b/include/avl.h @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2005 The OpenLDAP Foundation. + * Copyright 1998-2011 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -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 @@ -132,6 +134,9 @@ tavl_find LDAP_P((Avlnode *, const void*, AVL_CMP)); LDAP_AVL_F( Avlnode* ) tavl_find2 LDAP_P((Avlnode *, const void*, AVL_CMP)); +LDAP_AVL_F( Avlnode* ) +tavl_find3 LDAP_P((Avlnode *, const void*, AVL_CMP, int *ret)); + #define TAVL_DIR_LEFT 0 #define TAVL_DIR_RIGHT 1