diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-15 13:25:26 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-15 13:25:26 +0100 |
| commit | 6342367bc599a47363104fc0482c6d793f02a957 (patch) | |
| tree | 857d5795f03e2215226d1577b38b7b4d6cf0c431 /src/CompilerKit | |
| parent | e199681a53aba5e7121e522f2422ae3bdea0a3fd (diff) | |
[FEAT] Codebase improvements on CLI formatting.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/CompilerKit')
6 files changed, 5 insertions, 44 deletions
diff --git a/src/CompilerKit/src/Assemblers/Assembler+64x0.cpp b/src/CompilerKit/src/Assemblers/Assembler+64x0.cpp index 41b123a..4f33246 100644 --- a/src/CompilerKit/src/Assemblers/Assembler+64x0.cpp +++ b/src/CompilerKit/src/Assemblers/Assembler+64x0.cpp @@ -1,4 +1,4 @@ -// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (See accompanying // file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0) // Official repository: https://github.com/ne-foss-org/nectar @@ -26,12 +26,6 @@ #include <CompilerKit/PEF.h> #include <CompilerKit/Utilities/Compiler.h> -///////////////////// - -// ANSI ESCAPE CODES - -///////////////////// - static char kOutputArch = CompilerKit::kPefArch64000; constexpr auto k64x0IPAlignment = 0x1U; diff --git a/src/CompilerKit/src/Assemblers/Assembler+AMD64.cpp b/src/CompilerKit/src/Assemblers/Assembler+AMD64.cpp index 6ec5a69..f064a39 100644 --- a/src/CompilerKit/src/Assemblers/Assembler+AMD64.cpp +++ b/src/CompilerKit/src/Assemblers/Assembler+AMD64.cpp @@ -34,17 +34,6 @@ #include <CompilerKit/PEF.h> #include <CompilerKit/Utilities/Assembler.h> -///////////////////// - -// ANSI ESCAPE CODES - -///////////////////// - -#define kBlank "\e[0;30m" -#define kRed "\e[0;31m" -#define kWhite "\e[0;97m" -#define kYellow "\e[0;33m" - static char kOutputArch = CompilerKit::kPefArchAMD64; static constexpr auto kIPAlignement = 0x1U; diff --git a/src/CompilerKit/src/Assemblers/Assembler+ARM64.cpp b/src/CompilerKit/src/Assemblers/Assembler+ARM64.cpp index 0017af0..1c25338 100644 --- a/src/CompilerKit/src/Assemblers/Assembler+ARM64.cpp +++ b/src/CompilerKit/src/Assemblers/Assembler+ARM64.cpp @@ -1,4 +1,4 @@ -// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (See accompanying // file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0) // Official repository: https://github.com/ne-foss-org/nectar @@ -26,17 +26,6 @@ #include <CompilerKit/PEF.h> #include <CompilerKit/Utilities/Assembler.h> -///////////////////// - -// ANSI ESCAPE CODES - -///////////////////// - -#define kBlank "\e[0;30m" -#define kRed "\e[0;31m" -#define kWhite "\e[0;97m" -#define kYellow "\e[0;33m" - constexpr auto kArm64Alignment = 0x1U; static char kOutputArch = CompilerKit::kPefArchARM64; diff --git a/src/CompilerKit/src/Assemblers/Assembler+PowerPC.cpp b/src/CompilerKit/src/Assemblers/Assembler+PowerPC.cpp index ced2cf2..1c05a1c 100644 --- a/src/CompilerKit/src/Assemblers/Assembler+PowerPC.cpp +++ b/src/CompilerKit/src/Assemblers/Assembler+PowerPC.cpp @@ -1,4 +1,4 @@ -// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (See accompanying // file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0) // Official repository: https://github.com/ne-foss-org/nectar @@ -26,17 +26,6 @@ #include <CompilerKit/PEF.h> #include <CompilerKit/Utilities/Assembler.h> -///////////////////// - -// ANSI ESCAPE CODES - -///////////////////// - -#define kBlank "\e[0;30m" -#define kRed "\e[0;31m" -#define kWhite "\e[0;97m" -#define kYellow "\e[0;33m" - constexpr auto kPowerIPAlignment = 0x1U; static char kOutputArch = CompilerKit::kPefArchPowerPC; diff --git a/src/CompilerKit/src/Frontends/NectarCompiler+AMD64.cpp b/src/CompilerKit/src/Frontends/NectarCompiler+AMD64.cpp index 88b6894..6769355 100644 --- a/src/CompilerKit/src/Frontends/NectarCompiler+AMD64.cpp +++ b/src/CompilerKit/src/Frontends/NectarCompiler+AMD64.cpp @@ -1720,7 +1720,7 @@ NECTAR_MODULE(CompilerNectarAMD64) { CompilerKit::STLString err = "Unknown option: "; err += argv[index]; - CompilerKit::Detail::print_error(err, "Nectar"); + CompilerKit::Detail::print_error(err, "frontend"); continue; } diff --git a/src/CompilerKit/src/Frontends/NectarCompiler+PTX.cpp b/src/CompilerKit/src/Frontends/NectarCompiler+PTX.cpp index cab7ebd..7922c37 100644 --- a/src/CompilerKit/src/Frontends/NectarCompiler+PTX.cpp +++ b/src/CompilerKit/src/Frontends/NectarCompiler+PTX.cpp @@ -1653,7 +1653,7 @@ NECTAR_MODULE(CompilerNectarPTX) { CompilerKit::STLString err = "Unknown option: "; err += argv[index]; - CompilerKit::Detail::print_error(err, "Nectar"); + CompilerKit::Detail::print_error(err, "frontend"); continue; } |
