Debian Codegraph @

texk/chktex/TLpatches/patch-03-late-decl

raw
1 diff -ur chktex/FindErrs.c chktex-src/FindErrs.c
2 --- chktex/FindErrs.c Sat Apr 27 02:28:46 2024
3 +++ chktex-src/FindErrs.c Wed Jun 12 17:25:32 2024
4 @@ -351,6 +351,7 @@
5
6 EscapePtr = TmpPtr; /* Save it for later */
7 while ((TmpPtr = strstr(TmpPtr, FileSuppDelim))) {
8 + uint64_t errbit;
9 TmpPtr += STRLEN(FileSuppDelim);
10 error = atoi(TmpPtr);
11
12 @@ -358,7 +359,7 @@
13 {
14 PrintPrgErr(pmSuppTooHigh, error, MaxSuppressionBits);
15 }
16 - uint64_t errbit = ((uint64_t)1 << abs(error));
17 + errbit = ((uint64_t)1 << abs(error));
18 if (error > 0)
19 {
20 *(uint64_t *)StkTop(&FileSuppStack) |= errbit;
21 @@ -1133,19 +1134,21 @@
22 * this on the first dash */
23 if (*TmpPtr != '-')
24 {
25 + struct WordList *el;
26 /* PrePtr now points to the beginning of the hyphenated phrase */
27 PrePtr = ++TmpPtr;
28
29 - struct WordList *el = &DashExcpt;
30 + el = &DashExcpt;
31
32 FORWL(i, *el)
33 {
34 + int FoundHyphenDiff;
35 char *e = el->Stack.Data[i];
36 TmpPtr = PrePtr;
37
38 /* Walk through the strings until we find a
39 * mismatch. */
40 - int FoundHyphenDiff = FALSE;
41 + FoundHyphenDiff = FALSE;
42 while (*e && *TmpPtr && *e == *TmpPtr)
43 {
44 /* Skip past characters that are the same */