run clang-format

This commit is contained in:
Pheenoh
2020-12-26 11:31:49 -05:00
parent 64a6a97b7b
commit 4c504d078d
180 changed files with 4083 additions and 4253 deletions
+5 -10
View File
@@ -1,37 +1,32 @@
#include "global.h"
#include "SComponent/c_tree.h"
#include "global.h"
extern "C" {
int cTr_SingleCut(node_class *pNode)
{
int cTr_SingleCut(node_class* pNode) {
return cLs_SingleCut(pNode);
}
int cTr_Addition(node_lists_tree_class *pTree, int listIdx, node_class *pNode)
{
int cTr_Addition(node_lists_tree_class* pTree, int listIdx, node_class* pNode) {
if (listIdx >= pTree->mNumLists)
return 0;
return cLs_Addition(&pTree->mpLists[listIdx], pNode);
}
int cTr_Insert(node_lists_tree_class *pTree, int listIdx, node_class *pNode, int idx)
{
int cTr_Insert(node_lists_tree_class* pTree, int listIdx, node_class* pNode, int idx) {
if (listIdx >= pTree->mNumLists)
return 0;
return cLs_Insert(&pTree->mpLists[listIdx], idx, pNode);
}
void cTr_Create(node_lists_tree_class *pTree, node_list_class *pLists, int numLists)
{
void cTr_Create(node_lists_tree_class* pTree, node_list_class* pLists, int numLists) {
pTree->mpLists = pLists;
pTree->mNumLists = numLists;
while (numLists-- > 0)
cLs_Create(pLists++);
}
};