From 0cac3e6fa024ffad21a45fff067df56df5d427fe Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 3 Feb 2025 06:32:19 +0100 Subject: TWEAK: Rename TK_ to LC_ Signed-off-by: Amlal El Mahrouss --- dev/LibCompiler/Defines.h | 4 ++-- dev/LibCompiler/Parser.h | 2 +- dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'dev/LibCompiler') diff --git a/dev/LibCompiler/Defines.h b/dev/LibCompiler/Defines.h index a2c594e..aa5b890 100644 --- a/dev/LibCompiler/Defines.h +++ b/dev/LibCompiler/Defines.h @@ -94,8 +94,8 @@ KLASS& operator=(KLASS&&) = default; \ KLASS(KLASS&&) = default; -#define TK_IMPORT_C extern "C" -#define TK_IMPORT extern +#define LC_IMPORT_C extern "C" +#define LC_IMPORT extern #include #include diff --git a/dev/LibCompiler/Parser.h b/dev/LibCompiler/Parser.h index 8ed648a..4ca1c75 100644 --- a/dev/LibCompiler/Parser.h +++ b/dev/LibCompiler/Parser.h @@ -97,7 +97,7 @@ namespace LibCompiler struct SyntaxLeaf final { Int32 fUserType; -#ifdef TK_USE_STRUCTS +#ifdef LC_USE_STRUCTS CompilerKeyword fUserData; #else std::string fUserData; diff --git a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc index 3f9a042..af0f0c6 100644 --- a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc +++ b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc @@ -411,7 +411,7 @@ bool CompilerFrontendCPlusPlus::Compile(const std::string text, fnName = text.substr(indexFnName); if (text.ends_with(";")) - goto tk_write_assembly; + goto LC_write_assembly; else if (text.size() <= indexFnName) Detail::print_error("Invalid function name: " + fnName, file); @@ -437,7 +437,7 @@ bool CompilerFrontendCPlusPlus::Compile(const std::string text, break; - tk_write_assembly: + LC_write_assembly: syntax_tree.fUserValue = "jmp __LIBCOMPILER_" + fnName + "\n"; } case LibCompiler::KeywordKind::kKeywordKindFunctionEnd: { -- cgit v1.2.3