summaryrefslogtreecommitdiff
path: root/src/SSystem/SComponent/c_list_iter.cpp
blob: be97b39c0bd20f0a41be3c2e219a8509b0e5ca60 (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 <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;
}