[Gridflow-cvs] [svn] commit: r3586 - /trunk/base/flow_objects.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Thu Apr 17 01:57:19 EDT 2008


Author: matju
Date: Thu Apr 17 01:57:19 2008
New Revision: 3586

Log:
simplified to_ascii

Modified:
    trunk/base/flow_objects.c

Modified: trunk/base/flow_objects.c
==============================================================================
--- trunk/base/flow_objects.c (original)
+++ trunk/base/flow_objects.c Thu Apr 17 01:57:19 2008
@@ -162,13 +162,8 @@
 \def 0 to_ascii(...) {
 	t_atom at[argc];
 	ruby2pd(argc,argv,at);
-	char buf[MAXPDSTRING];
 	std::ostringstream os;
-	for (int i=0; i<argc; i++) {
-		atom_string(at+i,buf,MAXPDSTRING);
-		os << buf;
-		if (i!=argc-1) os << ' ';
-	}
+	pd_oprint(os,argc,at);
 	long n = os.str().length();
 	if (!dim) out=new GridOutlet(this,0,new Dim(n),cast);
 	process(n,(uint8 *)os.str().data());



More information about the Gridflow-cvs mailing list