Skip to content

Commit

Permalink
[CWEB] End the last change with out_mode==post.
Browse files Browse the repository at this point in the history
git-svn-id: svn://tug.org/texlive/trunk/Build/source@67180 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
Andreas Scherer committed May 21, 2023
1 parent 1fc5b52 commit a0ef997
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions texk/web2c/ctiedir/ctie-k.ch
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,10 @@ e_of_ch_preamble (file_index i)
if (out_mode==post) /* last line has been changed */
fprintf(out_file, "@@z\n");
@y
if (out_mode==pre) /* last line has been deleted */
fprintf(out_file, "@@y\n"), out_mode=post;
if (out_mode==post) /* last line has been changed */
fprintf(out_file, "@@z\n");
else if (out_mode==pre) /* last line has been deleted */
fprintf(out_file, "@@y\n@@z\n");
@z

@x l.1106
Expand Down
10 changes: 4 additions & 6 deletions texk/web2c/tiedir/tie-w2c.ch
Original file line number Diff line number Diff line change
Expand Up @@ -418,13 +418,11 @@ if (out_mode==post) { /* last line has been changed */
new_line(out_file);
}
@y
if (out_mode==post) { /* last line has been changed */
fputc(map_xchr(@'@@'),out_file); fputc(map_xchr(@'z'),out_file);
new_line(out_file);
}
else if (out_mode==pre) { /* last line has been deleted */
if (out_mode==pre) { /* last line has been deleted */
fputc(map_xchr(@'@@'),out_file); fputc(map_xchr(@'y'),out_file);
new_line(out_file);
new_line(out_file); out_mode=post;
}
if (out_mode==post) { /* last line has been changed */
fputc(map_xchr(@'@@'),out_file); fputc(map_xchr(@'z'),out_file);
new_line(out_file);
}
Expand Down

0 comments on commit a0ef997

Please sign in to comment.