[Gridflow-cvs] [svn] commit: r3397 - in /trunk/base: main.c main.rb

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Apr 1 19:04:23 EDT 2008


Author: matju
Date: Tue Apr  1 19:04:23 2008
New Revision: 3397

Log:
inlet #-2 is obsolete

Modified:
    trunk/base/main.c
    trunk/base/main.rb

Modified: trunk/base/main.c
==============================================================================
--- trunk/base/main.c (original)
+++ trunk/base/main.c Tue Apr  1 19:04:23 2008
@@ -185,7 +185,6 @@
 
 static Ruby GridFlow_handle_braces(Ruby rself, Ruby argv);
 
-// inlet #-2 is for inlet #0 messages that happen at start time
 static void send_in_2 (Helper *h) {
 	int argc = h->argc;
 	Ruby *argv = h->argv;
@@ -203,11 +202,6 @@
 		GridFlow_handle_braces(0,foo);
 		argc = rb_ary_len(foo);
 		argv = rb_ary_ptr(foo);
-	}
-	if (inlet==-2) {
-		Ruby init_messages = rb_ivar_get(h->rself,SI(@init_messages));
-		rb_ary_push(init_messages, rb_ary_new4(argc,argv));
-		inlet=0;
 	}
 	if (inlet<0 || inlet>=64)
 		if (inlet!=-3 && inlet!=-1) RAISE("invalid inlet number: %d", inlet);

Modified: trunk/base/main.rb
==============================================================================
--- trunk/base/main.rb (original)
+++ trunk/base/main.rb Tue Apr  1 19:04:23 2008
@@ -130,7 +130,7 @@
 		qlassname = qlass.to_s
 		qlass = name_lookup qlass.to_s unless Class===qlass
 		r = qlass.new(*m)
-		for x in ms do r.send_in(-2, *x) end
+		for x in ms do r.send_in(0,*x) end
 		r
 	end
 	#def inspect; if args then "[#{args}]" else super end end



More information about the Gridflow-cvs mailing list