diff --git a/texk/web2c/ctangleboot.cin b/texk/web2c/ctangleboot.cin index 19333f7898..a04910f1c8 100644 --- a/texk/web2c/ctangleboot.cin +++ b/texk/web2c/ctangleboot.cin @@ -143,7 +143,7 @@ #define macro_end (cur_text+1) ->tok_start \ #define C_printf(c,a) fprintf(C_file,c,a) -#define C_putc(c) putc((int) (c) ,C_file) \ +#define C_putc(c) fputc((int) (c) ,C_file) \ #define translit_length 10 \ diff --git a/texk/web2c/cwebdir/ctangle.c b/texk/web2c/cwebdir/ctangle.c index a060e8f678..89ad410abf 100644 --- a/texk/web2c/cwebdir/ctangle.c +++ b/texk/web2c/cwebdir/ctangle.c @@ -129,7 +129,7 @@ #define macro_end (cur_text+1) ->tok_start \ #define C_printf(c,a) fprintf(C_file,c,a) -#define C_putc(c) putc((int) (c) ,C_file) \ +#define C_putc(c) fputc((int) (c) ,C_file) \ #define translit_length 10 \ diff --git a/texk/web2c/cwebdir/ctangle.w b/texk/web2c/cwebdir/ctangle.w index 98c1a40f59..005af4817f 100644 --- a/texk/web2c/cwebdir/ctangle.w +++ b/texk/web2c/cwebdir/ctangle.w @@ -580,7 +580,7 @@ static void out_char(eight_bits); @ @d macro_end (cur_text+1)->tok_start /* end of |macro| replacement text */ @# @d C_printf(c,a) fprintf(C_file,c,a) -@d C_putc(c) putc((int)(c),C_file) /* isn't \CEE/ wonderfully consistent? */ +@d C_putc(c) fputc((int)(c),C_file) /* isn't \CEE/ wonderfully consistent? */ @c static void diff --git a/texk/web2c/cwebdir/cweave.w b/texk/web2c/cwebdir/cweave.w index 4391d95c39..a17cfc2b62 100644 --- a/texk/web2c/cwebdir/cweave.w +++ b/texk/web2c/cwebdir/cweave.w @@ -1347,9 +1347,8 @@ carried over to the next line (so that \TEX/ will ignore the completion of commented-out text). @d c_line_write(c) fflush(active_file),fwrite(out_buf+1,sizeof(char),c,active_file) -@d tex_putc(c) putc(c,active_file) -@d tex_new_line() putc('\n',active_file) @d tex_printf(c) fprintf(active_file,"%s",c) +@d tex_putc(c) fputc(c,active_file) @d tex_puts(c) fputs(c,active_file) @= @@ -1367,7 +1366,7 @@ boolean per_cent,boolean carryover) while (j>out_buf && *j==' ') j--; c_line_write(j-out_buf); if (per_cent) tex_putc('%'); - tex_new_line(); out_line++; + tex_putc('\n'); out_line++; if (carryover) while (j>out_buf) if (*j--=='%' && (j==out_buf || *j!='\\')) {