summaryrefslogtreecommitdiff
path: root/libs/SSystem/SComponent/c_malloc.cpp
diff options
context:
space:
mode:
authorlepelog <lepelog@users.noreply.github.com>2021-01-07 02:04:53 +0100
committerGitHub <noreply@github.com>2021-01-06 20:04:53 -0500
commit0cf65151b3a1a85a5d3ad74a367045e596aee1aa (patch)
tree9ac4f66b24945629766d587a9514ad513b11241c /libs/SSystem/SComponent/c_malloc.cpp
parent792509e0a15687b76bee216440ccd3d90554f37e (diff)
Split SComponent (#45)
* split c_math * split c_angle * split c_API_controller_pad * split c_API_graphic * split c_bg_s_chk * c_bg_s_gnd_chk split * more c_bg split * split c_cc_d * delete asm * split c_cc_s * split c_lib * split c_m2d and c_m3d_g_aab * split c_m3d_g_cir * split c_m3d_g_cps * split rest of c_m3d_g * split c_m3d * split c_malloc * split c_request * split c_sxyz * split and partly decompile c_xyz * format * c_angle.h * begin c_angle decomp * c_angle * progress adding stub classes for SComponent * more c_m3d * remove some asm and format * more m3d headers * more c_angle decomp * c_lib headers * add public to classes * fix csXyz member names * c_sxyz partly OK * move Zero csXyz to c_sxyz header * c_API_graphic * delete some unused asm * move math extern data, decompile some functions * delete unused asm * fix duplicated c_angle.h * fix an inlined function name, add more inlined functions for c_angle.h (currently unused) * format Co-authored-by: Pheenoh <pheenoh@gmail.com>
Diffstat (limited to 'libs/SSystem/SComponent/c_malloc.cpp')
-rw-r--r--libs/SSystem/SComponent/c_malloc.cpp25
1 files changed, 24 insertions, 1 deletions
diff --git a/libs/SSystem/SComponent/c_malloc.cpp b/libs/SSystem/SComponent/c_malloc.cpp
index 4bf93c8658..4fd8e46312 100644
--- a/libs/SSystem/SComponent/c_malloc.cpp
+++ b/libs/SSystem/SComponent/c_malloc.cpp
@@ -1 +1,24 @@
-// ok
+/* c_malloc.cpp autogenerated by split.py v0.3 at 2021-01-01 15:18:22.738784 */
+
+#include "SComponent/c_malloc.h"
+
+// init__3cMlFP7JKRHeap
+void cMl::init(JKRHeap* heap) {
+ lbl_80451150 = heap;
+}
+
+// memalignB__3cMlFiUl
+void* cMl::memalignB(int alignment, unsigned long size) {
+ if (size == 0) {
+ return NULL;
+ } else {
+ return lbl_80451150->alloc(size, alignment);
+ }
+}
+
+// free__3cMlFPv
+void cMl::free(void* ptr) {
+ if (ptr != NULL) {
+ lbl_80451150->free(ptr);
+ }
+}