From f25f389b4e8ae5c36c372ebb8e91259d500329e6 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Wed, 14 Jun 2023 16:53:48 +1000 Subject: [PATCH] Removed a macro that potentially broke the build Gonna have to live with repl code in the lib for now. --- source/toy_common.c | 4 ---- source/toy_common.h | 4 ---- 2 files changed, 8 deletions(-) diff --git a/source/toy_common.c b/source/toy_common.c index 5005500..6e14897 100644 --- a/source/toy_common.c +++ b/source/toy_common.c @@ -21,8 +21,6 @@ const char* Toy_private_version_build() { return build; } -#ifndef TOY_DISABLE_REPL - //declare the singleton with default values Toy_CommandLine Toy_commandLine = { .error = false, @@ -154,5 +152,3 @@ void Toy_copyrightCommandLine(int argc, const char* argv[]) { printf("2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.\n\n"); printf("3. This notice may not be removed or altered from any source distribution.\n\n"); } - -#endif diff --git a/source/toy_common.h b/source/toy_common.h index a1c45b2..2425ffc 100644 --- a/source/toy_common.h +++ b/source/toy_common.h @@ -30,8 +30,6 @@ TOY_API const char* Toy_private_version_build(); -#ifndef TOY_DISABLE_REPL - //for processing the command line arguments in the repl typedef struct { bool error; @@ -56,5 +54,3 @@ TOY_API void Toy_initCommandLine(int argc, const char* argv[]); TOY_API void Toy_usageCommandLine(int argc, const char* argv[]); TOY_API void Toy_helpCommandLine(int argc, const char* argv[]); TOY_API void Toy_copyrightCommandLine(int argc, const char* argv[]); - -#endif \ No newline at end of file