Skip to content

Commit

Permalink
[CWEB] Clean up.
Browse files Browse the repository at this point in the history
git-svn-id: svn://tug.org/texlive/trunk/Build/source@67420 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
Andreas Scherer committed Jun 20, 2023
1 parent f634e53 commit e312fa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions texk/web2c/cwebdir/ctwill-w2c.ch
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,7 @@ strcat(aux_file_name,".bux");
include_depth=1; /* we simulate \.{@@i} */
strcpy(cur_file_name,aux_file_name); /* first in, third out */
if ( (found_filename = kpse_find_cweb(cur_file_name)) @|
&& ((cur_file=fopen(found_filename,"r"))) ) {
&& (cur_file=fopen(found_filename,"r")) ) {
@<Set up |cur_file_name| for opened |cur_file|@>@;
cur_line=0; include_depth++;
}
Expand All @@ -1798,7 +1798,7 @@ strcpy(cur_file_name,aux_file_name); /* second in, second out */
if ((cur_file=fopen(cur_file_name,"r"))) { cur_line=0; include_depth++; }
strcpy(cur_file_name,"system.bux"); /* third in, first out */
if ( (found_filename = kpse_find_cweb(cur_file_name)) @|
&& ((cur_file=fopen(found_filename,"r"))) ) {
&& (cur_file=fopen(found_filename,"r")) ) {
@<Set up |cur_file_name| for opened |cur_file|@>@;
cur_line=0;
}
Expand Down Expand Up @@ -2078,8 +2078,8 @@ if (strlen(found_filename) < max_file_name_length) {
if (strcmp(cur_file_name,found_filename)) {
strcpy(cur_file_name,found_filename + @|
((strncmp(found_filename,"./",2)==0) ? 2 : 0)); /* Strip path prefix */
free(found_filename);
}
free(found_filename);
}@+else fatal(_("! Filename too long\n"), found_filename);

@** Index.
Expand Down

0 comments on commit e312fa2

Please sign in to comment.