[Gridflow-cvs] [svn] commit: r3926 - /trunk/gridflow.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Jun 20 11:13:20 EDT 2008


Author: matju
Date: Fri Jun 20 11:13:19 2008
New Revision: 3926

Log:
handle_braces: commas were parsed as A_SYMBOL after recent changes, but BFObject_init expects it to be A_COMMA.

Modified:
    trunk/gridflow.c

Modified: trunk/gridflow.c
==============================================================================
--- trunk/gridflow.c (original)
+++ trunk/gridflow.c Fri Jun 20 11:13:19 2008
@@ -569,7 +569,7 @@
 	BFObject_anything(self->parent,self->id,s,argc,argv);
 }
 
-static void *BFObject_init (t_symbol *classsym, int ac, t_atom *at) {
+static void *BFObject_new (t_symbol *classsym, int ac, t_atom *at) {
     string name = string(classsym->s_name);
     if (fclasses.find(name)==fclasses.end()) {post("GF: class not found: '%s'",classsym->s_name); return 0;}
     t_class *qlass = fclasses[name]->bfclass;
@@ -701,7 +701,7 @@
 
 void add_creator2(FClass *fclass, const char *name) {
 	fclasses[string(name)] = fclass;
-	class_addcreator((t_newmethod)BFObject_init,gensym((char *)name),A_GIMME,0);
+	class_addcreator((t_newmethod)BFObject_new,gensym((char *)name),A_GIMME,0);
 }
 
 //****************************************************************
@@ -728,7 +728,7 @@
 	fclass->ninlets = inlets;
 	fclass->noutlets = outlets;
 	fclass->name = string(name);
-	fclass->bfclass = class_new(gensym((char *)name), (t_newmethod)BFObject_init, (t_method)BFObject_delete,
+	fclass->bfclass = class_new(gensym((char *)name), (t_newmethod)BFObject_new, (t_method)BFObject_delete,
 		sizeof(BFObject), CLASS_DEFAULT, A_GIMME,0);
 	fclasses[string(name)] = fclass;
 	fclasses_pd[fclass->bfclass] = fclass;
@@ -754,7 +754,7 @@
 			while (se>s && se[-1]==')') {se--; close++;}
 			if (s!=se) {
 				binbuf_text(buf,(char *)s,se-s);
-				if (binbuf_getnatom(buf)==1 && binbuf_getvec(buf)[0].a_type==A_FLOAT) {
+				if (binbuf_getnatom(buf)==1 && binbuf_getvec(buf)[0].a_type==A_FLOAT || binbuf_getvec(buf)[0].a_type==A_COMMA) {
 					av[j++] = binbuf_getvec(buf)[0];
 				} else {
 					char ss[MAXPDSTRING];



More information about the Gridflow-cvs mailing list