summaryrefslogtreecommitdiffstats
path: root/japanese/iv/files/patch-bk
blob: c49b76f2d315168665cd959e3206d9429786cf38 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
--- src/bin/doc/Document.c.org	Sat Dec 12 08:36:37 1992
+++ src/bin/doc/Document.c	Mon Jan  3 14:10:55 2000
@@ -450,7 +450,8 @@
         return nil;
     } else {
         long count = _families->count();
-        for (long i = 0; i < count; ++i) {
+	long i;
+        for (i = 0; i < count; ++i) {
             FontFamilyInfo& info = _families->item_ref(0);
             if (strcmp(info._name, name) == 0) {
                 break;
@@ -590,7 +591,8 @@
 void Document::remove_float (Item* item) {
     touch(true);
     long count = _viewer->count();
-    for (long i = 0; i < count; ++i) {
+    long i;
+    for (i = 0; i < count; ++i) {
         DocumentViewerInfo& info = _viewer->item_ref(i);
         info._viewer->float_removed(item);
     }
@@ -2277,7 +2279,8 @@
 
 long Document::find_macro (const char* name) {
     long count = _macro->count();
-    for (long i = 0; i < count; ++i) {
+    long i;
+    for (i = 0; i < count; ++i) {
         MacroInfo& info = _macro->item_ref(i);
         if (strcmp(info._name, name) == 0) {
             break;
@@ -2314,7 +2317,8 @@
 
 long Document::find_counter (const char* name) {
     long count = _counter->count();
-    for (long i = 0; i < count; ++i) {
+    long i;
+    for (i = 0; i < count; ++i) {
         CounterInfo& info = _counter->item_ref(i);
         if (strcmp(info._name, name) == 0) {
             break;
@@ -2365,7 +2369,8 @@
 
 long Document::find_parameter (const char* name) {
     long count = _parameter->count();
-    for (long i = 0; i < count; ++i) {
+    long i;
+    for (i = 0; i < count; ++i) {
         DocumentParameterInfo& info = _parameter->item_ref(i);
         if (strcmp(info._name, name) == 0) {
             break;
@@ -2406,7 +2411,8 @@
 
 long Document::find_label (const char* name) {
     long count = _label->count();
-    for (long i = 0; i < count; ++i) {
+    long i;
+    for (i = 0; i < count; ++i) {
         LabelInfo& info = _label->item_ref(i);
         if (strcmp(info._name, name) == 0) {
             break;
@@ -2447,7 +2453,8 @@
 
 long Document::find_float (Item* item) {
     long count = _float->count();
-    for (long i = 0; i < count; ++i) {
+    long i;
+    for (i = 0; i < count; ++i) {
         FloatInfo& info = _float->item_ref(i);
         if (info._item == item) {
             break;
OpenPOWER on IntegriCloud