texlive[67424] Build/source/texk/web2c: [CWEB] Move variables to

commits+ascherer at tug.org commits+ascherer at tug.org
Wed Jun 21 20:29:24 CEST 2023


Revision: 67424
          http://tug.org/svn/texlive?view=revision&revision=67424
Author:   ascherer
Date:     2023-06-21 20:29:23 +0200 (Wed, 21 Jun 2023)
Log Message:
-----------
[CWEB] Move variables to better places

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/ctangleboot.cin
    trunk/Build/source/texk/web2c/cwebboot.cin
    trunk/Build/source/texk/web2c/cwebdir/comm-w2c.ch
    trunk/Build/source/texk/web2c/cwebdir/comm-w2c.h
    trunk/Build/source/texk/web2c/cwebdir/ctwill.bux

Modified: trunk/Build/source/texk/web2c/ctangleboot.cin
===================================================================
--- trunk/Build/source/texk/web2c/ctangleboot.cin	2023-06-21 11:01:56 UTC (rev 67423)
+++ trunk/Build/source/texk/web2c/ctangleboot.cin	2023-06-21 18:29:23 UTC (rev 67424)
@@ -207,7 +207,6 @@
 extern char file_name[][max_file_name_length];
 
 extern char change_file_name[];
-extern char check_file_name[];
 extern char*found_filename;
 extern int line[];
 extern int change_line;
@@ -217,7 +216,7 @@
 extern boolean web_file_open;
 
 /*:7*//*9:*/
-#line 151 "cwebdir/comm-w2c.h"
+#line 150 "cwebdir/comm-w2c.h"
 
 extern sixteen_bits section_count;
 extern boolean changed_section[];
@@ -225,7 +224,7 @@
 extern boolean print_where;
 
 /*:9*//*10:*/
