[GEM-dev] patch: stripping escaped commas in symbols

Tim Blechmann TimBlechmann at gmx.net
Wed Sep 21 02:59:36 CEST 2005


hi gem-devs,

accessing the symbol directly makes sure that atom_string doesn't mess
with the symbols ... i think it's the cleanest way to display symbols
containing commas:


--- Base/TextBase.cpp   11 Sep 2005 16:02:23 -0000      1.17
+++ Base/TextBase.cpp   20 Sep 2005 22:54:52 -0000
@@ -336,15 +336,14 @@
   if ( argc < 1 ) {return; }
 
   string line = "";
-  char newtext[MAXPDSTRING];
-
+  
   int i=0;
 
   // convert the atom-list into 1 string
   for (i = 0; i < argc; ++i)
     {
-      atom_string(&argv[i], newtext, MAXPDSTRING);
-      line += newtext;
+         string newtext = atom_getsymbol(&argv[i])->s_name;
+         line += newtext;
       if(argc-1>i)line += " ";
     }

would be great, if you could commit the patch ...

thanks ... tim

-- 
mailto:TimBlechmann at gmx.de    ICQ: 96771783
http://www.mokabar.tk

latest mp3: kMW.mp3
http://mattin.org/mp3.html

latest cd: Goh Lee Kwang & Tim Blechmann: Drone
http://www.geocities.com/gohleekwangtimblechmannduo/

After one look at this planet any visitor from outer space 
would say "I want to see the manager."
				      William S. Burroughs




More information about the GEM-dev mailing list