summaryrefslogtreecommitdiffhomepage
path: root/SDK/Library/CoreSystem/Sources
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-05-10 17:33:18 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-05-10 17:33:29 +0200
commita62dafea7b79f9226e34f2095b8533ebdd29f800 (patch)
treeeab20b0bac290d8f2a2e0c84bf9958ff327daedd /SDK/Library/CoreSystem/Sources
parent3529ed921748f953a19c872c8dc56c6813c995a6 (diff)
MHR-23: :boom: refactor heap API.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'SDK/Library/CoreSystem/Sources')
-rw-r--r--SDK/Library/CoreSystem/Sources/Heap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/SDK/Library/CoreSystem/Sources/Heap.c b/SDK/Library/CoreSystem/Sources/Heap.c
index 546384e2..f3e9f914 100644
--- a/SDK/Library/CoreSystem/Sources/Heap.c
+++ b/SDK/Library/CoreSystem/Sources/Heap.c
@@ -11,7 +11,7 @@
/// @param sz size of object.
/// @param flags flags.
/// @return
-CA_EXTERN_C PtrVoidType RtTlsAllocate(QWordType sz, DWordType flags)
+CA_EXTERN_C PtrVoidType RtHeapAllocate(QWordType sz, DWordType flags)
{
CA_MUST_PASS(kSharedApplication);
CA_MUST_PASS(sz);
@@ -23,7 +23,7 @@ CA_EXTERN_C PtrVoidType RtTlsAllocate(QWordType sz, DWordType flags)
/// @brief Free pointer from the user's heap.
/// @param ptr the pointer to free.
-CA_EXTERN_C VoidType RtTlsFree(PtrVoidType ptr)
+CA_EXTERN_C VoidType RtHeapFree(PtrVoidType ptr)
{
CA_MUST_PASS(kSharedApplication);
CA_MUST_PASS(ptr);
@@ -35,7 +35,7 @@ CA_EXTERN_C VoidType RtTlsFree(PtrVoidType ptr)
/// @brief Get pointer size.
/// @param ptr the pointer to find.
/// @return the size.
-CA_EXTERN_C QWordType RtTlsGetSize(PtrVoidType ptr)
+CA_EXTERN_C QWordType RtHeapGetSize(PtrVoidType ptr)
{
CA_MUST_PASS(kSharedApplication);
@@ -46,7 +46,7 @@ CA_EXTERN_C QWordType RtTlsGetSize(PtrVoidType ptr)
/// @brief Check if the pointer exists.
/// @param ptr the pointer to check.
/// @return if it exists
-CA_EXTERN_C BooleanType RtTlsPtrExists(PtrVoidType ptr)
+CA_EXTERN_C BooleanType RtHeapPtrExists(PtrVoidType ptr)
{
CA_MUST_PASS(kSharedApplication);