Moved out most ob mavl_ into libmavl.

Current libmavl is here:
https://svn.planix.org/rsrch/trunk/libmavl
This commit is contained in:
2022-07-18 01:15:17 +02:00
parent 1734000f41
commit 8d09b1d596
46 changed files with 94 additions and 1370 deletions

View File

@ -24,19 +24,19 @@ void * ktvn(struct mavl *t ,const void *search)
if (rc<0){
/*lastl = n;*/
if (n->left==NULL){
if (n->s[0]==NULL){
return mavlnode_dataptr(lastb);
}
n=n->left;
n=n->s[0];
}
else{
lastb=n;
if(n->right==NULL){
if(n->s[1]==NULL){
return mavlnode_dataptr(lastb);
}
n=n->right;
n=n->s[1];
}
}
return NULL;