diff options
Diffstat (limited to 'Build/source/texk/detex/TLpatches/patch-03-warnings')
-rw-r--r-- | Build/source/texk/detex/TLpatches/patch-03-warnings | 124 |
1 files changed, 0 insertions, 124 deletions
diff --git a/Build/source/texk/detex/TLpatches/patch-03-warnings b/Build/source/texk/detex/TLpatches/patch-03-warnings deleted file mode 100644 index d3a9f93eab5..00000000000 --- a/Build/source/texk/detex/TLpatches/patch-03-warnings +++ /dev/null @@ -1,124 +0,0 @@ -diff -ur detex-2.8.orig/detex.l detex-2.8/detex.l ---- detex-2.8.orig/detex.l 2010-06-11 23:12:06.000000000 +0200 -+++ detex-2.8/detex.l 2010-06-11 23:26:08.554783186 +0200 -@@ -73,18 +73,18 @@ - #define CITE(x) if (fLatex && !fCite) KILLARGS(x) - - void AddInclude(char *sbFile); --void ErrorExit(char *sb1); -+void ErrorExit(const char *sb1); - void IncludeFile(char *sbFile); - void InputFile(char *sbFile); --void SetEnvIgnore(char *sbEnvList); -+void SetEnvIgnore(const char *sbEnvList); - void SetInputPaths(void); --void Warning(char *sb1, char *sb2); --int BeginEnv(char *sbEnv); --int EndEnv(char *sbEnv); -+void Warning(const char *sb1, const char *sb2); -+int BeginEnv(const char *sbEnv); -+int EndEnv(const char *sbEnv); - int InList(char *sbFile); - int SeparateList(char *sbList, char *rgsbList[] ,char chSep, int csbMax); - FILE *TexOpen(char *sbFile); --char *SafeMalloc(int cch, char *sbMessage); -+char *SafeMalloc(int cch, const char *sbMessage); - char *getenv(); - #ifndef NO_MALLOC_DECL - char *malloc(); -@@ -385,7 +385,8 @@ - int - main(int cArgs, char *rgsbArgs[]) - { -- char *pch, *sbEnvList = DEFAULTENV, sbBadOpt[2]; -+ char *pch, sbBadOpt[2]; -+ const char *sbEnvList = DEFAULTENV; - int fSawFile = 0, iArgs = 1; - - /* get base name and decide what we are doing, detex or delatex */ -@@ -530,7 +531,7 @@ - ******/ - - void --SetEnvIgnore(char *sbEnvList) -+SetEnvIgnore(const char *sbEnvList) - { - char *sb; - -@@ -547,7 +548,7 @@ - ******/ - - int --BeginEnv(char *sbEnv) -+BeginEnv(const char *sbEnv) - { - int i; - -@@ -565,7 +566,7 @@ - ******/ - - int --EndEnv(char *sbEnv) -+EndEnv(const char *sbEnv) - { - if (!fLatex) return(0); - if (strcmp(sbEnv, sbCurrentEnv) == 0) -@@ -670,7 +671,8 @@ - void - SetInputPaths(void) - { -- char *sb, *sbPaths; -+ const char *sb; -+ char *sbPaths; - int cchDefaults, cchPaths; - - cchDefaults = strlen(DEFAULTINPUTS); -@@ -715,7 +717,7 @@ - - while (sbList && *sbList && csbList < csbMax) { - rgsbList[csbList++] = sbList; -- if (sbList = index(sbList, chSep)) -+ if ((sbList = index(sbList, chSep))) - *sbList++ = '\0'; - } - return(sbList && *sbList ? ERROR : csbList); -@@ -760,10 +762,12 @@ - /* If sbFile ends in .tex then it must be there */ - if ((pch = rindex(sbFullPath, '.')) != NULL - && (strcmp(pch, ".tex") == 0)) -+ { - if ((fp = fopen(sbFullPath, "r")) != NULL) - return(fp); - else - continue; -+ } - - /* if .<ext> then try to open it. the '.' represents */ - /* the beginning of an extension if it is not the first */ -@@ -792,7 +796,7 @@ - ******/ - - char * --SafeMalloc(int cch, char *sbMessage) -+SafeMalloc(int cch, const char *sbMessage) - { - char *sb; - -@@ -806,7 +810,7 @@ - ******/ - - void --Warning(char *sb1, char *sb2) -+Warning(const char *sb1, const char *sb2) - { - (void)fprintf(stderr, "%s: warning: %s %s\n", sbProgName, sb1, sb2); - } -@@ -817,7 +821,7 @@ - ******/ - - void --ErrorExit(char *sb1) -+ErrorExit(const char *sb1) - { - (void)fflush(stdout); - (void)fprintf(stderr, "%s: error: %s\n", sbProgName, sb1); |