diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-09-02 10:06:13 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-09-02 10:06:13 +0200 |
| commit | b3888ff9e2c18da6b73a57f453f7ad36fea61b7b (patch) | |
| tree | 1c2c6da3f8fba030222f7505f73a104eaf9e17cf /dev/ZKA/Sources | |
| parent | 9b7082353e9f7bd4d3ae077959de553f437316db (diff) | |
[ META ] Update formating.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/Sources')
| -rw-r--r-- | dev/ZKA/Sources/CodeManager.cxx | 2 | ||||
| -rw-r--r-- | dev/ZKA/Sources/GUIDWizard.cxx | 6 | ||||
| -rw-r--r-- | dev/ZKA/Sources/Heap.cxx | 16 | ||||
| -rw-r--r-- | dev/ZKA/Sources/Network/IPC.cxx | 10 | ||||
| -rw-r--r-- | dev/ZKA/Sources/String.cxx | 2 | ||||
| -rw-r--r-- | dev/ZKA/Sources/Timer.cxx | 7 | ||||
| -rw-r--r-- | dev/ZKA/Sources/URL.cxx | 8 | ||||
| -rw-r--r-- | dev/ZKA/Sources/Variant.cxx | 5 |
8 files changed, 29 insertions, 27 deletions
diff --git a/dev/ZKA/Sources/CodeManager.cxx b/dev/ZKA/Sources/CodeManager.cxx index de5417a1..5f634539 100644 --- a/dev/ZKA/Sources/CodeManager.cxx +++ b/dev/ZKA/Sources/CodeManager.cxx @@ -22,7 +22,7 @@ namespace Kernel UserProcess proc; proc.SetEntrypoint(reinterpret_cast<VoidPtr>(main)); - proc.Kind = UserProcess::kExeKind; + proc.Kind = UserProcess::kExeKind; proc.StackSize = mib_cast(1); rt_copy_memory((VoidPtr)processName, proc.Name, rt_string_len(processName)); diff --git a/dev/ZKA/Sources/GUIDWizard.cxx b/dev/ZKA/Sources/GUIDWizard.cxx index bdd274a4..aede3a19 100644 --- a/dev/ZKA/Sources/GUIDWizard.cxx +++ b/dev/ZKA/Sources/GUIDWizard.cxx @@ -26,9 +26,9 @@ namespace Kernel::XRN::Version1 Ref<GUIDSequence*> sequenceReference{seq, true}; - sequenceReference->fMs1 = uuidSeq[0]; - sequenceReference->fMs2 = uuidSeq[1]; - sequenceReference->fMs3 = uuidSeq[2]; + sequenceReference->fMs1 = uuidSeq[0]; + sequenceReference->fMs2 = uuidSeq[1]; + sequenceReference->fMs3 = uuidSeq[2]; sequenceReference->fMs4[0] = uuidSeq[3]; sequenceReference->fMs4[1] = uuidSeq[4]; sequenceReference->fMs4[2] = uuidSeq[5]; diff --git a/dev/ZKA/Sources/Heap.cxx b/dev/ZKA/Sources/Heap.cxx index 0146bd55..0ae6a965 100644 --- a/dev/ZKA/Sources/Heap.cxx +++ b/dev/ZKA/Sources/Heap.cxx @@ -18,9 +18,9 @@ namespace Kernel { - SizeT kHeapCount = 0UL; + SizeT kHeapCount = 0UL; PageManager kHeapPageManager; - Bool kOperationInProgress = No; + Bool kOperationInProgress = No; /// @brief Contains data structures and algorithms for the heap. namespace Detail @@ -106,12 +106,12 @@ namespace Kernel wrapper.VirtualAddress()); heap_info_ptr->fTargetPtrSize = szFix; - heap_info_ptr->fMagic = kKernelHeapMagic; - heap_info_ptr->fCRC32 = 0U; // dont fill it for now. - heap_info_ptr->fTargetPtr = wrapper.VirtualAddress() + sizeof(Detail::HEAP_INFORMATION_BLOCK); - heap_info_ptr->fPagePtr = 0UL; - heap_info_ptr->fUserOwned = user; - heap_info_ptr->fPresent = true; + heap_info_ptr->fMagic = kKernelHeapMagic; + heap_info_ptr->fCRC32 = 0U; // dont fill it for now. + heap_info_ptr->fTargetPtr = wrapper.VirtualAddress() + sizeof(Detail::HEAP_INFORMATION_BLOCK); + heap_info_ptr->fPagePtr = 0UL; + heap_info_ptr->fUserOwned = user; + heap_info_ptr->fPresent = true; ++kHeapCount; diff --git a/dev/ZKA/Sources/Network/IPC.cxx b/dev/ZKA/Sources/Network/IPC.cxx index 97702cbe..42b0fcb9 100644 --- a/dev/ZKA/Sources/Network/IPC.cxx +++ b/dev/ZKA/Sources/Network/IPC.cxx @@ -96,15 +96,15 @@ namespace Kernel (*pckt_in)->IpcHeaderMagic = cXPCOMHeaderMagic; - (*pckt_in)->IpcEndianess = static_cast<UInt8>(endian); - (*pckt_in)->IpcPacketSize = sizeof(IPC_MESSAGE_STRUCT); - - (*pckt_in)->IpcTo.UserProcessID = 0; + (*pckt_in)->IpcEndianess = static_cast<UInt8>(endian); + (*pckt_in)->IpcPacketSize = sizeof(IPC_MESSAGE_STRUCT); + + (*pckt_in)->IpcTo.UserProcessID = 0; (*pckt_in)->IpcTo.UserProcessTeam = 0; (*pckt_in)->IpcFrom.UserProcessID = Kernel::UserProcessScheduler::The().CurrentProcess().Leak().ProcessId; (*pckt_in)->IpcFrom.UserProcessTeam = Kernel::UserProcessScheduler::The().CurrentTeam().mTeamId; - + return true; } diff --git a/dev/ZKA/Sources/String.cxx b/dev/ZKA/Sources/String.cxx index 2681dddd..bfa80711 100644 --- a/dev/ZKA/Sources/String.cxx +++ b/dev/ZKA/Sources/String.cxx @@ -228,7 +228,7 @@ namespace Kernel STATIC void rt_string_append(Char* lhs, const Char* rhs, Int32 cur) { SizeT sz_rhs = rt_string_len(rhs); - SizeT rhs_i = 0; + SizeT rhs_i = 0; for (; rhs_i < sz_rhs; ++rhs_i) { diff --git a/dev/ZKA/Sources/Timer.cxx b/dev/ZKA/Sources/Timer.cxx index 3e5f6f3d..397c19a9 100644 --- a/dev/ZKA/Sources/Timer.cxx +++ b/dev/ZKA/Sources/Timer.cxx @@ -23,14 +23,13 @@ Int32 TimerInterface::Wait() noexcept SoftwareTimer::SoftwareTimer(Int64 seconds) : fWaitFor(seconds) { - fDigitalTimer = new IntPtr(); - MUST_PASS(fDigitalTimer); - + fDigitalTimer = new IntPtr(); + MUST_PASS(fDigitalTimer); } SoftwareTimer::~SoftwareTimer() { - delete fDigitalTimer; + delete fDigitalTimer; fWaitFor = 0; } diff --git a/dev/ZKA/Sources/URL.cxx b/dev/ZKA/Sources/URL.cxx index 9c76d435..e10310f5 100644 --- a/dev/ZKA/Sources/URL.cxx +++ b/dev/ZKA/Sources/URL.cxx @@ -21,10 +21,10 @@ namespace Kernel /// @brief internal and reserved protocols by Kernel. constexpr const Char* kURLProtocols[] = { - "file", // Filesystem protocol - "zup", // ZKA update protocol - "oscc", // Open System Configuration Connectivity. - "odbc", // ODBC connectivity. + "file", // Filesystem protocol + "zup", // ZKA update protocol + "oscc", // Open System Configuration Connectivity. + "odbc", // ODBC connectivity. "https", // HTTPS layer driver (HTTPS.sys). }; diff --git a/dev/ZKA/Sources/Variant.cxx b/dev/ZKA/Sources/Variant.cxx index 97775900..e988d783 100644 --- a/dev/ZKA/Sources/Variant.cxx +++ b/dev/ZKA/Sources/Variant.cxx @@ -24,5 +24,8 @@ namespace Kernel } /// @brief Leak variant's instance. - VoidPtr Variant::Leak() { return fPtr; } + VoidPtr Variant::Leak() + { + return fPtr; + } } // namespace Kernel |
