diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-06 11:05:25 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-06 11:05:25 +0100 |
| commit | fe0e4a370d91702664ea60460e51653acf390827 (patch) | |
| tree | c3b5fb94a3a4e5c72ee629aa895cde47206cfbc3 | |
| parent | a63d00a74627445683a9f0d3f1914d7cd9caa4d1 (diff) | |
chore: ran format and improve MachOLD codebase.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
| -rw-r--r-- | src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc | 5 | ||||
| -rw-r--r-- | src/CompilerKit/src/Linkers/DynamicLinker64+MachO.cc | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc b/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc index 4eef11a..a3ed995 100644 --- a/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc +++ b/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc @@ -439,7 +439,7 @@ CompilerKit::SyntaxLeafList::SyntaxLeaf CompilerFrontendNectarAMD64::Compile( dont_accept_func: break; - accept_func : { + accept_func: { if (kFunctionEmbedLevel > 0) CompilerKit::Detail::print_error("Clojures are a work in progress feature.", file); @@ -1551,8 +1551,7 @@ static void nectar_process_function_parameters(const std::vector<CompilerKit::ST ///////////////////////////////////////////////////////////////////////////////////////// -#define kExtListCxx \ - { ".nc", ".pp.nc" } +#define kExtListCxx {".nc", ".pp.nc"} class AssemblyNectarInterfaceAMD64 final CK_ASSEMBLY_INTERFACE { public: diff --git a/src/CompilerKit/src/Linkers/DynamicLinker64+MachO.cc b/src/CompilerKit/src/Linkers/DynamicLinker64+MachO.cc index 4d54ef7..a7e48dd 100644 --- a/src/CompilerKit/src/Linkers/DynamicLinker64+MachO.cc +++ b/src/CompilerKit/src/Linkers/DynamicLinker64+MachO.cc @@ -170,9 +170,9 @@ NECTAR_MODULE(DynamicLinker64MachO) { } else if (std::strcmp(argv[linker_arg], "-dylib") == 0) { kIsDylib = true; - if (kOutput.find(".out") != CompilerKit::STLString::npos) { - kOutput.erase(kOutput.find(".out"), strlen(".out")); - kOutput += ".dylib"; + if (kOutput.find(kMachOExt) != CompilerKit::STLString::npos) { + kOutput.erase(kOutput.find(kMachOExt), strlen(kMachOExt)); + kOutput += kMachODylibExt; } continue; |
