Some comments added.
FossilOrigin-Name: 1a8806b8ccf336335e6646c25d43c6ec6d0524f54a9d6b14c49e952891426ebf
This commit is contained in:
parent
2b07a6e977
commit
7b7719f038
@ -16,6 +16,11 @@
|
||||
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Implements mavl_del_all
|
||||
*/
|
||||
|
||||
#include "mavl.h"
|
||||
|
||||
static void mavl_del_all0(struct mavl *t ,struct mavlnode * n)
|
||||
@ -27,10 +32,13 @@ static void mavl_del_all0(struct mavl *t ,struct mavlnode * n)
|
||||
mavlnode_destroy(t,n);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete all elemets of a mavl object
|
||||
* @parm t mavl object
|
||||
*/
|
||||
void mavl_del_all(struct mavl *t)
|
||||
{
|
||||
mavl_del_all0(t,t->root);
|
||||
t->root=NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user