summaryrefslogtreecommitdiffhomepage
path: root/public
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-26 10:08:33 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-26 10:08:33 +0100
commit9e746d42d2e3faa526f12ba222f5ee6924dd30f9 (patch)
tree7f1a83f69562a2725bb9cda27c31d120640d2c1c /public
parent731758b271233b9c11052001ffc20a5a2ca1f365 (diff)
feat! breaking API changes, use header guards and libSystem fixes.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'public')
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Array.h5
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Atom.h5
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h5
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Foundation.h7
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Object.h5
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Property.h5
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Ref.h5
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/String.h7
-rw-r--r--public/frameworks/DiskImage.fwrk/headers/DiskImage.h5
-rw-r--r--public/frameworks/KernelTest.fwrk/headers/Foundation.h5
-rw-r--r--public/frameworks/KernelTest.fwrk/headers/SourceLocation.h7
-rw-r--r--public/frameworks/KernelTest.fwrk/headers/TestCase.h7
-rw-r--r--public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h7
-rw-r--r--public/tools/diutil/vendor/Dialogs.h7
14 files changed, 62 insertions, 20 deletions
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Array.h b/public/frameworks/CoreFoundation.fwrk/headers/Array.h
index 1b3e4818..dab81fc3 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Array.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Array.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef HEADERS_ARRAY_H
+#define HEADERS_ARRAY_H
#include <libSystem/SystemKit/System.h>
@@ -50,3 +51,5 @@ inline auto make_array(ValueType val) {
return CFArray<ValueType, ARRAY_SIZE(val)>{val};
}
} // namespace CF
+
+#endif
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Atom.h b/public/frameworks/CoreFoundation.fwrk/headers/Atom.h
index 5b398d1e..f9fdf1d6 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Atom.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Atom.h
@@ -3,7 +3,8 @@
Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
======================================== */
-#pragma once
+#ifndef HEADERS_ATOM_H
+#define HEADERS_ATOM_H
#include <CoreFoundation.fwrk/headers/Foundation.h>
@@ -31,3 +32,5 @@ class CFAtom final {
T fArrayOfAtoms;
};
} // namespace CF
+
+#endif
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h b/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h
index fef51f21..e00260ec 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef HEADERS_DICTIONARY_H
+#define HEADERS_DICTIONARY_H
#include <libSystem/SystemKit/System.h>
@@ -38,3 +39,5 @@ inline auto make_dict() {
return CFDictionary<KeyType, ValueType>{};
}
} // namespace CF
+
+#endif
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h b/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h
index d11697db..d3340e1b 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h
@@ -8,7 +8,8 @@
======================================== */
-#pragma once
+#ifndef HEADERS_FOUNDATION_H
+#define HEADERS_FOUNDATION_H
#include <libSystem/SystemKit/System.h>
@@ -86,4 +87,6 @@ union CFGuid final {
UInt8 fMs4[8];
} fUuid;
};
-} // namespace CF \ No newline at end of file
+} // namespace CF
+
+#endif
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Object.h b/public/frameworks/CoreFoundation.fwrk/headers/Object.h
index 0bf02e1c..c13ed383 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Object.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Object.h
@@ -5,7 +5,8 @@
======================================== */
-#pragma once
+#ifndef HEADERS_OBJECT_H
+#define HEADERS_OBJECT_H
#include <CoreFoundation.fwrk/headers/Foundation.h>
@@ -24,3 +25,5 @@ class CFObject {
virtual const Char* Name() { return "[\"CFObject\"];"; }
};
} // namespace CF
+
+#endif
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Property.h b/public/frameworks/CoreFoundation.fwrk/headers/Property.h
index 28315938..3e9bc3ed 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Property.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Property.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef HEADERS_PROPERTY_H
+#define HEADERS_PROPERTY_H
#include <CoreFoundation.fwrk/headers/Foundation.h>
#include <CoreFoundation.fwrk/headers/Ref.h>
@@ -50,3 +51,5 @@ class CFProperty final CF_OBJECT {
template <SizeT N>
using CFPropertyArray = CFArray<CFProperty, N>;
} // namespace CF
+
+#endif
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Ref.h b/public/frameworks/CoreFoundation.fwrk/headers/Ref.h
index 0bc728ce..13226d3e 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Ref.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Ref.h
@@ -5,7 +5,8 @@
======================================== */
-#pragma once
+#ifndef HEADERS_REF_H
+#define HEADERS_REF_H
#include <CoreFoundation.fwrk/headers/Object.h>
#include <libSystem/SystemKit/System.h>
@@ -83,3 +84,5 @@ class CFNonNullRef final {
CFRef<T> fRef{nullptr};
};
} // namespace CF
+
+#endif
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/String.h b/public/frameworks/CoreFoundation.fwrk/headers/String.h
index 2a44d1cb..55c70cac 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/String.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/String.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef HEADERS_STRING_H
+#define HEADERS_STRING_H
#include <CoreFoundation.fwrk/headers/Object.h>
#include <CoreFoundation.fwrk/headers/Ref.h>
@@ -45,4 +46,6 @@ class CFStringBuilder final {
static BOOL Equals(const Char, const Char*);
static BOOL Equals(const Char*, const Char*);
};
-} // namespace CF \ No newline at end of file
+} // namespace CF
+
+#endif
diff --git a/public/frameworks/DiskImage.fwrk/headers/DiskImage.h b/public/frameworks/DiskImage.fwrk/headers/DiskImage.h
index 2ed66345..796cd545 100644
--- a/public/frameworks/DiskImage.fwrk/headers/DiskImage.h
+++ b/public/frameworks/DiskImage.fwrk/headers/DiskImage.h
@@ -7,7 +7,8 @@
======================================== */
-#pragma once
+#ifndef HEADERS_DISKIMAGE_H
+#define HEADERS_DISKIMAGE_H
#include <libSystem/SystemKit/System.h>
@@ -58,3 +59,5 @@ SInt32 DIFormatFilesystemNeFS(struct DI_DISK_IMAGE& img);
SInt32 DIFormatFilesystemOpenHeFS(struct DI_DISK_IMAGE& img);
} // namespace DI
+
+#endif
diff --git a/public/frameworks/KernelTest.fwrk/headers/Foundation.h b/public/frameworks/KernelTest.fwrk/headers/Foundation.h
index 3bc7225d..7737e584 100644
--- a/public/frameworks/KernelTest.fwrk/headers/Foundation.h
+++ b/public/frameworks/KernelTest.fwrk/headers/Foundation.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef HEADERS_FOUNDATION_H
+#define HEADERS_FOUNDATION_H
#include <libSystem/SystemKit/Err.h>
#include <libSystem/SystemKit/System.h>
@@ -17,3 +18,5 @@
#define KT_TEST_SUCCESS (kErrorSuccess)
#define KT_TEST_FAILURE (kErrorSuccess + 1)
+
+#endif
diff --git a/public/frameworks/KernelTest.fwrk/headers/SourceLocation.h b/public/frameworks/KernelTest.fwrk/headers/SourceLocation.h
index 39fdafbb..eb6b8648 100644
--- a/public/frameworks/KernelTest.fwrk/headers/SourceLocation.h
+++ b/public/frameworks/KernelTest.fwrk/headers/SourceLocation.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef HEADERS_SOURCELOCATION_H
+#define HEADERS_SOURCELOCATION_H
#include <KernelTest.fwrk/headers/Foundation.h>
@@ -31,4 +32,6 @@ class KTSourceLocation final CF_OBJECT {
private:
CF::CFString mFile{4096};
SInt32 mLine{0U};
-}; \ No newline at end of file
+};
+
+#endif
diff --git a/public/frameworks/KernelTest.fwrk/headers/TestCase.h b/public/frameworks/KernelTest.fwrk/headers/TestCase.h
index 077fb960..54a8e8fd 100644
--- a/public/frameworks/KernelTest.fwrk/headers/TestCase.h
+++ b/public/frameworks/KernelTest.fwrk/headers/TestCase.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef HEADERS_TESTCASE_H
+#define HEADERS_TESTCASE_H
#include <KernelTest.fwrk/headers/SourceLocation.h>
@@ -51,4 +52,6 @@ KT_DECL_TEST(AlwaysBreak, []() -> bool {
KT_DECL_TEST(AlwaysPass, []() -> bool {
KT_MUST_PASS("AlwaysPass", YES, YES);
return YES;
-}); \ No newline at end of file
+});
+
+#endif
diff --git a/public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h b/public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h
index e0cdcc64..421bb0cc 100644
--- a/public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h
+++ b/public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef HEADERS_FOUNDATION_H
+#define HEADERS_FOUNDATION_H
#include <CoreFoundation.fwrk/headers/Foundation.h>
#include <CoreFoundation.fwrk/headers/String.h>
@@ -43,4 +44,6 @@ using LHLaunchInfoPtr = LHLaunchInfo*;
/// @brief Get launch information.
/// @return the launch information structure.
CF::CFRef<LHLaunchInfo> LHGetLaunchInfo(Void);
-} // namespace LaunchHelpers \ No newline at end of file
+} // namespace LaunchHelpers
+
+#endif
diff --git a/public/tools/diutil/vendor/Dialogs.h b/public/tools/diutil/vendor/Dialogs.h
index e5e6d83a..d1bbd7a2 100644
--- a/public/tools/diutil/vendor/Dialogs.h
+++ b/public/tools/diutil/vendor/Dialogs.h
@@ -10,7 +10,8 @@
// See http://www.wtfpl.net/ for more details.
//
-#pragma once
+#ifndef VENDOR_DIALOGS_H
+#define VENDOR_DIALOGS_H
#if _WIN32
#ifndef WIN32_LEAN_AND_MEAN
@@ -1735,4 +1736,6 @@ inline std::string select_folder::result() {
#endif // PFD_SKIP_IMPLEMENTATION
-} // namespace pfd \ No newline at end of file
+} // namespace pfd
+
+#endif