mirror of
https://github.com/zeldaret/tp
synced 2026-06-16 14:50:21 -04:00
run clang-format
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
|
||||
#include "global.h"
|
||||
#include "SComponent/c_node_iter.h"
|
||||
#include "global.h"
|
||||
|
||||
extern "C" {
|
||||
|
||||
#define NODE_GET_PREV(pNode) (pNode ? pNode->mpPrevNode : NULL)
|
||||
#define NODE_GET_NEXT(pNode) (pNode ? pNode->mpNextNode : NULL)
|
||||
|
||||
int cNdIt_Method(node_class *pNode, cNdIt_MethodFunc pMethod, void *pUserData)
|
||||
{
|
||||
int cNdIt_Method(node_class* pNode, cNdIt_MethodFunc pMethod, void* pUserData) {
|
||||
int ret = 1;
|
||||
node_class *pNext = NODE_GET_NEXT(pNode);
|
||||
node_class* pNext = NODE_GET_NEXT(pNode);
|
||||
|
||||
while (pNode) {
|
||||
int methodRet = pMethod(pNode, pUserData);
|
||||
@@ -23,12 +22,11 @@ int cNdIt_Method(node_class *pNode, cNdIt_MethodFunc pMethod, void *pUserData)
|
||||
return ret;
|
||||
}
|
||||
|
||||
void * cNdIt_Judge(node_class *pNode, cNdIt_JudgeFunc pJudge, void *pUserData)
|
||||
{
|
||||
node_class *pNext = NODE_GET_NEXT(pNode);
|
||||
void* cNdIt_Judge(node_class* pNode, cNdIt_JudgeFunc pJudge, void* pUserData) {
|
||||
node_class* pNext = NODE_GET_NEXT(pNode);
|
||||
|
||||
while (pNode) {
|
||||
void *pJudgeRet = pJudge(pNode, pUserData);
|
||||
void* pJudgeRet = pJudge(pNode, pUserData);
|
||||
if (pJudgeRet != NULL)
|
||||
return pJudgeRet;
|
||||
pNode = pNext;
|
||||
@@ -37,5 +35,4 @@ void * cNdIt_Judge(node_class *pNode, cNdIt_JudgeFunc pJudge, void *pUserData)
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user