blob: fd6617b9ab6222bdbef3078440922c48871abcdc (
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
|
--- src/bin/idraw/idcatalog.c.org Tue Sep 29 03:09:01 1992
+++ src/bin/idraw/idcatalog.c Sun Jan 23 20:29:52 2000
@@ -658,7 +658,8 @@
graylevel = CalcGrayLevel(data[0]);
}
} else if (graylevel == -1) {
- for (int i = 0; in >> _buf && i < patternHeight; i++) {
+ int i;
+ for (i = 0; in >> _buf && i < patternHeight; i++) {
if (_buf[0] == '>' || sscanf(_buf, "%x", &data[i]) != 1) {
break;
}
@@ -730,6 +731,7 @@
static int sizepoints = 0;
static Coord* xcoords = nil;
static Coord* ycoords = nil;
+ int i;
Skip(in);
in >> n;
@@ -742,7 +744,7 @@
ycoords = new Coord[sizepoints];
}
- for (int i = 0; i < n; i++) {
+ for (i = 0; i < n; i++) {
if (_psversion < PSV_NONREDUNDANT) {
Skip(in);
}
|