mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-20 13:24:40 -04:00
MSL_C fully matched / some SSystem cleanup/ obj_rgate OK (#2011)
* cleanup SSystem files * MSL_C fully matched * fix build * remove asm * reorganize MSL_C/Runtime libs into more accurate setup * little more cleanup * cleanup some MSL headers * obj_rgate OK * remove asm * some rgate documentation
This commit is contained in:
@@ -1,67 +1,67 @@
|
||||
//
|
||||
// Generated By: dol2asm
|
||||
// Translation Unit: c_list
|
||||
//
|
||||
/**
|
||||
* c_list.cpp
|
||||
*
|
||||
*/
|
||||
|
||||
#include "SSystem/SComponent/c_list.h"
|
||||
#include "SSystem/SComponent/c_node.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
/* 80265E64-80265E78 0014+00 s=1 e=0 z=0 None .text cLs_Init__FP15node_list_class */
|
||||
void cLs_Init(node_list_class* pList) {
|
||||
pList->mpHead = NULL;
|
||||
pList->mpTail = NULL;
|
||||
pList->mSize = 0;
|
||||
void cLs_Init(node_list_class* list) {
|
||||
list->mpHead = NULL;
|
||||
list->mpTail = NULL;
|
||||
list->mSize = 0;
|
||||
}
|
||||
|
||||
/* 80265E78-80265EFC 0084+00 s=1 e=4 z=0 None .text cLs_SingleCut__FP10node_class */
|
||||
int cLs_SingleCut(node_class* pNode) {
|
||||
node_list_class* pList = (node_list_class*)pNode->mpData;
|
||||
if (pNode == pList->mpHead)
|
||||
pList->mpHead = pNode->mpNextNode;
|
||||
if (pNode == pList->mpTail)
|
||||
pList->mpTail = pNode->mpPrevNode;
|
||||
cNd_SingleCut(pNode);
|
||||
cNd_ClearObject(pNode);
|
||||
int newSize = pList->mSize - 1;
|
||||
pList->mSize = newSize;
|
||||
int cLs_SingleCut(node_class* node) {
|
||||
node_list_class* list = (node_list_class*)node->mpData;
|
||||
if (node == list->mpHead)
|
||||
list->mpHead = node->mpNextNode;
|
||||
if (node == list->mpTail)
|
||||
list->mpTail = node->mpPrevNode;
|
||||
cNd_SingleCut(node);
|
||||
cNd_ClearObject(node);
|
||||
int newSize = list->mSize - 1;
|
||||
list->mSize = newSize;
|
||||
return newSize > 0;
|
||||
}
|
||||
|
||||
/* 80265EFC-80265F70 0074+00 s=1 e=4 z=0 None .text
|
||||
* cLs_Addition__FP15node_list_classP10node_class */
|
||||
int cLs_Addition(node_list_class* pList, node_class* pNode) {
|
||||
if (pList->mpTail == NULL) {
|
||||
pList->mpHead = pNode;
|
||||
int cLs_Addition(node_list_class* list, node_class* node) {
|
||||
if (list->mpTail == NULL) {
|
||||
list->mpHead = node;
|
||||
} else {
|
||||
cNd_Addition(pList->mpTail, pNode);
|
||||
cNd_Addition(list->mpTail, node);
|
||||
}
|
||||
|
||||
pList->mpTail = cNd_Last(pNode);
|
||||
cNd_SetObject(pNode, pList);
|
||||
pList->mSize = cNd_LengthOf(pList->mpHead);
|
||||
return pList->mSize;
|
||||
list->mpTail = cNd_Last(node);
|
||||
cNd_SetObject(node, list);
|
||||
list->mSize = cNd_LengthOf(list->mpHead);
|
||||
return list->mSize;
|
||||
}
|
||||
|
||||
/* 80265F70-80265FF8 0088+00 s=0 e=1 z=0 None .text cLs_Insert__FP15node_list_classiP10node_class
|
||||
*/
|
||||
int cLs_Insert(node_list_class* pList, int idx, node_class* pNode) {
|
||||
node_class* pExisting = cNd_Order(pList->mpHead, idx);
|
||||
int cLs_Insert(node_list_class* list, int idx, node_class* node) {
|
||||
node_class* pExisting = cNd_Order(list->mpHead, idx);
|
||||
if (pExisting == NULL) {
|
||||
return cLs_Addition(pList, pNode);
|
||||
return cLs_Addition(list, node);
|
||||
} else {
|
||||
cNd_SetObject(pNode, pList);
|
||||
cNd_Insert(pExisting, pNode);
|
||||
pList->mpHead = cNd_First(pNode);
|
||||
pList->mSize = cNd_LengthOf(pList->mpHead);
|
||||
return pList->mSize;
|
||||
cNd_SetObject(node, list);
|
||||
cNd_Insert(pExisting, node);
|
||||
list->mpHead = cNd_First(node);
|
||||
list->mSize = cNd_LengthOf(list->mpHead);
|
||||
return list->mSize;
|
||||
}
|
||||
}
|
||||
|
||||
/* 80265FF8-80266040 0048+00 s=0 e=1 z=0 None .text cLs_GetFirst__FP15node_list_class */
|
||||
node_class* cLs_GetFirst(node_list_class* pList) {
|
||||
if (pList->mSize != 0) {
|
||||
node_class* pHead = pList->mpHead;
|
||||
node_class* cLs_GetFirst(node_list_class* list) {
|
||||
if (list->mSize != 0) {
|
||||
node_class* pHead = list->mpHead;
|
||||
cLs_SingleCut(pHead);
|
||||
return pHead;
|
||||
} else {
|
||||
@@ -70,6 +70,6 @@ node_class* cLs_GetFirst(node_list_class* pList) {
|
||||
}
|
||||
|
||||
/* 80266040-80266060 0020+00 s=0 e=4 z=0 None .text cLs_Create__FP15node_list_class */
|
||||
void cLs_Create(node_list_class* pList) {
|
||||
cLs_Init(pList);
|
||||
void cLs_Create(node_list_class* list) {
|
||||
cLs_Init(list);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user