diff options
| -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;  } | 
