Skip to content

Commit

Permalink
[CWEB] Fix last commit.
Browse files Browse the repository at this point in the history
Ouch, my bad! 'break' jumps out of the 'for' loop, not out of the
'switch' group. :o)

git-svn-id: svn://tug.org/texlive/trunk/Build/source@67649 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
Andreas Scherer committed Jul 16, 2023
1 parent 872064b commit 17dacaa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
10 changes: 1 addition & 9 deletions texk/web2c/cwebdir/ctwill-mini.ch
Original file line number Diff line number Diff line change
Expand Up @@ -1947,15 +1947,7 @@ Section 279.
@x
cur_name=sort_ptr->head;
@y
@+cur_name=sort_ptr->head;@/
@z
Section 280.
@x
if (xislower(*j)) { out_str("\\\\");@+ break; }
@y
if (xislower(*j)) { out_str("\\\\");@+ break;@+ }
cur_name=sort_ptr->head;@/
@z
Section 285.
Expand Down
10 changes: 5 additions & 5 deletions texk/web2c/cwebdir/ctwill-w2c.ch
Original file line number Diff line number Diff line change
Expand Up @@ -1246,9 +1246,9 @@ switch (cur_name->ilk) {
@z

@x
else {
else {@+boolean all_caps=true;@+@t}\6{@>
@y
else {@+char *j;@+@t}\6{@>
else {@+boolean all_caps=true;@+char *j;@+@t}\6{@>
@z

@x
Expand Down Expand Up @@ -1877,10 +1877,10 @@ out_mini(
switch (cur_name->ilk) {@+char *j;@+@t}\6{\4@>
case normal: case func_template:
if (is_tiny(cur_name)) out_str("\\|");
else {
else {@+boolean all_caps=true;@+@t}\6{@>
for (j=cur_name->byte_start;j<(cur_name+1)->byte_start;j++)
if (xislower(*j)) { out_str("\\\\");@+ break; }
out_str("\\."); /* \.{UPPERCASE} */
if (xislower(*j)) all_caps=false;
out_str(all_caps ? "\\." : "\\\\");
}
break;
@.\\|@>
Expand Down
6 changes: 3 additions & 3 deletions texk/web2c/cwebdir/cweave.w
Original file line number Diff line number Diff line change
Expand Up @@ -4772,10 +4772,10 @@ while (sort_ptr>scrap_info) {
switch (cur_name->ilk) {@+char *j;@+@t}\6{\4@>
case normal: case func_template:
if (is_tiny(cur_name)) out_str("\\|");
else {
else {@+boolean all_caps=true;@+@t}\6{@>
for (j=cur_name->byte_start;j<(cur_name+1)->byte_start;j++)
if (xislower(*j)) { out_str("\\\\");@+ break; }
out_str("\\."); /* \.{UPPERCASE} */
if (xislower(*j)) all_caps=false;
out_str(all_caps ? "\\." : "\\\\");
}
break;
@.\\|@>
Expand Down

0 comments on commit 17dacaa

Please sign in to comment.