1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/x11-toolkits/iv/files/patch-bp
1999-12-29 07:47:39 +00:00

80 lines
2.5 KiB
Plaintext

--- src/bin/doc/Document.c.orig Tue Dec 28 22:53:19 1999
+++ src/bin/doc/Document.c Tue Dec 28 22:55:06 1999
@@ -449,8 +449,8 @@
if (strlen(name) == 0) {
return nil;
} else {
- long count = _families->count();
- for (long i = 0; i < count; ++i) {
+ long count = _families->count(), i;
+ for (i = 0; i < count; ++i) {
FontFamilyInfo& info = _families->item_ref(0);
if (strcmp(info._name, name) == 0) {
break;
@@ -589,8 +589,8 @@
void Document::remove_float (Item* item) {
touch(true);
- long count = _viewer->count();
- for (long i = 0; i < count; ++i) {
+ long count = _viewer->count(), i;
+ for (i = 0; i < count; ++i) {
DocumentViewerInfo& info = _viewer->item_ref(i);
info._viewer->float_removed(item);
}
@@ -2276,8 +2276,8 @@
}
long Document::find_macro (const char* name) {
- long count = _macro->count();
- for (long i = 0; i < count; ++i) {
+ long count = _macro->count(), i;
+ for (i = 0; i < count; ++i) {
MacroInfo& info = _macro->item_ref(i);
if (strcmp(info._name, name) == 0) {
break;
@@ -2313,8 +2313,8 @@
}
long Document::find_counter (const char* name) {
- long count = _counter->count();
- for (long i = 0; i < count; ++i) {
+ long count = _counter->count(), i;
+ for (i = 0; i < count; ++i) {
CounterInfo& info = _counter->item_ref(i);
if (strcmp(info._name, name) == 0) {
break;
@@ -2364,8 +2364,8 @@
}
long Document::find_parameter (const char* name) {
- long count = _parameter->count();
- for (long i = 0; i < count; ++i) {
+ long count = _parameter->count(), i;
+ for (i = 0; i < count; ++i) {
DocumentParameterInfo& info = _parameter->item_ref(i);
if (strcmp(info._name, name) == 0) {
break;
@@ -2405,8 +2405,8 @@
}
long Document::find_label (const char* name) {
- long count = _label->count();
- for (long i = 0; i < count; ++i) {
+ long count = _label->count(), i;
+ for (i = 0; i < count; ++i) {
LabelInfo& info = _label->item_ref(i);
if (strcmp(info._name, name) == 0) {
break;
@@ -2446,8 +2446,8 @@
}
long Document::find_float (Item* item) {
- long count = _float->count();
- for (long i = 0; i < count; ++i) {
+ long count = _float->count(), i;
+ for (i = 0; i < count; ++i) {
FloatInfo& info = _float->item_ref(i);
if (info._item == item) {
break;