diff options
author | B. Watson <urchlay@slackware.uk> | 2025-03-09 13:12:03 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2025-03-09 13:12:09 -0400 |
commit | 35448b24bf768292128905e39e3efe3daebc5eaa (patch) | |
tree | 136be334d539d458e30790f6359dddbb7a180b26 /listamsb.c | |
parent | aacec9f96fabac88b4b88d0d25bbd93620e7cbfe (diff) | |
download | bw-atari8-tools-35448b24bf768292128905e39e3efe3daebc5eaa.tar.gz |
listbas: -D, stop putting a space in int vars like A#.
Diffstat (limited to 'listamsb.c')
-rw-r--r-- | listamsb.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -614,6 +614,7 @@ int need_space_between(int ext1, int ext2, unsigned char t1, unsigned char t2) { } if(!ext2) { + /* these always get a space before them, for readability. */ if(t2 == TOK_THEN) return 1; if(t2 == TOK_AND) return 1; if(t2 == TOK_OR) return 1; @@ -630,7 +631,7 @@ int need_space_between(int ext1, int ext2, unsigned char t1, unsigned char t2) { if(t2 == TOK_ELSE) return 1; } - if(isalnum(t1last)) { + if(t1 >= 0x80) { /* space not really required between OPEN/PRINT/CLOSE and #, but put one there for neatness. */ if(t2first == '#') return 1; |