[Gridflow-cvs] [svn] commit: r3509 - /trunk/base/source_filter.rb

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Apr 15 00:17:11 EDT 2008


Author: matju
Date: Tue Apr 15 00:17:11 2008
New Revision: 3509

Log:
fix previous commit

Modified:
    trunk/base/source_filter.rb

Modified: trunk/base/source_filter.rb
==============================================================================
--- trunk/base/source_filter.rb (original)
+++ trunk/base/source_filter.rb Tue Apr 15 00:17:11 2008
@@ -243,8 +243,8 @@
 	Out.print "template <class T> static void grinw_#{i} (GridInlet *in, long n, T *data);"
 	Out.print "static GridHandler grid_#{i}_hand;"
 	handle_decl "#{i} grid(void *foo);"
-	handle_decl "#{i} list(...);"       if not frame.methods["_#{i}_list"]
-	handle_decl "#{i} float(float f);"  if not frame.methods["_#{i}_float"]
+	handle_decl "#{i} list(...);"
+	handle_decl "#{i} float(float f);"
 	$stack[-1].grins[i] = fields.dup
 end
 
@@ -279,12 +279,12 @@
 		handle_def "#{i} list(...) {"+
 			"if (in.size()<=#{i}) in.resize(#{i}+1);"+
 			"if (!in[#{i}]) in[#{i}]=new GridInlet((GridObject *)this,&#{cl}_grid_#{i}_hand);"+
-			"in[#{i}]->from_ruby_list(argc,argv,int32_e);}" if not frame.methods["_#{i}_list"]
+			"in[#{i}]->from_ruby_list(argc,argv,int32_e);}" if not frame.methods["_#{i}_list"].done
 		handle_def "#{i} float(float f) {"+
 			"if (in.size()<=#{i}) in.resize(#{i}+1);"+
 			"if (!in[#{i}]) in[#{i}]=new GridInlet((GridObject *)this,&#{cl}_grid_#{i}_hand);"+
 			"Ruby a[]={rb_float_new(f)};"+
-			"in[#{i}]->from_ruby(1,a);}" if not frame.methods["_#{i}_float"]
+			"in[#{i}]->from_ruby(1,a);}" if not frame.methods["_#{i}_float"].done
 	}
 	if /^class\s*(\w+\s+)?\{(.*)/ =~ line then handle_classinfo("{"+$2) end
 	$stack.pop



More information about the Gridflow-cvs mailing list