[Gridflow-cvs] [svn] commit: r3632 - in /trunk: base/source_filter.rb gridflow.c gridflow.h

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Apr 18 23:02:09 EDT 2008


Author: matju
Date: Fri Apr 18 23:02:09 2008
New Revision: 3632

Log:
add FClass::bytes

Modified:
    trunk/base/source_filter.rb
    trunk/gridflow.c
    trunk/gridflow.h

Modified: trunk/base/source_filter.rb
==============================================================================
--- trunk/base/source_filter.rb (original)
+++ trunk/base/source_filter.rb Fri Apr 18 23:02:09 2008
@@ -288,7 +288,8 @@
 def handle_startall(line)
 	$classes.each {|q|
 		Out.print "fclass_install(&ci#{q.name},"
-		if q.supername then Out.print "\"#{q.supername}\");" else Out.print "0);" end
+		if q.supername then Out.print "\"#{q.supername}\"" else Out.print "0" end
+		Out.print ",sizeof(#{q.name}));"
 	}
 end
 

Modified: trunk/gridflow.c
==============================================================================
--- trunk/gridflow.c (original)
+++ trunk/gridflow.c Fri Apr 18 23:02:09 2008
@@ -252,9 +252,10 @@
 
 //----------------------------------------------------------------
 
-void fclass_install(FClass *fclass, const char *super) {
+void fclass_install(FClass *fclass, const char *super, size_t bytes) {
 	//fclass->super = fclasses[super];
 	if (fclass->startup) fclass->startup(fclass);
+	fclass->bytes = bytes;
 }
 
 void install2(FClass *fclass, const char *name, int inlets, int outlets) {

Modified: trunk/gridflow.h
==============================================================================
--- trunk/gridflow.h (original)
+++ trunk/gridflow.h Fri Apr 18 23:02:09 2008
@@ -749,9 +749,10 @@
 	int noutlets;
 	t_class *bfclass;
 	string name;
-};
-
-void fclass_install(FClass *fc, const char *super);
+	size_t bytes;
+};
+
+void fclass_install(FClass *fc, const char *super, size_t bytes);
 
 //****************************************************************
 // GridOutlet represents a grid-aware outlet
@@ -789,7 +790,7 @@
 	// beyond the call to give().
 	template <class T> void give(long n, T *data);
 
-	// third way to send (upcoming, in GF-0.8.??) is called "ask".
+	// third way to send (upcoming, in GF-1.1.??) is called "ask".
 	template <class T> void ask(int &n, T * &data, long factor, long min, long max);
 
 private:



More information about the Gridflow-cvs mailing list