[Gridflow-cvs] [svn] commit: r6177 - in /trunk/src: classes2.cxx gridflow.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue Aug 17 15:42:26 EDT 2010


Author: matju
Date: Tue Aug 17 15:42:23 2010
New Revision: 6177

Log:
pas grand chose

Modified:
    trunk/src/classes2.cxx
    trunk/src/gridflow.cxx

Modified: trunk/src/classes2.cxx
==============================================================================
--- trunk/src/classes2.cxx (original)
+++ trunk/src/classes2.cxx Tue Aug 17 15:42:23 2010
@@ -56,12 +56,6 @@
 static t_canvas *canvas_getabstop(t_canvas *x) {
     while (!x->gl_env) if (!(x = x->gl_owner)) bug("t_canvasenvironment %p", x);
     return x;
-} 
-void pd_anything2 (t_pd *o, int argc, t_atom *argv) {
-	if (!argc) pd_bang(o);
-	else if (argv[0].a_type==A_SYMBOL)       pd_typedmess(o,argv[0].a_symbol,argc-1,argv+1);
-	else if (argv[0].a_type==A_FLOAT && argc==1) pd_float(o,argv[0].a_float);
-	else pd_typedmess(o,&s_list,argc,argv);
 }
 
 //****************************************************************
@@ -96,6 +90,12 @@
 	\decl 0 loadbang ();
 	void process_args (int argc, t_atom *argv);
 };
+/* this is not shared with the comma-args handling of externs ! */
+static void pd_anything2 (t_pd *o, int argc, t_atom *argv) {
+	if (argv[0].a_type==A_FLOAT && argc==1) {pd_float(o,argv[0].a_float); return;}
+	if (argv[0].a_type==A_SYMBOL) pd_typedmess(o,argv[0].a_symbol,argc-1,argv+1);
+	else                          pd_typedmess(o,&s_list         ,argc  ,argv  );
+}
 \def 0 loadbang () {
 	t_canvasenvironment *env = canvas_getenv(mom);
 	int ac = env->ce_argc;

Modified: trunk/src/gridflow.cxx
==============================================================================
--- trunk/src/gridflow.cxx (original)
+++ trunk/src/gridflow.cxx Tue Aug 17 15:42:23 2010
@@ -642,6 +642,7 @@
 		int k=j;
 		for (; j<argc; j++) if (argv[j].a_type==A_COMMA) break;
 		if (argv[k].a_type==A_SYMBOL) pd_typedmess((t_pd *)bself,argv[k],j-k-1,argv+k+1);
+		else post("oupse");
 	}
         #ifdef DES_BUGS
 	    post("BFObject_new..... bself=%08lx magic=%08lx self=%08lx",long(bself),bself->magic,long(bself->self));
@@ -1130,5 +1131,4 @@
     class_addmethod(canvas_class,(t_method)canvas_tolast,       gensym("last")         ,A_GIMME,0);
     class_addmethod(canvas_class,(t_method)canvas_last_activate,gensym("last_activate"),A_GIMME,0);
     class_addmethod(canvas_class,(t_method)canvas_iemguis,      gensym("put"),          A_SYMBOL,0);
-//    canvas_startmotion(glist_getcanvas(gl));
-}
+}



More information about the Gridflow-cvs mailing list