Some comments added.

FossilOrigin-Name: 1a8806b8ccf336335e6646c25d43c6ec6d0524f54a9d6b14c49e952891426ebf
This commit is contained in:
7u83@mail.ru 2016-03-07 17:55:12 +00:00
parent 2b07a6e977
commit 7b7719f038
1 changed files with 9 additions and 1 deletions

View File

@ -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;
}