diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-27 14:31:00 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-27 14:31:00 +0100 |
| commit | 9244027f113c5d60e5e7952214d1c253b4c203da (patch) | |
| tree | 57d9d6fb432601930b64f78cb7a852b33992a550 | |
| parent | a33d9510bd36a9fdb98f291250a025cd4bec8bc1 (diff) | |
SOM: Worked on Compound objects inside system.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
| -rw-r--r-- | Private/CompilerKit/Version.hxx | 4 | ||||
| -rw-r--r-- | Private/NewKit/Defines.hpp | 8 | ||||
| -rw-r--r-- | Public/Kits/SystemKit/CoreAPI.hxx | 12 | ||||
| -rw-r--r-- | Public/Kits/SystemKit/FileAPI.hxx | 2 | ||||
| -rw-r--r-- | Public/Kits/SystemKit/HeapAPI.hxx | 2 | ||||
| -rw-r--r-- | Public/Kits/SystemKit/XIFF.hxx | 14 |
6 files changed, 31 insertions, 11 deletions
diff --git a/Private/CompilerKit/Version.hxx b/Private/CompilerKit/Version.hxx index 5f0f7e7a..66f9a749 100644 --- a/Private/CompilerKit/Version.hxx +++ b/Private/CompilerKit/Version.hxx @@ -1,4 +1,4 @@ #pragma once -#define BOOTLOADER_VERSION L"v1.12" -#define KERNEL_VERSION "v1.12" +#define BOOTLOADER_VERSION L"v1.13" +#define KERNEL_VERSION "v1.13" diff --git a/Private/NewKit/Defines.hpp b/Private/NewKit/Defines.hpp index 8af9aeb6..a64b816d 100644 --- a/Private/NewKit/Defines.hpp +++ b/Private/NewKit/Defines.hpp @@ -81,10 +81,14 @@ Args &&move(Args &&arg) { return static_cast<Args &&>(arg); } -/// Handle type. +typedef UIntPtr _HandleCls; + +/// @brief Looks like an objc class, because it takes inspiration from it. typedef struct _Handle { - UIntPtr _Unused; + _HandleCls _Cls; void Release(_Handle *); + _Handle* Init(); + _Handle* Sel(_Handle*, ...); } *Handle; } // namespace HCore diff --git a/Public/Kits/SystemKit/CoreAPI.hxx b/Public/Kits/SystemKit/CoreAPI.hxx index 46af0cef..5d9bfb1a 100644 --- a/Public/Kits/SystemKit/CoreAPI.hxx +++ b/Public/Kits/SystemKit/CoreAPI.hxx @@ -30,3 +30,15 @@ typedef __UINT8_TYPE__ BYTE; typedef __UINT16_TYPE__ WORD; typedef __UINT32_TYPE__ DWORD; typedef __UINT64_TYPE__ QWORD; + +#ifdef __x86_64__ +# define _M_AMD64 +#endif + +#ifdef __aarch64__ +# define _M_AARCH64 +#endif + +#ifdef __powerpc64__ +# define _M_PPC64 +#endif diff --git a/Public/Kits/SystemKit/FileAPI.hxx b/Public/Kits/SystemKit/FileAPI.hxx index 7dc3dc74..cc91a8a5 100644 --- a/Public/Kits/SystemKit/FileAPI.hxx +++ b/Public/Kits/SystemKit/FileAPI.hxx @@ -15,6 +15,8 @@ using namespace HCore; +/// @brief OC class, translated to C++ + class HFile final { public: explicit HFile(const char *path); diff --git a/Public/Kits/SystemKit/HeapAPI.hxx b/Public/Kits/SystemKit/HeapAPI.hxx index e9bda42d..c4c4a297 100644 --- a/Public/Kits/SystemKit/HeapAPI.hxx +++ b/Public/Kits/SystemKit/HeapAPI.hxx @@ -12,6 +12,8 @@ #include <CompilerKit/CompilerKit.hpp> #include <NewKit/Defines.hpp> +/// @brief OC class, translated to C++ + using namespace HCore; class HMemoryException; diff --git a/Public/Kits/SystemKit/XIFF.hxx b/Public/Kits/SystemKit/XIFF.hxx index 665a8b67..c2a8371b 100644 --- a/Public/Kits/SystemKit/XIFF.hxx +++ b/Public/Kits/SystemKit/XIFF.hxx @@ -19,13 +19,13 @@ * Used by XIFF based containers. */ -struct PACKED XiffHeader { - unsigned char mag[5]; // XIFF string (includes \0) - unsigned int size; // overall size of header (XiffHeader) in bytes - unsigned int format_type; // format type. generic - unsigned char specific_mag[4]; // The sub header magic - unsigned int specific_size; // length of the format data - unsigned int specific_format_type; // format type. generic +struct PACKED XiffHeader final { + unsigned char f_Mag[5]; // XIFF string (includes \0) + unsigned int f_Size; // overall size of header (XiffHeader) in bytes + unsigned int f_FormatType; // format type. generic + unsigned char f_SpecificMag[4]; // The sub header magic + unsigned int f_SpecificSize; // length of the format data + unsigned int f_SpecificFormatType; // format type. generic }; #define kXIFFVideo "XVFF" |
