[Gridflow-cvs] [svn] commit: r6354 - /trunk/src/gridflow.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Fri Sep 24 22:52:24 EDT 2010


Author: matju
Date: Fri Sep 24 22:52:24 2010
New Revision: 6354

Log:
introducing CLASS_NOCOMMA

Modified:
    trunk/src/gridflow.cxx

Modified: trunk/src/gridflow.cxx
==============================================================================
--- trunk/src/gridflow.cxx (original)
+++ trunk/src/gridflow.cxx Fri Sep 24 22:52:24 2010
@@ -669,7 +669,8 @@
 	for (int i=0; i<argc; i++) argv[i] = at[i];
 	if (qlass->flags&CLASS_NOPARENS) dont_handle_parens(argc,argv); else argc = handle_parens(argc,argv);
 	int j;
-	for (j=0; j<argc; j++) if (argv[j].a_type==A_COMMA) break;
+	if (qlass->flags&CLASS_NOCOMMA) {for (j=0; j<argc; j++) if (argv[j].a_type==A_COMMA) argv[j]=s_comma;}
+	else                            {for (j=0; j<argc; j++) if (argv[j].a_type==A_COMMA) break;}
 	bself->self = 0;
 	t_allocator alloc = fclasses[classsym]->allocator;
 	bself->te_binbuf = 0; //HACK: supposed to be 0 already (why this hack ? I don't recall)



More information about the Gridflow-cvs mailing list