[Gridflow-cvs] [svn] commit: r4859 - in /trunk/src: gridflow.cxx gridflow.hxx

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Nov 20 10:55:06 EST 2009


Author: matju
Date: Fri Nov 20 10:55:01 2009
New Revision: 4859

Log:
add outlet_atom as it is in DesireData... almost

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

Modified: trunk/src/gridflow.cxx
==============================================================================
--- trunk/src/gridflow.cxx (original)
+++ trunk/src/gridflow.cxx Fri Nov 20 10:55:01 2009
@@ -173,6 +173,14 @@
 		default: self << "\\a(" << a.a_type << " " << std::hex << a.a_gpointer << std::dec << ")"; break;
 	}
 	return self;
+}
+
+// from desiredata/src/kernel.c
+void outlet_atom(t_outlet *x, t_atom *a) {
+    if      (a->a_type==A_FLOAT  ) outlet_float(  x,a->a_float);
+    else if (a->a_type==A_SYMBOL ) outlet_symbol( x,a->a_symbol);
+    else if (a->a_type==A_POINTER) outlet_pointer(x,a->a_gpointer);
+    else error("can't send atom whose type is %d",a->a_type);
 }
 
 //----------------------------------------------------------------

Modified: trunk/src/gridflow.hxx
==============================================================================
--- trunk/src/gridflow.hxx (original)
+++ trunk/src/gridflow.hxx Fri Nov 20 10:55:01 2009
@@ -911,4 +911,9 @@
 };
 #endif
 
+// from desiredata/src/kernel.c
+#ifndef DESIRE
+extern void outlet_atom(t_outlet *x, t_atom *a);
+#endif
+
 #endif // __GF_GRID_H



More information about the Gridflow-cvs mailing list