diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2023-07-30 12:49:13 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2023-07-30 12:49:13 +0000 |
commit | 2ae9f9dc77dec7444449b4b8eed5f4e2fa2195eb (patch) | |
tree | 6e59c8c9b3afa23979aa4d1b4a7c181092092752 /Build/source/texk/web2c/cwebdir/ctangle.c | |
parent | 5ce78faf6628395159a735c7b50c758a4f36ee27 (diff) |
[CWEB] Straighten 'byte_start' arithmetic."
git-svn-id: svn://tug.org/texlive/trunk@67770 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/cwebdir/ctangle.c')
-rw-r--r-- | Build/source/texk/web2c/cwebdir/ctangle.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ctangle.c b/Build/source/texk/web2c/cwebdir/ctangle.c index a7ec5e28aba..9a123acec39 100644 --- a/Build/source/texk/web2c/cwebdir/ctangle.c +++ b/Build/source/texk/web2c/cwebdir/ctangle.c @@ -777,7 +777,7 @@ static void out_char( eight_bits cur_char) { -char*j,*k; +char*j; restart: switch(cur_char){ case'\n':if(protect&&out_state!=verbatim)C_putc(' '); @@ -788,8 +788,8 @@ flush_buffer();if(out_state!=verbatim)out_state= normal;break; case identifier: if(out_state==num_or_id)C_putc(' '); -for(j= (cur_val+name_dir)->byte_start,k= (cur_val+name_dir+1)->byte_start; -j<k;j++) +for(j= (cur_val+name_dir)->byte_start; +j<(cur_val+name_dir+1)->byte_start;j++) if((eight_bits)(*j)<0200)C_putc(*j); else C_printf("%s",translit[(eight_bits)(*j)-0200]); @@ -816,8 +816,8 @@ C_printf("\n#line %d \"",(int)a); cur_val= (int)(*cur_byte++-0200)*0400; cur_val+= *cur_byte++; -for(j= (cur_val+name_dir)->byte_start,k= (cur_val+name_dir+1)->byte_start; -j<k;j++){ +for(j= (cur_val+name_dir)->byte_start; +j<(cur_val+name_dir+1)->byte_start;j++){ if(*j=='\\'||*j=='"')C_putc('\\'); C_putc(*j); } |