[Gridflow-cvs] [svn] commit: r3450 - /trunk/rubyext.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Apr 4 02:06:59 EDT 2008


Author: matju
Date: Fri Apr  4 02:06:59 2008
New Revision: 3450

Log:
fix previous commit

Modified:
    trunk/rubyext.c

Modified: trunk/rubyext.c
==============================================================================
--- trunk/rubyext.c (original)
+++ trunk/rubyext.c Fri Apr  4 02:06:59 2008
@@ -187,7 +187,7 @@
 
 static Ruby GridFlow_s_handle_braces(Ruby rself, Ruby argv);
 
-static int handle_braces(int ac, Ruby *av);
+int handle_braces(int ac, Ruby *av);
 
 static Ruby BFObject_init_1 (FMessage *fm) {
 	int argc=fm->ac+1;
@@ -207,6 +207,7 @@
 	for (j=0; j<argc; j++) if (argv[j]==comma) break;
 
 	int jj = handle_braces(j,argv);
+	fprintf(stderr,"argc=%d j=%d jj=%d\n",argc,j,jj);
 	Ruby rself = rb_funcall2(fclasses[string(rb_str_ptr(argv[0]))]->rself,SI(new),jj-1,argv+1);
 
 	DGS(FObject);
@@ -631,7 +632,7 @@
 Ruby GridFlow_s_rdtsc (Ruby rself) { return R(rdtsc()).r; }
 
 /* This code handles nested lists because PureData (all versions including 0.40) doesn't do it */
-static int handle_braces(int ac, Ruby *av) {
+int handle_braces(int ac, Ruby *av) {
     try {
 	int stack[16];
 	int stackn=0;
@@ -665,7 +666,7 @@
 		}
 	}
 	if (stackn) RAISE("too many open-paren (%d)",stackn);
-	return ac;
+	return j;
     } catch (Barf *oozy) {
         rb_raise(rb_eArgError,"%s",oozy->text);
     }



More information about the Gridflow-cvs mailing list