From 4c84412c8405e0f41237d69656a1170a9c147a10 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 16 Jan 2021 10:33:39 +0700 Subject: [PATCH] Correct some ifdefs from ISC to RESWAPPEDCODESTREAM. (#227) `RESWAPPEDCODESTREAM` was only used on ISC, so some `#ifdef`'s were previously set up incorrectly. --- inc/return.h | 4 ++-- src/mvs.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/return.h b/inc/return.h index 7d8ce91..903e4f1 100644 --- a/inc/return.h +++ b/inc/return.h @@ -33,7 +33,7 @@ /* FAST case return use */ -#ifndef ISC +#ifndef RESWAPPEDCODESTREAM #define FastRetCALL \ { \ /* Get IVar from Returnee's IVAR offset slot(BF) */ \ @@ -60,7 +60,7 @@ FuncObj->byteswapped = 1; \ } \ } -#endif /* ISC */ +#endif /* RESWAPPEDCODESTREAM */ diff --git a/src/mvs.c b/src/mvs.c index ad63ac6..0f751a2 100644 --- a/src/mvs.c +++ b/src/mvs.c @@ -72,12 +72,12 @@ newframe: fnhead = (struct fnhead *)Addr68k_from_LADDR(POINTERMASK & SWA_FNHEAD((int)caller->fnheader)); pc = (ByteCode *)fnhead + (caller->pc); } -#ifdef ISC +#ifdef RESWAPPEDCODESTREAM if (!fnhead->byteswapped) { byte_swap_code_block(fnhead); fnhead->byteswapped = 1; } -#endif /* ISC */ +#endif /* RESWAPPEDCODESTREAM */ newpc: #ifdef ISC @@ -177,12 +177,12 @@ newframe: pc = (ByteCode *)fnhead + (caller->pc); } -#ifdef ISC +#ifdef RESWAPPEDCODESTREAM if (!fnhead->byteswapped) { byte_swap_code_block(fnhead); fnhead->byteswapped = 1; } -#endif /* ISC */ +#endif /* RESWAPPEDCODESTREAM */ newpc: #ifdef ISC