summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-02-11 15:42:42 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-02-11 15:42:42 +0100
commite8cebdd573c584dc51c396b35810ca08cb350c82 (patch)
tree266e3cd9af7095cf8b53ace8332827ab80507d83 /src
parent270dfb1ebd40a848bb5c79cf69cf31325457b20c (diff)
feat: CK: Improve codebase and introduce new concepts in DLL.h..
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src')
-rw-r--r--src/CommandLine/pef-amd64-asm.cc6
-rw-r--r--src/CommandLine/pef-amd64-necdrv.cc6
-rw-r--r--src/CompilerKit/ck-posix.json3
3 files changed, 8 insertions, 7 deletions
diff --git a/src/CommandLine/pef-amd64-asm.cc b/src/CommandLine/pef-amd64-asm.cc
index 1316d93..3ca4639 100644
--- a/src/CommandLine/pef-amd64-asm.cc
+++ b/src/CommandLine/pef-amd64-asm.cc
@@ -20,11 +20,11 @@ static auto kPath = "/usr/lib/libCompilerKit.so";
static auto kSymbol = "AssemblerMainAMD64";
Int32 main(Int32 argc, Char const* argv[]) {
- CompilerKit::DLLLoader dylib;
+ CompilerKit::ModuleLoader dylib;
dylib(kPath, kSymbol);
- CompilerKit::DLLLoader::EntryT entrypoint_cxx =
- reinterpret_cast<CompilerKit::DLLLoader::EntryT>(dylib.fEntrypoint);
+ CompilerKit::ModuleLoader::EntryT entrypoint_cxx =
+ reinterpret_cast<CompilerKit::ModuleLoader::EntryT>(dylib.fEntrypoint);
if (!entrypoint_cxx) {
kStdOut;
diff --git a/src/CommandLine/pef-amd64-necdrv.cc b/src/CommandLine/pef-amd64-necdrv.cc
index 921c674..c8d8dbe 100644
--- a/src/CommandLine/pef-amd64-necdrv.cc
+++ b/src/CommandLine/pef-amd64-necdrv.cc
@@ -20,11 +20,11 @@ static auto kPath = "/usr/lib/libCompilerKit.so";
static auto kSymbol = "CompilerNectarAMD64";
Int32 main(Int32 argc, Char const* argv[]) {
- CompilerKit::DLLLoader dylib;
+ CompilerKit::ModuleLoader dylib;
dylib(kPath, kSymbol);
- CompilerKit::DLLLoader::EntryT entrypoint_cxx =
- reinterpret_cast<CompilerKit::DLLLoader::EntryT>(dylib.fEntrypoint);
+ CompilerKit::ModuleLoader::EntryT entrypoint_cxx =
+ reinterpret_cast<CompilerKit::ModuleLoader::EntryT>(dylib.fEntrypoint);
if (!entrypoint_cxx) {
kStdOut;
diff --git a/src/CompilerKit/ck-posix.json b/src/CompilerKit/ck-posix.json
index 264a4a6..9694662 100644
--- a/src/CompilerKit/ck-posix.json
+++ b/src/CompilerKit/ck-posix.json
@@ -17,8 +17,9 @@
"-shared"
],
"cpp_macros": [
- "__NECTAR__=202505",
+ "__NECTAR__=202602",
"CK_USE_STRUCTS=1",
+ "CK_POSIX=1",
"kDistReleaseBranch=$(git rev-parse --abbrev-ref HEAD)-$(uuidgen)"
],
"description": "CompilerKit for POSIX. CK is the framework behind Nectar."