aboutsummaryrefslogtreecommitdiff
path: root/listamsb.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-02-28 21:29:12 -0500
committerB. Watson <urchlay@slackware.uk>2025-02-28 21:29:12 -0500
commit1672fa18e2b9f4b0c87256ac6143b9d0bfe7afb0 (patch)
treefe69e194b3364f0e04070974e70c95230bcd3c97 /listamsb.c
parentfd2292b20eee9c36179c143e21861ac0d403cb36 (diff)
downloadbw-atari8-tools-1672fa18e2b9f4b0c87256ac6143b9d0bfe7afb0.tar.gz
listamsb: putc => fputc.
Diffstat (limited to 'listamsb.c')
-rw-r--r--listamsb.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/listamsb.c b/listamsb.c
index 590453f..c88c2e7 100644
--- a/listamsb.c
+++ b/listamsb.c
@@ -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;
}