diff options
| author | Amlal <amlal@nekernel.org> | 2025-04-25 19:21:22 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-04-25 19:21:51 +0200 |
| commit | f6b400b80efc64b918c03352e93ec9de4e2369a1 (patch) | |
| tree | 251a82ee3653568ef33ffdc48c83b7f54e370bc1 /dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc | |
| parent | 20042235d1f53ae428aa154e64afdbae5d8d91ad (diff) | |
dev, general: codebase needed refactors and tweaks, for NeKernel's 0.0.2 release.
details:
- things needed to be cleared off, short sighted decisions fixed.
- the inconsistency of certain files have been fixed too.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc')
| -rw-r--r-- | dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc index 66cf859..558a94d 100644 --- a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc +++ b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc @@ -21,10 +21,12 @@ // extern_segment, @autodelete { ... }, fn foo() -> auto { ... } -#include <LibCompiler/Backend/amd64.h> +#include <LibCompiler/Backend/Amd64.h> #include <LibCompiler/Parser.h> #include <LibCompiler/UUID.h> +#include <LibCompiler/Detail/ClUtils.h> + #include <cstdio> /* NE C++ Compiler */ @@ -99,12 +101,9 @@ struct CompilerState final { } // namespace Detail static Detail::CompilerState kState; -static SizeType kErrorLimit = 100; static Int32 kOnClassScope = 0; -static Int32 kAcceptableErrors = 0; - namespace Detail { /// @brief prints an error into stdout. /// @param reason the reason of the error. @@ -939,6 +938,8 @@ LIBCOMPILER_MODULE(CompilerCPlusPlusAMD64) { kKeywords.push_back({.keyword_name = ">=", .keyword_kind = LibCompiler::kKeywordKindGreaterEq}); kKeywords.push_back({.keyword_name = "<=", .keyword_kind = LibCompiler::kKeywordKindLessEq}); + kErrorLimit = 100; + kFactory.Mount(new AssemblyCPlusPlusInterface()); kCompilerFrontend = new CompilerFrontendCPlusPlus(); |
