summaryrefslogtreecommitdiff
path: root/Build/source/texk/chktex/TLpatches
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2024-06-12 08:45:56 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2024-06-12 08:45:56 +0000
commit35fe6a75176f311bae7b0f9066e535918a6f50ce (patch)
treed7a90db518f296d637c9ee1e3fdbfaa736a03f89 /Build/source/texk/chktex/TLpatches
parent16b87915991b89420c4daacbf42e2e30137f0f9a (diff)
chktex 1.7.9
git-svn-id: svn://tug.org/texlive/trunk@71501 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/chktex/TLpatches')
-rw-r--r--Build/source/texk/chktex/TLpatches/ChangeLog6
-rw-r--r--Build/source/texk/chktex/TLpatches/TL-Changes5
-rw-r--r--Build/source/texk/chktex/TLpatches/patch-03-late-decl44
3 files changed, 52 insertions, 3 deletions
diff --git a/Build/source/texk/chktex/TLpatches/ChangeLog b/Build/source/texk/chktex/TLpatches/ChangeLog
index 79ef79c976a..a59bfa0bc56 100644
--- a/Build/source/texk/chktex/TLpatches/ChangeLog
+++ b/Build/source/texk/chktex/TLpatches/ChangeLog
@@ -1,3 +1,9 @@
+2024-06-12 Akira Kakuto <kakuto@jcom.zaq.ne.jp>
+
+ * Import chktex-1.7.9.
+ * patch-03-late-decl: Revive once more to support old
+ compilers.
+
2022-12-15 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
* Import chktex-1.7.8.
diff --git a/Build/source/texk/chktex/TLpatches/TL-Changes b/Build/source/texk/chktex/TLpatches/TL-Changes
index 9c4a3c5de47..0bb7c465ea6 100644
--- a/Build/source/texk/chktex/TLpatches/TL-Changes
+++ b/Build/source/texk/chktex/TLpatches/TL-Changes
@@ -1,6 +1,5 @@
-Changes applied to the chktex-1.7.8 tree as obtained from:
- http://mirror.ctan.org/support/chktex/
- http://download.savannah.gnu.org/releases/chktex/chktex-1.7.8.tar.gz
+Changes applied to the chktex-1.7.9 tree as obtained from:
+ http://mirror.ctan.org/support/chktex.zip
Remove:
aclocal.m4
diff --git a/Build/source/texk/chktex/TLpatches/patch-03-late-decl b/Build/source/texk/chktex/TLpatches/patch-03-late-decl
new file mode 100644
index 00000000000..4aade28192d
--- /dev/null
+++ b/Build/source/texk/chktex/TLpatches/patch-03-late-decl
@@ -0,0 +1,44 @@
+diff -ur chktex/FindErrs.c chktex-src/FindErrs.c
+--- chktex/FindErrs.c Sat Apr 27 02:28:46 2024
++++ chktex-src/FindErrs.c Wed Jun 12 17:25:32 2024
+@@ -351,6 +351,7 @@
+
+ EscapePtr = TmpPtr; /* Save it for later */
+ while ((TmpPtr = strstr(TmpPtr, FileSuppDelim))) {
++ uint64_t errbit;
+ TmpPtr += STRLEN(FileSuppDelim);
+ error = atoi(TmpPtr);
+
+@@ -358,7 +359,7 @@
+ {
+ PrintPrgErr(pmSuppTooHigh, error, MaxSuppressionBits);
+ }
+- uint64_t errbit = ((uint64_t)1 << abs(error));
++ errbit = ((uint64_t)1 << abs(error));
+ if (error > 0)
+ {
+ *(uint64_t *)StkTop(&FileSuppStack) |= errbit;
+@@ -1133,19 +1134,21 @@
+ * this on the first dash */
+ if (*TmpPtr != '-')
+ {
++ struct WordList *el;
+ /* PrePtr now points to the beginning of the hyphenated phrase */
+ PrePtr = ++TmpPtr;
+
+- struct WordList *el = &DashExcpt;
++ el = &DashExcpt;
+
+ FORWL(i, *el)
+ {
++ int FoundHyphenDiff;
+ char *e = el->Stack.Data[i];
+ TmpPtr = PrePtr;
+
+ /* Walk through the strings until we find a
+ * mismatch. */
+- int FoundHyphenDiff = FALSE;
++ FoundHyphenDiff = FALSE;
+ while (*e && *TmpPtr && *e == *TmpPtr)
+ {
+ /* Skip past characters that are the same */