From 7267363ca6fd71cdccd09b80947fb870fb4a0d4f Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 19 Jan 2026 23:36:39 +0100 Subject: chore: Add README about planned frontends. Signed-off-by: Amlal El Mahrouss --- include/CompilerKit/AE.h | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/CompilerKit/AE.h b/include/CompilerKit/AE.h index 3f34fb8..945dd83 100644 --- a/include/CompilerKit/AE.h +++ b/include/CompilerKit/AE.h @@ -3,17 +3,17 @@ // file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0) // Official repository: https://github.com/nekernel-org/nectar -#ifndef _NECTAR_AE_H_ -#define _NECTAR_AE_H_ +#ifndef NECTAR_COMPILERKIT_AE_H +#define NECTAR_COMPILERKIT_AE_H_ #include #include -#define kAEIdentVersion (0x0122) +#define kAEIdentVersion (0x0123) -#define kAEMag0 'A' +#define kAEMag0 'H' #define kAEMag1 'E' -#define kAEMag2 'F' +#define kAEMag2 'Y' #define kAESymbolLen (256) #define kAEPad (8) @@ -28,6 +28,7 @@ // You can also relocate at runtime but that's up to the operating system loader. namespace CompilerKit { + // @brief Advanced Executable Header // One thing to keep in mind. // This object format, is reloctable. @@ -64,15 +65,14 @@ enum { // provide operator<< for AE +namespace Operators { inline std::ofstream& operator<<(std::ofstream& fp, CompilerKit::AEHeader& container) { fp.write((char*) &container, sizeof(CompilerKit::AEHeader)); - return fp; } inline std::ofstream& operator<<(std::ofstream& fp, CompilerKit::AERecordHeader& container) { fp.write((char*) &container, sizeof(CompilerKit::AERecordHeader)); - return fp; } @@ -85,6 +85,11 @@ inline std::ifstream& operator>>(std::ifstream& fp, CompilerKit::AERecordHeader& fp.read((char*) &container, sizeof(CompilerKit::AERecordHeader)); return fp; } +} // namespace Operators + +#ifndef __CK_NO_USING_OPERATORS__ +using namespace Operators; +#endif namespace CompilerKit::Utils { /** @@ -128,6 +133,7 @@ class AEReadableProtocol final { return reinterpret_cast(raw); } }; + } // namespace CompilerKit::Utils -#endif /* ifndef _NECTAR_AE_H_ */ +#endif /* ifndef NECTAR_COMPILERKIT_AE_H */ -- cgit v1.2.3