diff options
Diffstat (limited to 'Build/source/texk/chktex/TLpatches/patch-03-late-decl')
-rw-r--r-- | Build/source/texk/chktex/TLpatches/patch-03-late-decl | 44 |
1 files changed, 44 insertions, 0 deletions
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 */ |