diff options
Diffstat (limited to 'Build/source/texk/detex/detex-2.8-PATCHES/patch-03-warnings')
-rw-r--r-- | Build/source/texk/detex/detex-2.8-PATCHES/patch-03-warnings | 110 |
1 files changed, 103 insertions, 7 deletions
diff --git a/Build/source/texk/detex/detex-2.8-PATCHES/patch-03-warnings b/Build/source/texk/detex/detex-2.8-PATCHES/patch-03-warnings index 8199c855f6f..d3a9f93eab5 100644 --- a/Build/source/texk/detex/detex-2.8-PATCHES/patch-03-warnings +++ b/Build/source/texk/detex/detex-2.8-PATCHES/patch-03-warnings @@ -1,8 +1,79 @@ -Only in detex-2.8: detex.c diff -ur detex-2.8.orig/detex.l detex-2.8/detex.l ---- detex-2.8.orig/detex.l 2010-06-09 22:11:27.000000000 +0200 -+++ detex-2.8/detex.l 2010-06-09 23:21:25.969948651 +0200 -@@ -724,7 +724,7 @@ +--- 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; @@ -11,7 +82,7 @@ diff -ur detex-2.8.orig/detex.l detex-2.8/detex.l *sbList++ = '\0'; } return(sbList && *sbList ? ERROR : csbList); -@@ -769,10 +769,12 @@ +@@ -760,10 +762,12 @@ /* If sbFile ends in .tex then it must be there */ if ((pch = rindex(sbFullPath, '.')) != NULL && (strcmp(pch, ".tex") == 0)) @@ -24,5 +95,30 @@ diff -ur detex-2.8.orig/detex.l detex-2.8/detex.l /* if .<ext> then try to open it. the '.' represents */ /* the beginning of an extension if it is not the first */ -Only in detex-2.8: test.lout -Only in detex-2.8: test.tout +@@ -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); |