ref: c2ca46c27d622a17c6248782d628c89c49bfb972
parent: aac839f3897be831eb35c3b31403a0b099079ae3
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Mon Nov 22 12:31:19 EST 2021
Remove `TRACE_PARSER` support Attempting to build with this gave an "undefined reference to `yydebug'" error (maybe a version issue with bison?), and I don't think it's been used for recent parser debugging either.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,7 +25,6 @@
option(SANITIZERS "Build with sanitizers enabled" OFF) # Ignored on MSVC
option(MORE_WARNINGS "Turn on more warnings" OFF) # Ignored on MSVC
-option(TRACE_PARSER "Trace parser execution" OFF)
if(MSVC)
# MSVC's standard library triggers warning C5105,
@@ -87,8 +86,4 @@
else()
message(CHECK_FAIL "no")
endif()
-endif()
-
-if(TRACE_PARSER)
- target_compile_definitions(rgbasm PRIVATE -DYYDEBUG)
endif()
--- a/src/asm/main.c
+++ b/src/asm/main.c
@@ -52,10 +52,6 @@
// Unfortunately, macOS still ships 2.3, which is from 2008...
int yyparse(void);
-#if defined(YYDEBUG) && YYDEBUG
-extern int yydebug;
-#endif
-
FILE * dependfile;
bool generatedMissingIncludes;
bool failedOnMissingInclude;
@@ -160,10 +156,6 @@
now = (time_t)strtoul(sourceDateEpoch, NULL, 0);
dependfile = NULL;
-
-#if defined(YYDEBUG) && YYDEBUG
- yydebug = 1;
-#endif
// Perform some init for below
sym_Init(now);