diff options
| -rw-r--r-- | CITATION.cff | 9 | ||||
| -rw-r--r-- | src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp | 16 | ||||
| -rw-r--r-- | src/CompilerKit/src/Frontends/NectarCompiler+AMD64.cpp | 2 |
3 files changed, 14 insertions, 13 deletions
diff --git a/CITATION.cff b/CITATION.cff index d880544..1256899 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -1,6 +1,6 @@ cff-version: 1.2.0 -title: NeKernel.org Compiler Toolchain Infrastructure -message: The toolchain of NeKernel.org +title: Ne.app Compiler Toolchain Infrastructure +message: The toolchain of Ne.app type: software authors: - given-names: Amlal @@ -9,17 +9,18 @@ authors: identifiers: - type: url value: 'https://nekernel.org' - description: NeKernel.org + description: Ne.app repository-code: 'https://github.com/ne-foss-org/nectar' url: 'https://nekernel.org' abstract: >- - This is NeKernel.org's Operating System toolchain, authored + This is Ne.app' Nectar toolchain for OS X, NeSystem, and Linux. Authored by Amlal El Mahrouss. keywords: - toolchain - linker - compiler - assembler + - nectar - cpp license: Apache-2.0 diff --git a/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp b/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp index a7c1832..6224c3e 100644 --- a/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp +++ b/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp @@ -18,24 +18,24 @@ namespace CompilerKit { ///! @brief Compile for specific format (ELF, PEF, AE) -Int32 AssemblyFactory::Compile(STLString sourceFile, const Int32& arch) { - if (sourceFile.length() == 0) return NECTAR_UNIMPLEMENTED; +Int32 AssemblyFactory::Compile(STLString source_file, const Int32& arch) { + if (source_file.length() == 0) return NECTAR_UNIMPLEMENTED; if (!this->fMounted) return NECTAR_UNIMPLEMENTED; if (arch != this->fMounted->Arch()) return NECTAR_INVALID_ARCH; - if (!std::filesystem::is_regular_file(sourceFile)) return NECTAR_UNIMPLEMENTED; + if (!std::filesystem::is_regular_file(source_file)) return NECTAR_UNIMPLEMENTED; - auto compiledUnit = sourceFile + ".ignore"; + auto compiled_unit = source_file + ".ignore"; try { - std::filesystem::copy(sourceFile, compiledUnit); - auto ret = this->fMounted->CompileToFormat(compiledUnit, arch); + std::filesystem::copy(source_file, compiled_unit); + auto ret = this->fMounted->CompileToFormat(compiled_unit, arch); - std::filesystem::remove(compiledUnit); + std::filesystem::remove(compiled_unit); return ret; } catch (...) { - std::filesystem::remove(compiledUnit); + std::filesystem::remove(compiled_unit); } return NECTAR_INVALID_DATA; diff --git a/src/CompilerKit/src/Frontends/NectarCompiler+AMD64.cpp b/src/CompilerKit/src/Frontends/NectarCompiler+AMD64.cpp index 742575b..939823e 100644 --- a/src/CompilerKit/src/Frontends/NectarCompiler+AMD64.cpp +++ b/src/CompilerKit/src/Frontends/NectarCompiler+AMD64.cpp @@ -33,8 +33,8 @@ static std::filesystem::path nectar_expand_home(const std::filesystem::path& inp if (!raw.empty() && raw[0] == '~') { const char* home = std::getenv("HOME"); - if (!home) home = std::getenv("USERPROFILE"); + if (!home) home = std::getenv("USERPROFILE"); if (!home) throw std::runtime_error("Home directory not found in environment variables"); return std::filesystem::path(home) / raw.substr(1); |
