From baaa09cefe3ed0f2bbf9d93e07d55e60a04ca17f Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 30 May 2025 16:48:00 +0200 Subject: refactor: Format codebase and fix warning in UserProcessScheduler. Signed-off-by: Amlal El Mahrouss --- dev/libSystem/SystemKit/Jail.h | 3 +-- dev/libSystem/SystemKit/Macros.h | 8 ++++---- dev/libSystem/SystemKit/Syscall.h | 4 ++-- dev/libSystem/SystemKit/System.h | 4 ++-- 4 files changed, 9 insertions(+), 10 deletions(-) (limited to 'dev/libSystem/SystemKit') diff --git a/dev/libSystem/SystemKit/Jail.h b/dev/libSystem/SystemKit/Jail.h index 93734dcf..998173f9 100644 --- a/dev/libSystem/SystemKit/Jail.h +++ b/dev/libSystem/SystemKit/Jail.h @@ -15,8 +15,7 @@ struct JAIL_INFO; struct JAIL; /// @brief Jail information (client side struct) -struct JAIL_INFO -{ +struct JAIL_INFO { SInt32 fParentID; SInt32 fJailHash; SInt64 fACL; diff --git a/dev/libSystem/SystemKit/Macros.h b/dev/libSystem/SystemKit/Macros.h index 48c586cc..2bdeff9d 100644 --- a/dev/libSystem/SystemKit/Macros.h +++ b/dev/libSystem/SystemKit/Macros.h @@ -64,19 +64,19 @@ typedef char Char; typedef decltype(nullptr) nullPtr; typedef nullPtr NullPtr; -#define LIBSYS_COPY_DELETE(KLASS) \ +#define LIBSYS_COPY_DELETE(KLASS) \ KLASS& operator=(const KLASS&) = delete; \ KLASS(const KLASS&) = delete; -#define LIBSYS_COPY_DEFAULT(KLASS) \ +#define LIBSYS_COPY_DEFAULT(KLASS) \ KLASS& operator=(const KLASS&) = default; \ KLASS(const KLASS&) = default; -#define LIBSYS_MOVE_DELETE(KLASS) \ +#define LIBSYS_MOVE_DELETE(KLASS) \ KLASS& operator=(KLASS&&) = delete; \ KLASS(KLASS&&) = delete; -#define LIBSYS_MOVE_DEFAULT(KLASS) \ +#define LIBSYS_MOVE_DEFAULT(KLASS) \ KLASS& operator=(KLASS&&) = default; \ KLASS(KLASS&&) = default; diff --git a/dev/libSystem/SystemKit/Syscall.h b/dev/libSystem/SystemKit/Syscall.h index 1a334ead..436665ae 100644 --- a/dev/libSystem/SystemKit/Syscall.h +++ b/dev/libSystem/SystemKit/Syscall.h @@ -10,8 +10,8 @@ #include #ifndef SYSCALL_HASH -#define SYSCALL_HASH(str) (UInt64)str -#endif // !SYSCALL_HASH +#define SYSCALL_HASH(str) (UInt64) str +#endif // !SYSCALL_HASH IMPORT_C VoidPtr libsys_syscall_arg_1(SizeT id); IMPORT_C VoidPtr libsys_syscall_arg_2(SizeT id, VoidPtr arg1); diff --git a/dev/libSystem/SystemKit/System.h b/dev/libSystem/SystemKit/System.h index b3d10e32..91899efe 100644 --- a/dev/libSystem/SystemKit/System.h +++ b/dev/libSystem/SystemKit/System.h @@ -17,8 +17,8 @@ Purpose: System Call Interface. // ------------------------------------------------------------------------------------------ // struct REF_TYPE { - UInt64 __hash; /// @brief Hash of the syscall - VoidPtr __self; /// @brief Syscall self value. + UInt64 __hash; /// @brief Hash of the syscall + VoidPtr __self; /// @brief Syscall self value. }; typedef REF_TYPE* Ref; -- cgit v1.2.3