diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-02-03 06:32:19 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-02-03 06:32:19 +0100 |
| commit | 0cac3e6fa024ffad21a45fff067df56df5d427fe (patch) | |
| tree | 4a61d241b2bedddab046e004ec867cd3ae2700d3 /dev | |
| parent | 15fe85002f0377c3a4b1ff6b7d50f42033184713 (diff) | |
TWEAK: Rename TK_ to LC_
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/LibCompiler/Defines.h | 4 | ||||
| -rw-r--r-- | dev/LibCompiler/Parser.h | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc | 4 |
3 files changed, 5 insertions, 5 deletions
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 <ctime> #include <fstream> 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: { |
