diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2022-02-18 15:05:01 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2022-02-18 15:05:01 +0000 |
commit | a08701547a59868dd82bab32735f7c56d2636370 (patch) | |
tree | 62fb36019157e66b07ebe7c4bf9f953811911cf6 /Build/source/texk/web2c/cwebboot.cin | |
parent | 316ad31f72ca37c485f1261b13d3fee400359163 (diff) |
[CWEB] Avoid preprocessor calamities.
Trying to fix all loopholes in weird stuff like
https://github.com/ascherer/cweb/blob/cweb-4.8-dev/if.w
by repeating '#line' directives after all '#elif', '#else',
and '#endif' preprocessor statements. In almost all cases
this information is redundant, but in the past years people
have come up with the idea to jump to '@<code sections@>'
in '#if' blocks.
git-svn-id: svn://tug.org/texlive/trunk@62066 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/cwebboot.cin')
-rw-r--r-- | Build/source/texk/web2c/cwebboot.cin | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/Build/source/texk/web2c/cwebboot.cin b/Build/source/texk/web2c/cwebboot.cin index c8d9ecc3ea0..ebf5f2c7c58 100644 --- a/Build/source/texk/web2c/cwebboot.cin +++ b/Build/source/texk/web2c/cwebboot.cin @@ -15,16 +15,15 @@ #ifndef HAVE_GETTEXT #define HAVE_GETTEXT 0 #endif -#line 65 "cwebdir/comm-w2c.h" - +#line 66 "cwebdir/comm-w2c.h" #if HAVE_GETTEXT #include <libintl.h> #else +#line 70 "cwebdir/comm-w2c.h" #define gettext(a) a #endif -#line 71 "cwebdir/comm-w2c.h" - +#line 72 "cwebdir/comm-w2c.h" /*:3*//*91:*/ #line 739 "cwebdir/comm-w2c.ch" @@ -32,12 +31,12 @@ #if HAVE_GETTEXT #include <locale.h> #else +#line 743 "cwebdir/comm-w2c.ch" #define setlocale(a,b) "" #define bindtextdomain(a,b) "" #define textdomain(a) "" #endif -#line 746 "cwebdir/comm-w2c.ch" - +#line 747 "cwebdir/comm-w2c.ch" /*:91*//*93:*/ #line 786 "cwebdir/comm-w2c.ch" @@ -414,9 +413,8 @@ string texmf_locale; #ifndef SEPARATORS #define SEPARATORS "://" #endif -#line 647 "cwebdir/comm-w2c.ch" - -char separators[]= SEPARATORS; +#line 648 "cwebdir/comm-w2c.ch" + char separators[]= SEPARATORS; /*:87*/ #line 66 "cwebdir/common.w" @@ -1424,14 +1422,14 @@ strcpy(change_file_name,"/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 -strncpy(change_file_name,_DEV_NULL,max_file_name_length-2); +#line 482 "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 484 "cwebdir/comm-w2c.ch" - +#line 485 "cwebdir/comm-w2c.ch" #line 1168 "cwebdir/common.w" -while(--argc> 0){ + while(--argc> 0){ if((**(++argv)=='-'||**argv=='+')&&*(*argv+1))/*80:*/ #line 1247 "cwebdir/common.w" |