summaryrefslogtreecommitdiff
path: root/Build/source/texk/chktex/chktex-1.7.1-PATCHES/patch-13-char
blob: 261a22c069c704fd0b3f6920ebfd09521accc14d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
	Modify a function parameter and a few local variables
	int => char in order to avois MSVC warnings.

	Replace 'char const' => 'const char'.

diff -ur chktex-1.7.1.orig/FindErrs.c chktex-1.7.1/FindErrs.c
--- chktex-1.7.1.orig/FindErrs.c	2012-10-22 10:34:58.000000000 +0200
+++ chktex-1.7.1/FindErrs.c	2012-10-22 20:53:21.000000000 +0200
@@ -1027,11 +1027,11 @@
  *
  */
 
-static void HandleBracket(int Char)
+static void HandleBracket(char Char)
 {
     unsigned long BrOffset;     /* Offset into BrOrder array */
     struct ErrInfo *ei;
-    int TmpC, Match;
+    char TmpC, Match;
     char ABuf[2], BBuf[2];
     char *TmpPtr;
 
@@ -1235,7 +1235,7 @@
     char *TmpPtr;               /* Temporary pointer */
     char *ErrPtr;               /* Ptr to where an error started */
 
-    int TmpC,                   /* Just a temp var used throughout the proc. */
+    char TmpC,                  /* Just a temp var used throughout the proc. */
       MatchC, Char;             /* Char. currently processed */
     unsigned long CmdLen;       /* Length of misc. things */
     int MixingQuotes;
diff -ur chktex-1.7.1.orig/Utility.h chktex-1.7.1/Utility.h
--- chktex-1.7.1.orig/Utility.h	2012-08-04 18:40:33.000000000 +0200
+++ chktex-1.7.1/Utility.h	2012-10-22 20:53:20.707448783 +0200
@@ -150,9 +150,9 @@
 struct ErrInfo *PopErr(struct Stack *Stack);
 struct ErrInfo *TopMatch(struct Stack *Stack, char *String);
 
-long BrackIndex(char const c);
-void AddBracket(char const c);
-char MatchBracket(char const);
+long BrackIndex(const char c);
+void AddBracket(const char c);
+char MatchBracket(const char c);