aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/alan2/debug.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2019-06-21 19:20:58 -0700
committerPaul Gilbert2019-06-22 14:40:50 -0700
commitdd4108e7c79770ec8235bd4440e0cdc06becd9d9 (patch)
treec41d06548ac4c4fbb037b733c1cdab519822204c /engines/glk/alan2/debug.cpp
parent8f75589971d70b2ca749d5389a332e6761213a5b (diff)
downloadscummvm-rg350-dd4108e7c79770ec8235bd4440e0cdc06becd9d9.tar.gz
scummvm-rg350-dd4108e7c79770ec8235bd4440e0cdc06becd9d9.tar.bz2
scummvm-rg350-dd4108e7c79770ec8235bd4440e0cdc06becd9d9.zip
GLK: ALAN2: Removing all the existing system specific ifdef blocks
I'm going to be shortly formatting the code and doing refactoring to work around the setjmp calls in the original, so there's little point in keeping the system specific ifdef blocks from the original
Diffstat (limited to 'engines/glk/alan2/debug.cpp')
-rw-r--r--engines/glk/alan2/debug.cpp32
1 files changed, 6 insertions, 26 deletions
diff --git a/engines/glk/alan2/debug.cpp b/engines/glk/alan2/debug.cpp
index 785cd54cbc..3c67fbe109 100644
--- a/engines/glk/alan2/debug.cpp
+++ b/engines/glk/alan2/debug.cpp
@@ -21,26 +21,15 @@
*/
#include "glk/alan2/types.h"
-#ifdef HAVE_SHORT_FILENAMES
-#include "glk/alan2/av.h"
-#else
#include "glk/alan2/alan_version.h"
-#endif
-
-#ifdef USE_READLINE
-#include "glk/alan2/readline.h"
-#endif
-
+#include "glk/alan2/debug.h"
+#include "glk/alan2/exe.h"
+#include "glk/alan2/glkio.h"
#include "glk/alan2/inter.h"
#include "glk/alan2/main.h"
#include "glk/alan2/parse.h"
-#include "glk/alan2/exe.h"
-
-#include "glk/alan2/debug.h"
+#include "glk/alan2/readline.h"
-#ifdef GLK
-#include "glk/alan2/glkio.h"
-#endif
namespace Glk {
namespace Alan2 {
@@ -55,9 +44,6 @@ static void showatrs(Aword atradr) {
i = 1;
for (at = (AtrElem *) addrTo(atradr); !endOfTable(at); at++) {
sprintf(str, "$i%3ld: %ld (%s)", (long) i, (unsigned long) at->val, (char *) addrTo(at->stradr));
-#if ISO == 0
- fromIso(str, str);
-#endif
output(str);
i++;
}
@@ -258,9 +244,6 @@ static void showevts() {
output("EVENTS:");
for (evt = EVTMIN; evt <= EVTMAX; evt++) {
sprintf(str, "$i%d (%s):", evt, (char *)addrTo(evts[evt-EVTMIN].stradr));
-#if ISO == 0
- fromIso(str, str);
-#endif
output(str);
scheduled = FALSE;
for (i = 0; i < etop; i++)
@@ -304,11 +287,8 @@ void debug() {
para();
do {
output("ABUG> ");
-#ifdef USE_READLINE
- (void) readline(buf);
-#else
- fgets(buf, 255, stdin);
-#endif
+ (void)readline(buf);
+
lin = 1;
c = buf[0];
i = 0;