aboutsummaryrefslogtreecommitdiff
path: root/packages/patches
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-03-16 00:48:41 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-03-16 00:48:41 +0000
commit8a2fb43549927310b1ee1a4ed1903ebf544147f9 (patch)
treee19136e2063689376b28e8a04cd9baee147b67fd /packages/patches
parentda342f35584cf4b53aa4f0414217ba217084b0d7 (diff)
iohannes included patch# 1990599 in the pd-extended branch back in 0.40
svn path=/trunk/; revision=10864
Diffstat (limited to 'packages/patches')
-rw-r--r--packages/patches/allow_recursive_calls_of_new_anything-0.41.4.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/patches/allow_recursive_calls_of_new_anything-0.41.4.patch b/packages/patches/allow_recursive_calls_of_new_anything-0.41.4.patch
new file mode 100644
index 00000000..d2ea86e2
--- /dev/null
+++ b/packages/patches/allow_recursive_calls_of_new_anything-0.41.4.patch
@@ -0,0 +1,33 @@
+Index: m_class.c
+===================================================================
+--- m_class.c (Revision 9979)
++++ m_class.c (Arbeitskopie)
+@@ -522,6 +522,7 @@
+ return (gensym(namebuf));
+ }
+
++#define MAXOBJDEPTH 1000
+ static int tryingalready;
+
+ void canvas_popabstraction(t_canvas *x);
+@@ -537,14 +538,17 @@
+ t_pd *current;
+ int fd;
+ char dirbuf[MAXPDSTRING], *nameptr;
+- if (tryingalready) return;
++ if (tryingalready>MAXOBJDEPTH){
++ error("maximum object loading depth %d reached", MAXOBJDEPTH);
++ return;
++ }
+ newest = 0;
+ class_loadsym = s;
+ if (sys_load_lib(canvas_getcurrent(), s->s_name))
+ {
+- tryingalready = 1;
++ tryingalready++;
+ typedmess(dummy, s, argc, argv);
+- tryingalready = 0;
++ tryingalready--;
+ return;
+ }
+ class_loadsym = 0;