aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradam <adam@FreeBSD.org>1996-11-13 23:48:53 +0800
committeradam <adam@FreeBSD.org>1996-11-13 23:48:53 +0800
commit8ae8888947d83a53f87cb7050d31fd0f766eb48d (patch)
tree0990b2098f7987fa9d69e38516f8139f8bc6ec5c
parente7bfa3d1337f197e3ae8ad0dff792153e79659e9 (diff)
downloadfreebsd-ports-graphics-8ae8888947d83a53f87cb7050d31fd0f766eb48d.tar.gz
freebsd-ports-graphics-8ae8888947d83a53f87cb7050d31fd0f766eb48d.tar.zst
freebsd-ports-graphics-8ae8888947d83a53f87cb7050d31fd0f766eb48d.zip
fix the Iterator scope problem
(however, there is an undefined symbol problem, seems unrelated) therefore bin/ibuild is still broken
-rw-r--r--x11-toolkits/iv/files/patch-aa23
1 files changed, 23 insertions, 0 deletions
diff --git a/x11-toolkits/iv/files/patch-aa b/x11-toolkits/iv/files/patch-aa
index 3f053c29360..ae834f128cf 100644
--- a/x11-toolkits/iv/files/patch-aa
+++ b/x11-toolkits/iv/files/patch-aa
@@ -264,3 +264,26 @@
#define DECLARE1(f,t1,a1) f(t1 a1)
#define DECLARE2(f,t1,a1,t2,a2) f(t1 a1, t2 a2)
#define DECLARE3(f,t1,a1,t2,a2,t3,a3) f(t1 a1, t2 a2, t3 a3)
+*** src/bin/ibuild/ibcmds.c.old Fri Dec 11 20:33:25 1992
+--- src/bin/ibuild/ibcmds.c Wed Nov 13 06:38:33 1996
+***************
+*** 2407,2415 ****
+ EditorInfo* installed = (EditorInfo*) toolsdialog.Installed();
+ EditorInfo* removed = (EditorInfo*) toolsdialog.Removed();
+
+! Iterator i;
+! for (unidraw->First(i); !unidraw->Done(i); unidraw->Next(i)) {
+! IBEditor* iEd = (IBEditor*) unidraw->GetEditor(i);
+ ToolPanel* itoolpanel = iEd->GetToolPanel();
+
+ for (int i = 0; i < installed->Count(); i++) {
+--- 2407,2415 ----
+ EditorInfo* installed = (EditorInfo*) toolsdialog.Installed();
+ EditorInfo* removed = (EditorInfo*) toolsdialog.Removed();
+
+! Iterator ii;
+! for (unidraw->First(ii); !unidraw->Done(ii); unidraw->Next(ii)) {
+! IBEditor* iEd = (IBEditor*) unidraw->GetEditor(ii);
+ ToolPanel* itoolpanel = iEd->GetToolPanel();
+
+ for (int i = 0; i < installed->Count(); i++) {