mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-02 17:48:21 -04:00
dfa8efa97b
* some wii OS fixes * remove old dol2asm comments * remove dol2asm.h * remove function address comments * normalize ATTRIBUTE_ALIGN usage * DECL_WEAK macro * fix gcc attribute weak macro * wrap more mwcc specific things in ifdefs * fixes * fix revo sdk version flags * fixes
34 lines
777 B
C++
34 lines
777 B
C++
/**
|
|
* c_tree.cpp
|
|
*
|
|
*/
|
|
|
|
#include "SSystem/SComponent/c_tree.h"
|
|
#include "SSystem/SComponent/c_list.h"
|
|
|
|
int cTr_SingleCut(node_class* node) {
|
|
return cLs_SingleCut(node);
|
|
}
|
|
|
|
int cTr_Addition(node_lists_tree_class* tree, int listIdx, node_class* node) {
|
|
if (listIdx >= tree->mNumLists)
|
|
return 0;
|
|
|
|
return cLs_Addition(&tree->mpLists[listIdx], node);
|
|
}
|
|
|
|
int cTr_Insert(node_lists_tree_class* tree, int listIdx, node_class* node, int idx) {
|
|
if (listIdx >= tree->mNumLists)
|
|
return 0;
|
|
|
|
return cLs_Insert(&tree->mpLists[listIdx], idx, node);
|
|
}
|
|
|
|
void cTr_Create(node_lists_tree_class* tree, node_list_class* lists, int numLists) {
|
|
tree->mpLists = lists;
|
|
tree->mNumLists = numLists;
|
|
|
|
while (numLists-- > 0)
|
|
cLs_Create(lists++);
|
|
}
|