diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-24 05:08:21 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-24 05:08:21 +0100 |
| commit | 77a1bd038f4288a7c24cfe52ad9824ca947c6671 (patch) | |
| tree | d7e3fe10fce24ddc6a2b3db15a6dc9d6aeee2451 /public/frameworks/CoreFoundation.fwrk | |
| parent | 66be78af046c20bd110793c03062a3ff67b04f9c (diff) | |
kernel(feat): Add basic wide system bug check (memory check), other
changes have been made too, see commit details for more information.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'public/frameworks/CoreFoundation.fwrk')
9 files changed, 24 insertions, 24 deletions
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/.keep b/public/frameworks/CoreFoundation.fwrk/headers/.keep deleted file mode 100644 index e69de29b..00000000 --- a/public/frameworks/CoreFoundation.fwrk/headers/.keep +++ /dev/null diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Array.h b/public/frameworks/CoreFoundation.fwrk/headers/Array.h index b70d8503..8d7e6e90 100644 --- a/public/frameworks/CoreFoundation.fwrk/headers/Array.h +++ b/public/frameworks/CoreFoundation.fwrk/headers/Array.h @@ -6,9 +6,9 @@ #pragma once -#include <SCIKit/SCI.h> +#include <SCIKit/SystemCalls.h> -namespace LibCF +namespace CF { template <typename T, SizeT N> class CFArray final @@ -68,4 +68,4 @@ namespace LibCF { return CFArray<ValueType, ARRAY_SIZE(val)>{val}; } -} // namespace LibCF +} // namespace CF diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Atom.h b/public/frameworks/CoreFoundation.fwrk/headers/Atom.h index d3152fd2..e205ed12 100644 --- a/public/frameworks/CoreFoundation.fwrk/headers/Atom.h +++ b/public/frameworks/CoreFoundation.fwrk/headers/Atom.h @@ -7,7 +7,7 @@ #include <CoreFoundation.fwrk/headers/Foundation.h> -namespace LibCF +namespace CF { template <typename T> class CFAtom final @@ -44,4 +44,4 @@ namespace LibCF private: T fArrayOfAtoms; }; -} // namespace LibCF +} // namespace CF diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h b/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h index 6de3df0b..c2399376 100644 --- a/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h +++ b/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h @@ -10,9 +10,9 @@ #pragma once -#include <SCIKit/SCI.h> +#include <SCIKit/SystemCalls.h> -namespace LibCF +namespace CF { class CFString; class CFGUID; @@ -75,4 +75,4 @@ namespace LibCF BOOL SizeMatches(CFRect& rect) noexcept; BOOL PositionMatches(CFRect& rect) noexcept; }; -} // namespace LibCF
\ No newline at end of file +} // namespace CF
\ No newline at end of file diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Object.h b/public/frameworks/CoreFoundation.fwrk/headers/Object.h index 7b8f3777..ad34e424 100644 --- a/public/frameworks/CoreFoundation.fwrk/headers/Object.h +++ b/public/frameworks/CoreFoundation.fwrk/headers/Object.h @@ -9,9 +9,9 @@ #include <CoreFoundation.fwrk/headers/Foundation.h> -#define CF_OBJECT : public LibCF::CFObject +#define CF_OBJECT : public CF::CFObject -namespace LibCF +namespace CF { class CFObject; @@ -23,4 +23,4 @@ namespace LibCF SCI_COPY_DEFAULT(CFObject); }; -} // namespace LibCF
\ No newline at end of file +} // namespace CF
\ No newline at end of file diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Property.h b/public/frameworks/CoreFoundation.fwrk/headers/Property.h index f1a5c24e..aac883ee 100644 --- a/public/frameworks/CoreFoundation.fwrk/headers/Property.h +++ b/public/frameworks/CoreFoundation.fwrk/headers/Property.h @@ -7,12 +7,12 @@ #ifndef _PROPS_H #define _PROPS_H -#include <SCIKit/SCI.h> +#include <SCIKit/SystemCalls.h> #include <CoreFoundation.fwrk/headers/Ref.h> #define kMaxPropLen (256U) -namespace LibCF +namespace CF { class CFString; class CFProperty; @@ -48,6 +48,6 @@ namespace LibCF template <SizeT N> using CFPropertyArray = CFArray<CFProperty, N>; -} // namespace LibCF +} // namespace CF #endif // !CFKIT_PROPS_H diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Ref.h b/public/frameworks/CoreFoundation.fwrk/headers/Ref.h index 074b5086..9941bece 100644 --- a/public/frameworks/CoreFoundation.fwrk/headers/Ref.h +++ b/public/frameworks/CoreFoundation.fwrk/headers/Ref.h @@ -8,10 +8,10 @@ #ifndef _REF_H_ #define _REF_H_ -#include <SCIKit/SCI.h> +#include <SCIKit/SystemCalls.h> #include <CoreFoundation.fwrk/headers/Object.h> -namespace LibCF +namespace CF { template <typename T> class CFRef; @@ -105,6 +105,6 @@ namespace LibCF private: CFRef<T> fRef{nullptr}; }; -} // namespace LibCF +} // namespace CF #endif // ifndef _NEWKIT_REF_H_ diff --git a/public/frameworks/CoreFoundation.fwrk/headers/String.h b/public/frameworks/CoreFoundation.fwrk/headers/String.h index 10ce01a9..69b53a89 100644 --- a/public/frameworks/CoreFoundation.fwrk/headers/String.h +++ b/public/frameworks/CoreFoundation.fwrk/headers/String.h @@ -9,7 +9,7 @@ #include <CoreFoundation.fwrk/headers/Object.h> -namespace LibCF +namespace CF { class CFString; @@ -17,4 +17,4 @@ namespace LibCF { public: }; -} // namespace LibCF
\ No newline at end of file +} // namespace CF
\ No newline at end of file diff --git a/public/frameworks/CoreFoundation.fwrk/src/Foundation.cc b/public/frameworks/CoreFoundation.fwrk/src/Foundation.cc index 219c3bfb..8dffdd02 100644 --- a/public/frameworks/CoreFoundation.fwrk/src/Foundation.cc +++ b/public/frameworks/CoreFoundation.fwrk/src/Foundation.cc @@ -6,7 +6,7 @@ #include <CoreFoundation.fwrk/headers/Foundation.h> -LibCF::CFRect::operator bool() +CF::CFRect::operator bool() { return width > 0 && height > 0; } @@ -14,7 +14,7 @@ LibCF::CFRect::operator bool() /***********************************************************************************/ /// @brief returns true if size matches. /***********************************************************************************/ -BOOL LibCF::CFRect::SizeMatches(LibCF::CFRect& rect) noexcept +BOOL CF::CFRect::SizeMatches(CF::CFRect& rect) noexcept { return rect.height == height && rect.width == width; } @@ -22,7 +22,7 @@ BOOL LibCF::CFRect::SizeMatches(LibCF::CFRect& rect) noexcept /***********************************************************************************/ /// @brief returns true if position matches. /***********************************************************************************/ -BOOL LibCF::CFRect::PositionMatches(LibCF::CFRect& rect) noexcept +BOOL CF::CFRect::PositionMatches(CF::CFRect& rect) noexcept { return rect.y == y && rect.x == x; } @@ -33,7 +33,7 @@ BOOL LibCF::CFRect::PositionMatches(LibCF::CFRect& rect) noexcept /// @retval true if point is within this point. /// @retval the validations have failed, false otherwise true. /***********************************************************************************/ -BOOL LibCF::CFPoint::IsWithin(LibCF::CFPoint& withinOf) +BOOL CF::CFPoint::IsWithin(CF::CFPoint& withinOf) { return x_1 >= withinOf.x_1 && x_2 <= (withinOf.x_2) && y_1 >= withinOf.y_1 && y_2 <= (withinOf.y_2); @@ -42,7 +42,7 @@ BOOL LibCF::CFPoint::IsWithin(LibCF::CFPoint& withinOf) /***********************************************************************************/ /// @brief if Point object is correctly set up. /***********************************************************************************/ -LibCF::CFPoint::operator bool() +CF::CFPoint::operator bool() { return x_1 > x_2 && y_1 > y_2; }
\ No newline at end of file |
