summaryrefslogtreecommitdiff
path: root/src/SSystem/SComponent/c_list_iter.cpp
blob: 19e502ba7be27c397cdedf6bbf6ebebb83d37411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 * c_list_iter.cpp
 *
 */

#include "SSystem/SComponent/c_list_iter.h"
#include "SSystem/SComponent/c_list.h"
#include "dolphin/types.h"

int cLsIt_Method(node_list_class* list, cNdIt_MethodFunc method, void* data) {
    if (list->mSize > 0)
        return cNdIt_Method(list->mpHead, method, data);
    else
        return 1;
}

void* cLsIt_Judge(node_list_class* list, cNdIt_JudgeFunc judge, void* data) {
    if (list->mSize > 0)
        return cNdIt_Judge(list->mpHead, judge, data);
    else
        return NULL;
}