Main+Meta: Allow compilation of each step without source changes

This commit is contained in:
Riyyi
2023-05-05 23:39:54 +02:00
parent 4fff2b9aa2
commit 099cda8b86
11 changed files with 85 additions and 36 deletions
+3 -2
View File
@@ -5,7 +5,6 @@
#include "forward.h"
#if 0
auto read(std::string_view data) -> std::string_view
{
return data;
@@ -57,5 +56,7 @@ auto eval(ValuePtr, EnvironmentPtr) -> ValuePtr
return {};
}
// Added to keep the linker happy at step A
ValuePtr readline(const std::string&) { return nullptr; }
} // namespace blaze
#endif
+5 -2
View File
@@ -15,7 +15,6 @@
#include "reader.h"
#include "settings.h"
#if 0
namespace blaze {
auto read(std::string_view input) -> ValuePtr
@@ -108,4 +107,8 @@ auto main(int argc, char* argv[]) -> int
return 0;
}
#endif
// Added to keep the linker happy at step A
namespace blaze {
ValuePtr readline(const std::string&) { return nullptr; }
} // namespace blaze
+5 -2
View File
@@ -17,7 +17,6 @@
#include "readline.h"
#include "settings.h"
#if 0
static blaze::EnvironmentPtr s_outer_env = blaze::Environment::create();
namespace blaze {
@@ -112,4 +111,8 @@ auto main(int argc, char* argv[]) -> int
return 0;
}
#endif
// Added to keep the linker happy at step A
namespace blaze {
ValuePtr readline(const std::string&) { return nullptr; }
} // namespace blaze
+5 -2
View File
@@ -17,7 +17,6 @@
#include "readline.h"
#include "settings.h"
#if 0
static blaze::EnvironmentPtr s_outer_env = blaze::Environment::create();
namespace blaze {
@@ -112,4 +111,8 @@ auto main(int argc, char* argv[]) -> int
return 0;
}
#endif
// Added to keep the linker happy at step A
namespace blaze {
ValuePtr readline(const std::string&) { return nullptr; }
} // namespace blaze
+5 -2
View File
@@ -17,7 +17,6 @@
#include "readline.h"
#include "settings.h"
#if 0
static blaze::EnvironmentPtr s_outer_env = blaze::Environment::create();
static auto cleanup(int signal) -> void;
@@ -129,4 +128,8 @@ static auto print(blaze::ValuePtr exp) -> std::string
return printer.print(exp, true);
}
#endif
// Added to keep the linker happy at step A
namespace blaze {
ValuePtr readline(const std::string&) { return nullptr; }
} // namespace blaze
+5 -2
View File
@@ -23,7 +23,6 @@
#include "readline.h"
#include "settings.h"
#if 0
static blaze::EnvironmentPtr s_outer_env = blaze::Environment::create();
static auto cleanup(int signal) -> void;
@@ -135,4 +134,8 @@ static auto print(blaze::ValuePtr exp) -> std::string
return printer.print(exp, true);
}
#endif
// Added to keep the linker happy at step A
namespace blaze {
ValuePtr readline(const std::string&) { return nullptr; }
} // namespace blaze
+5 -2
View File
@@ -24,7 +24,6 @@
#include "readline.h"
#include "settings.h"
#if 0
namespace blaze {
static EnvironmentPtr s_outer_env = Environment::create();
@@ -156,4 +155,8 @@ auto main(int argc, char* argv[]) -> int
return 0;
}
#endif
// Added to keep the linker happy at step A
namespace blaze {
ValuePtr readline(const std::string&) { return nullptr; }
} // namespace blaze
+5 -2
View File
@@ -24,7 +24,6 @@
#include "readline.h"
#include "settings.h"
#if 0
namespace blaze {
static EnvironmentPtr s_outer_env = Environment::create();
@@ -156,4 +155,8 @@ auto main(int argc, char* argv[]) -> int
return 0;
}
#endif
// Added to keep the linker happy at step A
namespace blaze {
ValuePtr readline(const std::string&) { return nullptr; }
} // namespace blaze
+5 -2
View File
@@ -24,7 +24,6 @@
#include "readline.h"
#include "settings.h"
#if 0
namespace blaze {
static EnvironmentPtr s_outer_env = Environment::create();
@@ -163,4 +162,8 @@ auto main(int argc, char* argv[]) -> int
return 0;
}
#endif
// Added to keep the linker happy at step A
namespace blaze {
ValuePtr readline(const std::string&) { return nullptr; }
} // namespace blaze
+5 -2
View File
@@ -24,7 +24,6 @@
#include "readline.h"
#include "settings.h"
#if 0
namespace blaze {
static EnvironmentPtr s_outer_env = Environment::create();
@@ -166,4 +165,8 @@ auto main(int argc, char* argv[]) -> int
return 0;
}
#endif
// Added to keep the linker happy at step A
namespace blaze {
ValuePtr readline(const std::string&) { return nullptr; }
} // namespace blaze