From 1672fa18e2b9f4b0c87256ac6143b9d0bfe7afb0 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 28 Feb 2025 21:29:12 -0500 Subject: listamsb: putc => fputc. --- listamsb.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'listamsb.c') 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; } -- cgit v1.2.3