mirror of
https://github.com/zeldaret/tp
synced 2026-07-08 14:36:36 -04:00
run clang-format
This commit is contained in:
@@ -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++);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user