diff options
author | B. Watson <urchlay@slackware.uk> | 2025-02-28 21:29:12 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2025-02-28 21:29:12 -0500 |
commit | 1672fa18e2b9f4b0c87256ac6143b9d0bfe7afb0 (patch) | |
tree | fe69e194b3364f0e04070974e70c95230bcd3c97 | |
parent | fd2292b20eee9c36179c143e21861ac0d403cb36 (diff) | |
download | bw-atari8-tools-1672fa18e2b9f4b0c87256ac6143b9d0bfe7afb0.tar.gz |
listamsb: putc => fputc.
-rw-r--r-- | listamsb.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -325,26 +325,26 @@ int next_line(void) { /* pipe is how AMSB stores the closing quote. end the string but not the line of code, and print a " character. */ in_string = 0; - if(printing) putc('"', outfile); + if(printing) fputc('"', outfile); } else { /* normal string character. */ if(printing) { - putc(byte, outfile); + fputc(byte, outfile); /* one " character embedded in a string gets printed as "" */ - if(byte == '"') putc(byte, outfile); + if(byte == '"') fputc(byte, outfile); } } continue; } else if(in_comment) { /* null byte ends both the comment and the line of code. */ if(byte == 0x00) break; - if(printing) putc(byte, outfile); + if(printing) fputc(byte, outfile); continue; } if(was_colon) { if(byte != TOK_SQUOTE && byte != TOK_BANG && byte != TOK_ELSE) { - if(printing) putc(':', outfile); + if(printing) fputc(':', outfile); } was_colon = 0; } @@ -355,7 +355,7 @@ int next_line(void) { } else if(byte == '"') { /* strings start but *don't end* with a double-quote */ in_string = 1; - if(printing) putc(byte, outfile); + if(printing) fputc(byte, outfile); } else if(was_ff) { /* previous token was $ff, so this is a function token */ if(byte >= MIN_EXT_TOK && byte <= MAX_EXT_TOK) { @@ -387,7 +387,7 @@ int next_line(void) { self, lineno, byte); warnings++; } - if(printing) putc(byte, outfile); + if(printing) fputc(byte, outfile); } } @@ -418,7 +418,7 @@ int next_line(void) { last_ptr = ptr; - if(printing) putc(EOL, outfile); + if(printing) fputc(EOL, outfile); return 1; } |