diff options
author | B. Watson <urchlay@slackware.uk> | 2025-02-28 17:21:36 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2025-02-28 17:21:36 -0500 |
commit | 7707c7192d629f4b030adf0653ba346b0d73c900 (patch) | |
tree | 0ef0cbec046a206c4334eef5966bec32d86e1c60 /listamsb.c | |
parent | 9a3f6c2057cdcccacd48d0a67694ac4c2fd6a1ad (diff) | |
download | bw-atari8-tools-7707c7192d629f4b030adf0653ba346b0d73c900.tar.gz |
listamsb: minor tweak (readability).
Diffstat (limited to 'listamsb.c')
-rw-r--r-- | listamsb.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -316,10 +316,11 @@ int next_line(void) { byte = read_prog_byte(); if(in_string) { - /* null byte ends both the string and the line of code. - don't print a closing quote because AMSB doesn't. */ - if(byte == 0x00) break; - if (byte == '|') { + if(byte == 0x00) { + /* null byte ends both the string and the line of code. + don't print a closing quote because AMSB doesn't. */ + break; + } else if(byte == '|') { /* pipe is how AMSB stores the closing quote. end the string but not the line of code, and print a " character. */ in_string = 0; |