Skip to content

Commit

Permalink
[CTWILL] Compare sections 248 and 296.
Browse files Browse the repository at this point in the history
That's CWEAVE section 231.

git-svn-id: svn://tug.org/texlive/trunk/Build/source@67859 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
Andreas Scherer committed Aug 9, 2023
1 parent a2f4cab commit 10fff1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions texk/web2c/cwebdir/ctwill-w2c.ch
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,6 @@ new_meaning(
name_pointer p)
{
struct perm_meaning *q=get_meaning(p);
ms_mode=false;
if (q->stamp!=section_count) {
if (*(ministring_ptr-1)==' ') ministring_ptr--;
if (ministring_ptr>=ministring_buf_end)
Expand All @@ -1556,7 +1555,8 @@ new_meaning(
name_pointer p=id_lookup(first,loc-1,normal);
sixteen_bits t=title_lookup();
if (*(loc-1)=='}')
while (xisdigit(*loc)) n=10*n+(*loc++)-'0';
while (xisdigit(*loc))@^system dependencies@>
if (n < INT_MAX / 10) n=10*n+(*loc++)-'0';
if (*loc++!=' ')
err_print(_("! Location in meaning should be followed by space"));
else @<Digest the meaning of |p|, |t|, |n|@>@;
Expand Down Expand Up @@ -1782,6 +1782,7 @@ if ((aux_file=fopen(aux_file_name,"wb"))==NULL)
@q Section 31->293. @>
@ @<Write the new meaning to the \.{.aux} file@>=
{@+int n=q->perm.prog_no;
ms_mode=false;@/
fprintf(aux_file,"@@$%.*s %.*s",@|
(int)length(p),p->byte_start,@|
(int)length(title_code[n]),title_code[n]->byte_start);
Expand Down
4 changes: 2 additions & 2 deletions texk/web2c/cwebdir/cweave.w
Original file line number Diff line number Diff line change
Expand Up @@ -4241,8 +4241,8 @@ else {
loc++;
}
else {
for (sec_depth=0; xisdigit(*loc);loc++)@^system dependencies@>
if (sec_depth < INT_MAX / 10) sec_depth = sec_depth*10 + (*loc) -'0';
sec_depth=0; while (xisdigit(*loc))@^system dependencies@>
if (sec_depth < INT_MAX / 10) sec_depth = sec_depth*10 + (*loc++) -'0';
}
while (*loc == ' ') loc++; /* remove spaces before group title */
group_found=true;
Expand Down

0 comments on commit 10fff1d

Please sign in to comment.