[Gridflow-cvs] [svn] commit: r5699 - /trunk/src/gridflow.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Jun 14 22:26:53 EDT 2010


Author: matju
Date: Mon Jun 14 22:26:51 2010
New Revision: 5699

Log:
anything-method was getting wrong symbol that started with _n_ instead of inlet number (_0_, etc)

Modified:
    trunk/src/gridflow.cxx

Modified: trunk/src/gridflow.cxx
==============================================================================
--- trunk/src/gridflow.cxx (original)
+++ trunk/src/gridflow.cxx Mon Jun 14 22:26:51 2010
@@ -592,10 +592,10 @@
 	int argc = handle_braces(ac,argv+1);
 	SETFLOAT(argv+0,winlet);
 	FMethod m;
-	char buf[256];
+	char buf[64], bof[64];
 
 	sprintf(buf,"_%d_%s",winlet,selector->s_name); m=funcall_lookup(bself,buf); if (m) {m(bself->self,argc  ,argv+1); return;}
-	sprintf(buf,"_n_%s",selector->s_name);         m=funcall_lookup(bself,buf); if (m) {m(bself->self,argc+1,argv  ); return;}
+	sprintf(bof,"_n_%s",selector->s_name);         m=funcall_lookup(bself,bof); if (m) {m(bself->self,argc+1,argv  ); return;}
 	m = funcall_lookup(bself,"anything");        if (m) {SETSYMBOL(argv+0,gensym(buf)); m(bself->self,argc+1,argv  ); return;}
 	pd_error((t_pd *)bself, "method '%s' not found for inlet %d in class '%s'",selector->s_name,winlet,pd_classname(bself));
     } catch (Barf &oozy) {oozy.error(bself,winlet,selector->s_name);}



More information about the Gridflow-cvs mailing list