summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-02-03 06:32:19 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-02-03 06:32:19 +0100
commit0cac3e6fa024ffad21a45fff067df56df5d427fe (patch)
tree4a61d241b2bedddab046e004ec867cd3ae2700d3
parent15fe85002f0377c3a4b1ff6b7d50f42033184713 (diff)
TWEAK: Rename TK_ to LC_
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
-rw-r--r--compile_flags.txt2
-rw-r--r--dev/LibCompiler/Defines.h4
-rw-r--r--dev/LibCompiler/Parser.h2
-rw-r--r--dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc4
-rw-r--r--osx.json2
-rw-r--r--posix.json2
-rw-r--r--tools/asm.cc8
-rw-r--r--tools/ld64.cc2
-rw-r--r--tools/necc.cc6
9 files changed, 16 insertions, 16 deletions
diff --git a/compile_flags.txt b/compile_flags.txt
index 8de0bae..6c24593 100644
--- a/compile_flags.txt
+++ b/compile_flags.txt
@@ -4,5 +4,5 @@
-Idev/LibCompiler/Detail
-Isdk/
-I./
--DTK_USE_STRUCTS
+-DLC_USE_STRUCTS
-xc++ \ No newline at end of file
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: {
diff --git a/osx.json b/osx.json
index 3c58088..355c49d 100644
--- a/osx.json
+++ b/osx.json
@@ -12,7 +12,7 @@
"compiler_flags": ["-fPIC", "-shared"],
"cpp_macros": [
"__LIBCOMPILER_DLL__=202401",
- "TK_USE_STRUCTS=1",
+ "LC_USE_STRUCTS=1",
"kDistReleaseBranch=$(git rev-parse --abbrev-ref HEAD)-$(uuidgen)"
]
}
diff --git a/posix.json b/posix.json
index 4760725..554c653 100644
--- a/posix.json
+++ b/posix.json
@@ -12,7 +12,7 @@
"compiler_flags": ["-fPIC", "-shared"],
"cpp_macros": [
"__LIBCOMPILER_DLL__=202401",
- "TK_USE_STRUCTS=1",
+ "LC_USE_STRUCTS=1",
"kDistReleaseBranch=$(git rev-parse --abbrev-ref HEAD)-$(uuidgen)"
]
}
diff --git a/tools/asm.cc b/tools/asm.cc
index 3c5a5e1..55e482c 100644
--- a/tools/asm.cc
+++ b/tools/asm.cc
@@ -14,10 +14,10 @@
#include <string>
#include <vector>
-TK_IMPORT_C int AssemblerMainPower64(int argc, char const* argv[]);
-TK_IMPORT_C int AssemblerMainARM64(int argc, char const* argv[]);
-TK_IMPORT_C int AssemblerMain64x0(int argc, char const* argv[]);
-TK_IMPORT_C int AssemblerMainAMD64(int argc, char const* argv[]);
+LC_IMPORT_C int AssemblerMainPower64(int argc, char const* argv[]);
+LC_IMPORT_C int AssemblerMainARM64(int argc, char const* argv[]);
+LC_IMPORT_C int AssemblerMain64x0(int argc, char const* argv[]);
+LC_IMPORT_C int AssemblerMainAMD64(int argc, char const* argv[]);
int main(int argc, char const* argv[])
{
diff --git a/tools/ld64.cc b/tools/ld64.cc
index fe444db..60a72d0 100644
--- a/tools/ld64.cc
+++ b/tools/ld64.cc
@@ -9,7 +9,7 @@
/// @file ld64.cxx
/// @brief ZKA Linker for AE objects.
-TK_IMPORT_C int DynamicLinker64PEF(int argc, char const* argv[]);
+LC_IMPORT_C int DynamicLinker64PEF(int argc, char const* argv[]);
int main(int argc, char const* argv[])
{
diff --git a/tools/necc.cc b/tools/necc.cc
index a6adfbc..d14b84d 100644
--- a/tools/necc.cc
+++ b/tools/necc.cc
@@ -13,9 +13,9 @@
#include <cstring>
#include <vector>
-TK_IMPORT_C int CPlusPlusPreprocessorMain(int argc, char const* argv[]);
-TK_IMPORT_C int CompilerCPlusPlusX8664(int argc, char const* argv[]);
-TK_IMPORT_C int AssemblerMainAMD64(int argc, char const* argv[]);
+LC_IMPORT_C int CPlusPlusPreprocessorMain(int argc, char const* argv[]);
+LC_IMPORT_C int CompilerCPlusPlusX8664(int argc, char const* argv[]);
+LC_IMPORT_C int AssemblerMainAMD64(int argc, char const* argv[]);
int main(int argc, char const* argv[])
{