Added comments.
FossilOrigin-Name: c7cdfca78936dc9c9167a0f0761aa67403f7c2047eef6793d6361e38b99fdfe4
This commit is contained in:
parent
c4491a07a5
commit
f1aac1eb37
@ -1,6 +1,33 @@
|
|||||||
|
/*
|
||||||
|
This file is part of libcapwap.
|
||||||
|
|
||||||
|
libcapwap is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
libcapwap is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Foobar. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
*@file
|
||||||
|
*@brief Implementation of avliter_next
|
||||||
|
*/
|
||||||
|
|
||||||
#include "avltree.h"
|
#include "avltree.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the next element within an AVL Tree.
|
||||||
|
* @param i pointer to AVL Iterator
|
||||||
|
* @return the element or NULL if there is no next elemeent.
|
||||||
|
*/
|
||||||
void * avliter_next(avliter_t *i)
|
void * avliter_next(avliter_t *i)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -30,7 +57,6 @@ void * avliter_next(avliter_t *i)
|
|||||||
/* push node */
|
/* push node */
|
||||||
i->stack[i->stack_ptr++]=i->cur;
|
i->stack[i->stack_ptr++]=i->cur;
|
||||||
|
|
||||||
|
|
||||||
i->cur=i->cur->left;
|
i->cur=i->cur->left;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user