mirror of https://github.com/zeldaret/tp.git
18 lines
469 B
C++
18 lines
469 B
C++
|
|
#include "SComponent/c_list_iter.h"
|
|
#include "global.h"
|
|
|
|
int cLsIt_Method(node_list_class* pList, cNdIt_MethodFunc pMethod, void* pUserData) {
|
|
if (pList->mSize > 0)
|
|
return cNdIt_Method(pList->mpHead, pMethod, pUserData);
|
|
else
|
|
return 1;
|
|
}
|
|
|
|
void* cLsIt_Judge(node_list_class* pList, cNdIt_JudgeFunc pJudge, void* pUserData) {
|
|
if (pList->mSize > 0)
|
|
return cNdIt_Judge(pList->mpHead, pJudge, pUserData);
|
|
else
|
|
return NULL;
|
|
}
|