-#line 165 "cwebdir/comm-w2c.h"
+#line 164 "cwebdir/comm-w2c.h"
 
 typedef struct name_info{
 char*byte_start;
@@ -250,12 +249,12 @@
 extern hash_pointer h;
 
 /*:10*//*12:*/
-#line 209 "cwebdir/comm-w2c.h"
+#line 208 "cwebdir/comm-w2c.h"
 
 extern int history;
 
 /*:12*//*14:*/
-#line 226 "cwebdir/comm-w2c.h"
+#line 225 "cwebdir/comm-w2c.h"
 
 extern int argc;
 extern char**argv;
@@ -263,6 +262,7 @@
 extern char tex_file_name[];
 extern char idx_file_name[];
 extern char scn_file_name[];
+extern char check_file_name[];
 extern boolean flags[];
 extern const char*use_language;
 
@@ -388,7 +388,7 @@
 #line 71 "cwebdir/ctangle.w"
 
 /*8:*/
-#line 145 "cwebdir/comm-w2c.h"
+#line 144 "cwebdir/comm-w2c.h"
 
 extern boolean get_line(void);
 extern void check_complete(void);
@@ -395,7 +395,7 @@
 extern void reset_input(void);
 
 /*:8*//*11:*/
-#line 188 "cwebdir/comm-w2c.h"
+#line 187 "cwebdir/comm-w2c.h"
 
 extern boolean names_match(name_pointer,const char*,size_t,eight_bits);
 extern name_pointer id_lookup(const char*,const char*,eight_bits);
@@ -408,7 +408,7 @@
 extern void sprint_section_name(char*,name_pointer);
 
 /*:11*//*13:*/
-#line 212 "cwebdir/comm-w2c.h"
+#line 211 "cwebdir/comm-w2c.h"
 
 extern int wrap_up(void);
 extern void err_print(const char*);

Modified: trunk/Build/source/texk/web2c/cwebboot.cin
===================================================================
--- trunk/Build/source/texk/web2c/cwebboot.cin	2023-06-21 11:01:56 UTC (rev 67423)
+++ trunk/Build/source/texk/web2c/cwebboot.cin	2023-06-21 18:29:23 UTC (rev 67424)
@@ -26,20 +26,20 @@
 #line 72 "cwebdir/comm-w2c.h"
 
 /*:3*//*91:*/
-#line 739 "cwebdir/comm-w2c.ch"
+#line 733 "cwebdir/comm-w2c.ch"
 
 #if HAVE_GETTEXT
 #include <locale.h>  
 #else
-#line 743 "cwebdir/comm-w2c.ch"
+#line 737 "cwebdir/comm-w2c.ch"
 #define setlocale(a,b) ""
 #define bindtextdomain(a,b) ""
 #define textdomain(a) ""
 #endif
-#line 747 "cwebdir/comm-w2c.ch"
+#line 741 "cwebdir/comm-w2c.ch"
 
 /*:91*//*93:*/
-#line 786 "cwebdir/comm-w2c.ch"
+#line 780 "cwebdir/comm-w2c.ch"
 
 #include <kpathsea/kpathsea.h>  
 
@@ -47,7 +47,7 @@
 #include <lib/lib.h>  
 
 /*:93*//*96:*/
-#line 823 "cwebdir/comm-w2c.ch"
+#line 817 "cwebdir/comm-w2c.ch"
 
 #define CWEB
 #include "help.h" 
@@ -213,7 +213,6 @@
 extern char file_name[][max_file_name_length];
 
 extern char change_file_name[];
-extern char check_file_name[];
 extern char*found_filename;
 extern int line[];
 extern int change_line;
@@ -223,7 +222,7 @@
 extern boolean web_file_open;
 
 /*:6*//*8:*/
-#line 151 "cwebdir/comm-w2c.h"
+#line 150 "cwebdir/comm-w2c.h"
 
 extern sixteen_bits section_count;
 extern boolean changed_section[];
@@ -231,7 +230,7 @@
 extern boolean print_where;
 
 /*:8*//*9:*/
-#line 165 "cwebdir/comm-w2c.h"
+#line 164 "cwebdir/comm-w2c.h"
 
 typedef struct name_info{
 char*byte_start;
@@ -256,12 +255,12 @@
 extern hash_pointer h;
 
 /*:9*//*11:*/
-#line 209 "cwebdir/comm-w2c.h"
+#line 208 "cwebdir/comm-w2c.h"
 
 extern int history;
 
 /*:11*//*13:*/
-#line 226 "cwebdir/comm-w2c.h"
+#line 225 "cwebdir/comm-w2c.h"
 
 extern int argc;
 extern char**argv;
@@ -269,6 +268,7 @@
 extern char tex_file_name[];
 extern char idx_file_name[];
 extern char scn_file_name[];
+extern char check_file_name[];
 extern boolean flags[];
 extern const char*use_language;
 
@@ -322,6 +322,8 @@
 char file_name[max_include_depth][max_file_name_length];
 
 char change_file_name[max_file_name_length];
+#line 104 "cwebdir/comm-w2c.ch"
+char*found_filename;
 #line 198 "cwebdir/common.w"
 int line[max_include_depth];
 int change_line;
@@ -379,7 +381,7 @@
 char C_file_name[max_file_name_length];
 char tex_file_name[max_file_name_length];
 char idx_file_name[max_file_name_length];
-#line 447 "cwebdir/comm-w2c.ch"
+#line 448 "cwebdir/comm-w2c.ch"
 char scn_file_name[max_file_name_length];
 char check_file_name[max_file_name_length];
 #line 1133 "cwebdir/common.w"
@@ -391,23 +393,21 @@
 FILE*C_file;
 FILE*tex_file;
 FILE*idx_file;
-#line 577 "cwebdir/comm-w2c.ch"
+#line 578 "cwebdir/comm-w2c.ch"
 FILE*scn_file;
 FILE*check_file;
-#line 584 "cwebdir/comm-w2c.ch"
+#line 1274 "cwebdir/common.w"
 FILE*active_file;
-char*found_filename;
-#line 1275 "cwebdir/common.w"
 
-#line 601 "cwebdir/comm-w2c.ch"
+#line 595 "cwebdir/comm-w2c.ch"
 /*:83*//*86:*/
-#line 629 "cwebdir/comm-w2c.ch"
+#line 623 "cwebdir/comm-w2c.ch"
 
 const char*use_language= "";
 
 
 /*:86*//*87:*/
-#line 642 "cwebdir/comm-w2c.ch"
+#line 636 "cwebdir/comm-w2c.ch"
 
 char cb_banner[max_banner];
 string texmf_locale;
@@ -414,7 +414,7 @@
 #ifndef SEPARATORS
 #define SEPARATORS "://"
 #endif
-#line 648 "cwebdir/comm-w2c.ch"
+#line 642 "cwebdir/comm-w2c.ch"
  char separators[]= SEPARATORS;
 
 /*:87*/
@@ -421,7 +421,7 @@
 #line 66 "cwebdir/common.w"
 
 /*7:*/
-#line 145 "cwebdir/comm-w2c.h"
+#line 144 "cwebdir/comm-w2c.h"
 
 extern boolean get_line(void);
 extern void check_complete(void);
@@ -428,7 +428,7 @@
 extern void reset_input(void);
 
 /*:7*//*10:*/
-#line 188 "cwebdir/comm-w2c.h"
+#line 187 "cwebdir/comm-w2c.h"
 
 extern boolean names_match(name_pointer,const char*,size_t,eight_bits);
 extern name_pointer id_lookup(const char*,const char*,eight_bits);
@@ -441,7 +441,7 @@
 extern void sprint_section_name(char*,name_pointer);
 
 /*:10*//*12:*/
-#line 212 "cwebdir/comm-w2c.h"
+#line 211 "cwebdir/comm-w2c.h"
 
 extern int wrap_up(void);
 extern void err_print(const char*);
@@ -482,9 +482,9 @@
 #line 1186 "cwebdir/common.w"
 static void scan_args(void);
 
-#line 507 "cwebdir/comm-w2c.ch"
+#line 508 "cwebdir/comm-w2c.ch"
 /*:76*//*98:*/
-#line 836 "cwebdir/comm-w2c.ch"
+#line 830 "cwebdir/comm-w2c.ch"
 
 static void cb_usage(const_string str);
 static void cb_usagehelp(const_string*message);
@@ -517,7 +517,7 @@
 #line 78 "cwebdir/comm-w2c.ch"
 
 /*94:*/
-#line 798 "cwebdir/comm-w2c.ch"
+#line 792 "cwebdir/comm-w2c.ch"
 
 kpse_set_program_name(argv[0],"cweb");
 
@@ -526,7 +526,7 @@
 
 #line 85 "cwebdir/comm-w2c.ch"
 /*92:*/
-#line 748 "cwebdir/comm-w2c.ch"
+#line 742 "cwebdir/comm-w2c.ch"
 
 setlocale(LC_MESSAGES,setlocale(LC_CTYPE,""));
 texmf_locale= kpse_var_expand("${TEXMFLOCALEDIR}");
@@ -547,7 +547,7 @@
 /*74:*/
 #line 1139 "cwebdir/common.w"
 
-#line 454 "cwebdir/comm-w2c.ch"
+#line 455 "cwebdir/comm-w2c.ch"
 make_xrefs= true;
 #line 1141 "cwebdir/common.w"
 
@@ -556,12 +556,12 @@
 
 #line 101 "cwebdir/common.w"
 /*84:*/
-#line 601 "cwebdir/comm-w2c.ch"
+#line 595 "cwebdir/comm-w2c.ch"
 
 scan_args();
 if(program==ctangle){
 if(check_for_change)/*88:*/
-#line 659 "cwebdir/comm-w2c.ch"
+#line 653 "cwebdir/comm-w2c.ch"
 {
 if((C_file= fopen(C_file_name,"a"))==NULL)
 fatal(_("! Cannot open output file "),C_file_name);
@@ -578,7 +578,7 @@
 }
 
 /*:88*/
-#line 604 "cwebdir/comm-w2c.ch"
+#line 598 "cwebdir/comm-w2c.ch"
 
 else if((C_file= fopen(C_file_name,"wb"))==NULL)
 fatal(_("! Cannot open output file "),C_file_name);
@@ -586,7 +586,7 @@
 }
 else{
 if(check_for_change)/*89:*/
-#line 674 "cwebdir/comm-w2c.ch"
+#line 668 "cwebdir/comm-w2c.ch"
 {
 if((tex_file= fopen(tex_file_name,"a"))==NULL)
 fatal(_("! Cannot open output file "),tex_file_name);
@@ -603,7 +603,7 @@
 }
 
 /*:89*/
-#line 610 "cwebdir/comm-w2c.ch"
+#line 604 "cwebdir/comm-w2c.ch"
 
 else if((tex_file= fopen(tex_file_name,"wb"))==NULL)
 fatal(_("! Cannot open output file "),tex_file_name);
@@ -610,7 +610,7 @@
 }
 #line 1287 "cwebdir/common.w"
 
-#line 619 "cwebdir/comm-w2c.ch"
+#line 613 "cwebdir/comm-w2c.ch"
 /*:84*/
 #line 101 "cwebdir/common.w"
 
@@ -661,7 +661,7 @@
 if(buffer[1]=='x')break;
 if(buffer[1]=='y'||buffer[1]=='z'||buffer[1]=='i'){
 loc= buffer+2;
-#line 109 "cwebdir/comm-w2c.ch"
+#line 110 "cwebdir/comm-w2c.ch"
 err_print(_("! Missing @x in change file"));
 #line 254 "cwebdir/common.w"
 
@@ -677,7 +677,7 @@
 do{
 change_line++;
 if(!input_ln(change_file)){
-#line 115 "cwebdir/comm-w2c.ch"
+#line 116 "cwebdir/comm-w2c.ch"
 err_print(_("! Change file ended after @x"));
 #line 265 "cwebdir/common.w"
 
@@ -715,7 +715,7 @@
 while(true){
 changing= print_where= true;change_line++;
 if(!input_ln(change_file)){
-#line 121 "cwebdir/comm-w2c.ch"
+#line 122 "cwebdir/comm-w2c.ch"
 err_print(_("! Change file ended before @y"));
 #line 311 "cwebdir/common.w"
 
@@ -728,7 +728,7 @@
 #line 336 "cwebdir/common.w"
 
 if(xyz_code=='x'||xyz_code=='z'){
-#line 133 "cwebdir/comm-w2c.ch"
+#line 134 "cwebdir/comm-w2c.ch"
 loc= buffer+2;err_print(_("! Where is the matching @y?"));
 #line 339 "cwebdir/common.w"
 
@@ -737,7 +737,7 @@
 if(n> 0){
 loc= buffer+2;
 printf("\n! Hmm... %d ",n);
-#line 139 "cwebdir/comm-w2c.ch"
+#line 140 "cwebdir/comm-w2c.ch"
 err_print(_("of the preceding lines failed to match"));
 #line 346 "cwebdir/common.w"
 
@@ -762,7 +762,7 @@
 changing= false;cur_line++;
 while(!input_ln(cur_file)){
 if(include_depth==0){
-#line 127 "cwebdir/comm-w2c.ch"
+#line 128 "cwebdir/comm-w2c.ch"
 err_print(_("! CWEB file ended during a change"));
 #line 325 "cwebdir/common.w"
 
@@ -784,7 +784,7 @@
 /*36:*/
 #line 371 "cwebdir/common.w"
 
-#line 149 "cwebdir/comm-w2c.ch"
+#line 150 "cwebdir/comm-w2c.ch"
 if((found_filename= kpse_find_cweb(web_file_name))==NULL
 ||(web_file= fopen(found_filename,"r"))==NULL)
 fatal(_("! Cannot open input file "),web_file_name);
@@ -799,7 +799,7 @@
 
 
 web_file_open= true;
-#line 165 "cwebdir/comm-w2c.ch"
+#line 166 "cwebdir/comm-w2c.ch"
 if((found_filename= kpse_find_cweb(change_file_name))==NULL
 ||(change_file= fopen(found_filename,"r"))==NULL)
 fatal(_("! Cannot open change file "),change_file_name);
@@ -833,7 +833,7 @@
 {
 change_line++;
 if(!input_ln(change_file)){
-#line 274 "cwebdir/comm-w2c.ch"
+#line 275 "cwebdir/comm-w2c.ch"
 err_print(_("! Change file ended without @z"));
 #line 512 "cwebdir/common.w"
 
@@ -851,7 +851,7 @@
 if(xisupper(buffer[1]))buffer[1]= tolower((int)buffer[1]);
 if(buffer[1]=='x'||buffer[1]=='y'){
 loc= buffer+2;
-#line 280 "cwebdir/comm-w2c.ch"
+#line 281 "cwebdir/comm-w2c.ch"
 err_print(_("! Where is the matching @z?"));
 #line 528 "cwebdir/common.w"
 
@@ -897,7 +897,7 @@
 loc= buffer+2;*limit= '"';
 while(*loc==' '||*loc=='\t')loc++;
 if(loc>=limit){
-#line 180 "cwebdir/comm-w2c.ch"
+#line 181 "cwebdir/comm-w2c.ch"
 err_print(_("! Include file name not given"));
 #line 417 "cwebdir/common.w"
 
@@ -904,7 +904,7 @@
 goto restart;
 }
 if(include_depth>=max_include_depth-1){
-#line 186 "cwebdir/comm-w2c.ch"
+#line 187 "cwebdir/comm-w2c.ch"
 err_print(_("! Too many nested includes"));
 #line 422 "cwebdir/common.w"
 
@@ -914,7 +914,7 @@
 /*39:*/
 #line 445 "cwebdir/common.w"
 {
-#line 223 "cwebdir/comm-w2c.ch"
+#line 224 "cwebdir/comm-w2c.ch"
 char*cur_file_name_end= cur_file_name+max_file_name_length-1;
 char*k= cur_file_name;
 #line 450 "cwebdir/common.w"
@@ -928,7 +928,7 @@
 if(k> cur_file_name_end)too_long();
 
 *k= '\0';
-#line 230 "cwebdir/comm-w2c.ch"
+#line 231 "cwebdir/comm-w2c.ch"
 if((found_filename= kpse_find_cweb(cur_file_name))!=NULL
 &&(cur_file= fopen(found_filename,"r"))!=NULL){
 
@@ -942,7 +942,7 @@
 cur_line= 0;print_where= true;
 goto restart;
 }
-#line 268 "cwebdir/comm-w2c.ch"
+#line 269 "cwebdir/comm-w2c.ch"
 include_depth--;err_print(_("! Cannot open include file"));goto restart;
 #line 489 "cwebdir/common.w"
 }
@@ -954,7 +954,7 @@
 return true;
 }
 
-#line 201 "cwebdir/comm-w2c.ch"
+#line 202 "cwebdir/comm-w2c.ch"
 /*:38*//*42:*/
 #line 540 "cwebdir/common.w"
 
@@ -964,7 +964,7 @@
 strncpy(buffer,change_buffer,(size_t)(change_limit-change_buffer+1));
 limit= buffer+(ptrdiff_t)(change_limit-change_buffer);
 changing= true;change_depth= include_depth;loc= buffer;
-#line 286 "cwebdir/comm-w2c.ch"
+#line 287 "cwebdir/comm-w2c.ch"
 err_print(_("! Change file entry did not match"));
 #line 548 "cwebdir/common.w"
 
@@ -1012,7 +1012,7 @@
 if(p==name_ptr)/*51:*/
 #line 676 "cwebdir/common.w"
 {
-#line 299 "cwebdir/comm-w2c.ch"
+#line 300 "cwebdir/comm-w2c.ch"
 if(byte_ptr+l> byte_mem_end)overflow(_("byte memory"));
 if(name_ptr>=name_dir_end)overflow(_("name"));
 #line 679 "cwebdir/common.w"
@@ -1111,7 +1111,7 @@
 name_pointer p= name_ptr;
 char*s= first_chunk(p);
 size_t name_len= (size_t)(last-first+(int)ispref);
-#line 307 "cwebdir/comm-w2c.ch"
+#line 308 "cwebdir/comm-w2c.ch"
 if(s+name_len> byte_mem_end)overflow(_("byte memory"));
 if(name_ptr+1>=name_dir_end)overflow(_("name"));
 #line 812 "cwebdir/common.w"
@@ -1142,7 +1142,7 @@
 char*s;
 name_pointer q= p+1;
 size_t name_len= (size_t)(last-first+(int)ispref);
-#line 314 "cwebdir/comm-w2c.ch"
+#line 315 "cwebdir/comm-w2c.ch"
 if(name_ptr>=name_dir_end)overflow(_("name"));
 #line 838 "cwebdir/common.w"
 while(q->link!=name_dir)q= q->link;
@@ -1149,7 +1149,7 @@
 q->link= name_ptr;
 s= name_ptr->byte_start;
 name_ptr->link= name_dir;
-#line 320 "cwebdir/comm-w2c.ch"
+#line 321 "cwebdir/comm-w2c.ch"
 if(s+name_len> byte_mem_end)overflow(_("byte memory"));
 #line 843 "cwebdir/common.w"
 (++name_ptr)->byte_start= byte_ptr= s+name_len;
@@ -1183,12 +1183,12 @@
 p= (c==less?p->llink:p->rlink);
 }else{
 if(r!=NULL){
-#line 326 "cwebdir/comm-w2c.ch"
+#line 327 "cwebdir/comm-w2c.ch"
 fputs(_("\n! Ambiguous prefix: matches <"),stdout);
 #line 888 "cwebdir/common.w"
 
 print_prefix_name(p);
-#line 332 "cwebdir/comm-w2c.ch"
+#line 333 "cwebdir/comm-w2c.ch"
 fputs(_(">\n and <"),stdout);
 #line 891 "cwebdir/common.w"
 print_prefix_name(r);
@@ -1222,7 +1222,7 @@
 
 case prefix:
 if(!ispref){
-#line 338 "cwebdir/comm-w2c.ch"
+#line 339 "cwebdir/comm-w2c.ch"
 fputs(_("\n! New name is a prefix of <"),stdout);
 #line 917 "cwebdir/common.w"
 
@@ -1236,7 +1236,7 @@
 extend_section_name(r,first,last+1,ispref);
 break;
 case bad_extension:
-#line 344 "cwebdir/comm-w2c.ch"
+#line 345 "cwebdir/comm-w2c.ch"
 fputs(_("\n! New name extends <"),stdout);
 #line 929 "cwebdir/common.w"
 
@@ -1244,12 +1244,12 @@
 err_print(">");
 break;
 default:
-#line 350 "cwebdir/comm-w2c.ch"
+#line 351 "cwebdir/comm-w2c.ch"
 fputs(_("\n! Section name incompatible with <"),stdout);
 #line 935 "cwebdir/common.w"
 
 print_prefix_name(r);
-#line 356 "cwebdir/comm-w2c.ch"
+#line 357 "cwebdir/comm-w2c.ch"
 fputs(_(">,\n which abbreviates <"),stdout);
 #line 938 "cwebdir/common.w"
 print_section_name(r);
@@ -1309,7 +1309,7 @@
 
 {char*k,*l;
 if(changing&&include_depth==change_depth)
-#line 364 "cwebdir/comm-w2c.ch"
+#line 365 "cwebdir/comm-w2c.ch"
 printf(_(". (l. %d of change file)\n"),change_line);
 else if(include_depth==0)printf(_(". (l. %d)\n"),cur_line);
 else printf(_(". (l. %d of include file %s)\n"),cur_line,cur_file_name);
@@ -1340,12 +1340,12 @@
 if(show_progress)new_line;
 if(show_stats)
 print_stats();
-#line 394 "cwebdir/comm-w2c.ch"
+#line 395 "cwebdir/comm-w2c.ch"
 /*69:*/
 #line 1075 "cwebdir/common.w"
 
 switch(history){
-#line 420 "cwebdir/comm-w2c.ch"
+#line 421 "cwebdir/comm-w2c.ch"
 case spotless:
 if(show_happiness)puts(_("(No errors were found.)"));break;
 case harmless_message:
@@ -1358,10 +1358,10 @@
 }
 
 /*:69*/
-#line 394 "cwebdir/comm-w2c.ch"
+#line 395 "cwebdir/comm-w2c.ch"
 
 /*90:*/
-#line 692 "cwebdir/comm-w2c.ch"
+#line 686 "cwebdir/comm-w2c.ch"
 
 if(C_file)fclose(C_file);
 if(tex_file)fclose(tex_file);
@@ -1370,9 +1370,9 @@
 remove(check_file_name);
 
 /*:90*/
-#line 395 "cwebdir/comm-w2c.ch"
+#line 396 "cwebdir/comm-w2c.ch"
 
-#line 402 "cwebdir/comm-w2c.ch"
+#line 403 "cwebdir/comm-w2c.ch"
 switch(history){
 case spotless:return RETURN_OK;
 case harmless_message:return RETURN_WARN;
@@ -1399,7 +1399,7 @@
 overflow(
 const char*t)
 {
-#line 433 "cwebdir/comm-w2c.ch"
+#line 434 "cwebdir/comm-w2c.ch"
 printf(_("\n! Sorry, %s capacity exceeded"),t);fatal("","");
 #line 1109 "cwebdir/common.w"
 }
@@ -1417,17 +1417,17 @@
 boolean found_web= false,found_change= false,found_out= false;
 
 
-#line 477 "cwebdir/comm-w2c.ch"
+#line 478 "cwebdir/comm-w2c.ch"
 strcpy(change_file_name,"/dev/null");
 #if defined DEV_NULL
 strncpy(change_file_name,DEV_NULL,max_file_name_length-2);
 change_file_name[max_file_name_length-2]= '\0';
 #elif defined _DEV_NULL
-#line 482 "cwebdir/comm-w2c.ch"
+#line 483 "cwebdir/comm-w2c.ch"
  strncpy(change_file_name,_DEV_NULL,max_file_name_length-2);
 change_file_name[max_file_name_length-2]= '\0';
 #endif
-#line 485 "cwebdir/comm-w2c.ch"
+#line 486 "cwebdir/comm-w2c.ch"
 
 #line 1168 "cwebdir/common.w"
  while(--argc> 0){
@@ -1434,12 +1434,12 @@
 if((**(++argv)=='-'||**argv=='+')&&*(*argv+1))/*80:*/
 #line 1247 "cwebdir/common.w"
 
-#line 520 "cwebdir/comm-w2c.ch"
+#line 521 "cwebdir/comm-w2c.ch"
 {
 if(strcmp("-help",*argv)==0||strcmp("--help",*argv)==0)
 
 /*97:*/
-#line 827 "cwebdir/comm-w2c.ch"
+#line 821 "cwebdir/comm-w2c.ch"
 
 cb_usagehelp(program==ctangle?CTANGLEHELP:
 program==cweave?CWEAVEHELP:CTWILLHELP);
@@ -1446,12 +1446,12 @@
 
 
 /*:97*/
-#line 523 "cwebdir/comm-w2c.ch"
+#line 524 "cwebdir/comm-w2c.ch"
 
 if(strcmp("-version",*argv)==0||strcmp("--version",*argv)==0)
 
 /*100:*/
-#line 873 "cwebdir/comm-w2c.ch"
+#line 867 "cwebdir/comm-w2c.ch"
 
 printversionandexit(cb_banner,
 program==ctwill?"Donald E. Knuth":"Silvio Levy and Donald E. Knuth",
@@ -1459,7 +1459,7 @@
 
 
 /*:100*/
-#line 526 "cwebdir/comm-w2c.ch"
+#line 527 "cwebdir/comm-w2c.ch"
 
 if(strcmp("-verbose",*argv)==0||strcmp("--verbose",*argv)==0)
 
@@ -1473,15 +1473,15 @@
 case'q':show_banner= show_progress= show_happiness= false;continue;
 case'd':
 if(sscanf(++dot_pos,"%u",&kpathsea_debug)!=1)/*81:*/
-#line 563 "cwebdir/comm-w2c.ch"
+#line 564 "cwebdir/comm-w2c.ch"
 
 cb_usage(program==ctangle?"ctangle":program==cweave?"cweave":"ctwill");
 
 #line 1262 "cwebdir/common.w"
 
-#line 571 "cwebdir/comm-w2c.ch"
+#line 572 "cwebdir/comm-w2c.ch"
 /*:81*/
-#line 538 "cwebdir/comm-w2c.ch"
+#line 539 "cwebdir/comm-w2c.ch"
 
 while(isdigit(*dot_pos))dot_pos++;
 dot_pos--;
@@ -1494,13 +1494,13 @@
 }
 #line 1250 "cwebdir/common.w"
 
-#line 563 "cwebdir/comm-w2c.ch"
+#line 564 "cwebdir/comm-w2c.ch"
 /*:80*/
 #line 1169 "cwebdir/common.w"
 
 else{
 s= name_pos= *argv;dot_pos= NULL;
-#line 494 "cwebdir/comm-w2c.ch"
+#line 495 "cwebdir/comm-w2c.ch"
 while(*s)
 if(*s=='.')dot_pos= s++;
 else if(*s==DIR_SEPARATOR||*s==DEVICE_SEPARATOR||*s=='/')
@@ -1514,7 +1514,7 @@
 {
 if(s-*argv> max_file_name_length-5)
 /*82:*/
-#line 571 "cwebdir/comm-w2c.ch"
+#line 572 "cwebdir/comm-w2c.ch"
 fatal(_("! Filename too long\n"),*argv);
 #line 1264 "cwebdir/common.w"
 
@@ -1546,7 +1546,7 @@
 if(strcmp(*argv,"-")!=0){
 if(s-*argv> max_file_name_length-4)
 /*82:*/
-#line 571 "cwebdir/comm-w2c.ch"
+#line 572 "cwebdir/comm-w2c.ch"
 fatal(_("! Filename too long\n"),*argv);
 #line 1264 "cwebdir/common.w"
 
@@ -1570,7 +1570,7 @@
 {
 if(s-*argv> max_file_name_length-5)
 /*82:*/
-#line 571 "cwebdir/comm-w2c.ch"
+#line 572 "cwebdir/comm-w2c.ch"
 fatal(_("! Filename too long\n"),*argv);
 #line 1264 "cwebdir/common.w"
 
@@ -1599,13 +1599,13 @@
 #line 1179 "cwebdir/common.w"
 
 else/*81:*/
-#line 563 "cwebdir/comm-w2c.ch"
+#line 564 "cwebdir/comm-w2c.ch"
 
 cb_usage(program==ctangle?"ctangle":program==cweave?"cweave":"ctwill");
 
 #line 1262 "cwebdir/common.w"
 
-#line 571 "cwebdir/comm-w2c.ch"
+#line 572 "cwebdir/comm-w2c.ch"
 /*:81*/
 #line 1180 "cwebdir/common.w"
 
@@ -1612,13 +1612,13 @@
 }
 }
 if(!found_web)/*81:*/
-#line 563 "cwebdir/comm-w2c.ch"
+#line 564 "cwebdir/comm-w2c.ch"
 
 cb_usage(program==ctangle?"ctangle":program==cweave?"cweave":"ctwill");
 
 #line 1262 "cwebdir/common.w"
 
-#line 571 "cwebdir/comm-w2c.ch"
+#line 572 "cwebdir/comm-w2c.ch"
 /*:81*/
 #line 1183 "cwebdir/common.w"
 
@@ -1625,7 +1625,7 @@
 }
 
 /*:75*//*99:*/
-#line 840 "cwebdir/comm-w2c.ch"
+#line 834 "cwebdir/comm-w2c.ch"
 
 static void cb_usage(const_string str)
 {
@@ -1657,7 +1657,7 @@
 }
 
 /*:99*//*101:*/
-#line 881 "cwebdir/comm-w2c.ch"
+#line 875 "cwebdir/comm-w2c.ch"
 
 void cb_show_banner(void)
 {

Modified: trunk/Build/source/texk/web2c/cwebdir/comm-w2c.ch
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/comm-w2c.ch	2023-06-21 11:01:56 UTC (rev 67423)
+++ trunk/Build/source/texk/web2c/cwebdir/comm-w2c.ch	2023-06-21 18:29:23 UTC (rev 67424)
@@ -101,6 +101,7 @@
 @x
 static char alt_web_file_name[max_file_name_length]; /* alternate name to try */
 @y
+char *found_filename; /* filename found by |kpse_find_file| */
 @z
 
 @x
@@ -579,13 +580,6 @@
 @z
 
 @x
-FILE *active_file; /* currently active file for \.{CWEAVE} output */
- at y
-FILE *active_file; /* currently active file for \.{CWEAVE} output */
-char *found_filename; /* filename found by |kpse_find_file| */
- at z
-
- at x
 @ @<Scan arguments and open output files@>=
 scan_args();
 if (program==ctangle) {

Modified: trunk/Build/source/texk/web2c/cwebdir/comm-w2c.h
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/comm-w2c.h	2023-06-21 11:01:56 UTC (rev 67423)
+++ trunk/Build/source/texk/web2c/cwebdir/comm-w2c.h	2023-06-21 18:29:23 UTC (rev 67424)
@@ -133,7 +133,6 @@
 extern char file_name[][max_file_name_length];
   /* stack of non-change file names */
 extern char change_file_name[]; /* name of change file */
-extern char check_file_name[]; /* name of |check_file| */
 extern char *found_filename; /* filename found by |kpse_find_file| */
 extern int line[]; /* number of current line in the stacked files */
 extern int change_line; /* number of current line in change file */
@@ -230,6 +229,7 @@
 extern char tex_file_name[]; /* name of |tex_file| */
 extern char idx_file_name[]; /* name of |idx_file| */
 extern char scn_file_name[]; /* name of |scn_file| */
+extern char check_file_name[]; /* name of |check_file| */
 extern boolean flags[]; /* an option for each 7-bit code */
 extern const char *use_language; /* prefix to \.{cwebmac.tex} in \TEX/ output */
 

Modified: trunk/Build/source/texk/web2c/cwebdir/ctwill.bux
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ctwill.bux	2023-06-21 11:01:56 UTC (rev 67423)
+++ trunk/Build/source/texk/web2c/cwebdir/ctwill.bux	2023-06-21 18:29:23 UTC (rev 67424)
@@ -19,6 +19,7 @@
 @$change_file {COMMON.W}25 \&{FILE} ${*}$@>
 @$file_name {COMMON.W}25 \&{char} [\,][\,]@>
 @$change_file_name {COMMON.W}25 \&{char} [\,]@>
+@$found_filename {COMMON.W}25 \&{char} ${*}$@>
 @$line {COMMON.W}25 \&{int} [\,]@>
 @$change_line {COMMON.W}25 \&{int}@>
 @$change_depth {COMMON.W}25 \&{int}@>
@@ -79,7 +80,6 @@
 @$scn_file {COMMON.W}83 \&{FILE} ${*}$@>
 @$check_file {COMMON.W}83 \&{FILE} ${*}$@>
 @$active_file {COMMON.W}83 \&{FILE} ${*}$@>
-@$found_filename {COMMON.W}83 \&{char} ${*}$@>
 
 @$use_language {COMMON.W}86 \&{const char} ${*}$@>
 



More information about the tex-live-commits mailing list.