From 35fe6a75176f311bae7b0f9066e535918a6f50ce Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Wed, 12 Jun 2024 08:45:56 +0000 Subject: chktex 1.7.9 git-svn-id: svn://tug.org/texlive/trunk@71501 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/chktex/TLpatches/ChangeLog | 6 +++ Build/source/texk/chktex/TLpatches/TL-Changes | 5 +-- .../texk/chktex/TLpatches/patch-03-late-decl | 44 ++++++++++++++++++++++ 3 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 Build/source/texk/chktex/TLpatches/patch-03-late-decl (limited to 'Build/source/texk/chktex/TLpatches') 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 + + * Import chktex-1.7.9. + * patch-03-late-decl: Revive once more to support old + compilers. + 2022-12-15 Hironobu Yamashita * 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 */ -- cgit v1.2.3