From 3b02bdbbf657cb407d2cd9ec348aa9da6ced9c89 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 27 Jun 2024 01:44:09 -0400 Subject: bas.h: remove TOK_COLON (use OP_COLON instead). --- unprotbas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unprotbas.c') diff --git a/unprotbas.c b/unprotbas.c index ae01b50..f7007fc 100644 --- a/unprotbas.c +++ b/unprotbas.c @@ -52,7 +52,7 @@ int writemap = 0; 2 09 line length (or, offset to next line) [!] 3 06 offset to next statement *from the start of the line* 4 28 token for "?" - 5 14 token for : (end of statement), we call it TOK_COLON + 5 14 token for : (end of statement), we call it OP_COLON 6 09 offset to next statement [!] 7 15 token for END 8 16 token for end-of-line [*] @@ -71,7 +71,7 @@ int fixline(int linepos) { /* +3 here to skip the line number + line length */ int offset = program[linepos + 3]; - while(program[linepos + offset - 1] == TOK_COLON) + while(program[linepos + offset - 1] == OP_COLON) offset = program[linepos + offset]; program[linepos + 2] = offset; -- cgit v1.2.3