diff options
author | Shigeyuki Fukushima <shige@FreeBSD.org> | 2000-01-11 15:52:35 +0000 |
---|---|---|
committer | Shigeyuki Fukushima <shige@FreeBSD.org> | 2000-01-11 15:52:35 +0000 |
commit | d0094e951a8f7bd1f793e0cd66cc6ed91b034a58 (patch) | |
tree | db5ef3978ff9d2fc60f3bf46216c152189bffdb9 /japanese/iv/files/patch-bn | |
parent | Add explanation of `locale warning message' to DESCR and MESSAGE. (diff) |
Fix build error under 4-current and new egcs/C++ compiler.
PR: ports/16024
Submitted by: MIHIRA Yoshiro <sanpei@sanpei.org>
Diffstat (limited to 'japanese/iv/files/patch-bn')
-rw-r--r-- | japanese/iv/files/patch-bn | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/japanese/iv/files/patch-bn b/japanese/iv/files/patch-bn new file mode 100644 index 000000000000..8aba3cd8813f --- /dev/null +++ b/japanese/iv/files/patch-bn @@ -0,0 +1,82 @@ +--- src/bin/doc/DocViewer.c.org Thu Nov 26 13:46:57 1992 ++++ src/bin/doc/DocViewer.c Mon Jan 3 14:23:14 2000 +@@ -601,7 +601,8 @@ + + void DocumentViewer::pin (const char* name) { + long count = _pinned_info->count(); +- for (long i = 0; i < count; ++i) { ++ long i; ++ for (i = 0; i < count; ++i) { + ViewerPinnedInfo& m = _pinned_info->item_ref(i); + if (strcmp(m._name, name) == 0) { + break; +@@ -634,7 +635,8 @@ + + void DocumentViewer::unpin (const char* name) { + long count = _pinned_info->count(); +- for (long i = 0; i < count; ++i) { ++ long i; ++ for (i = 0; i < count; ++i) { + ViewerPinnedInfo& m = _pinned_info->item_ref(i); + if (strcmp(m._name, name) == 0) { + break; +@@ -652,7 +654,8 @@ + void DocumentViewer::menubar (const char* name) { + choose(nil, false); + long count = _menu_info->count(); +- for (long i = 0; i < count; ++i) { ++ long i; ++ for (i = 0; i < count; ++i) { + ViewerMenuInfo& m = _menu_info->item_ref(i); + if (strcmp(m._name, name) == 0) { + break; +@@ -675,7 +678,8 @@ + + void DocumentViewer::keymap (const char* name) { + long count = _keymap_info->count(); +- for (long i = 0; i < count; ++i) { ++ long i; ++ for (i = 0; i < count; ++i) { + ViewerKeymapInfo& info = _keymap_info->item_ref(i); + if (strcmp(info._name, name) == 0) { + break; +@@ -699,7 +703,8 @@ + const char* name, const Color*& overlay, const Color*& underlay + ) { + long count = _color_info->count(); +- for (long i = 0; i < count; ++i) { ++ long i; ++ for (i = 0; i < count; ++i) { + ViewerColorInfo& info = _color_info->item_ref(i); + if (strcmp(info._name, name) == 0) { + break; +@@ -767,7 +772,8 @@ + + void DocumentViewer::float_removed (Item* item) { + long count = _float_info->count(); +- for (long i = 0; i < count; ++i) { ++ long i; ++ for (i = 0; i < count; ++i) { + if (_float_info->item_ref(i)._item == item) { + break; + } +@@ -783,7 +789,8 @@ + + void DocumentViewer::float_changed (Item* item) { + long count = _float_info->count(); +- for (long i = 0; i < count; ++i) { ++ long i; ++ for (i = 0; i < count; ++i) { + if (_float_info->item_ref(i)._item == item) { + break; + } +@@ -798,7 +805,8 @@ + void DocumentViewer::float_adjusted (Item* item, float x, float y, long p) { + Session::instance()->default_display()->flush(); + long count = _float_info->count(); +- for (long i = 0; i < count; ++i) { ++ long i; ++ for (i = 0; i < count; ++i) { + if (_float_info->item_ref(i)._item == item) { + break; + } |