From 5d16a27b77cc11f07af73050e2f6d175a57f9f0e Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 9 Jul 2024 03:42:05 -0400 Subject: whichbas: fix logic for TRACE/EXTEND (cmd 0x58). --- whichbas.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/whichbas.c b/whichbas.c index 7c65355..3e652a7 100644 --- a/whichbas.c +++ b/whichbas.c @@ -254,6 +254,8 @@ CALLBACK(handle_cmd) { } break; case 0x58: /* TRACE (optional + or -), EXTEND (BXE; no args) */ + /* partial: TRACE +/- detected, TRACE without arg can't be + told from EXTEND. */ if(nexttok == OP_PLUS || nexttok == OP_MINUS) { bas_type = BT_TURBO; print_result(); @@ -262,11 +264,6 @@ CALLBACK(handle_cmd) { as the regular one, but can't be entered in the editor. Assume no BXL program contains this token. */ remove_type(BT_BXL); - if(lineno < 32768) { - /* EXTEND can't show up in a program except maybe line 32768, e.g. - EXTEND:SAVE "D:BLAH". */ - remove_type(BT_BXE); - } } break; case 0x59: /* TEXT or PROCEDURE */ -- cgit v1.2.3