Update of /cvsroot/pure-data/externals/grill/deljoin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14614
Modified Files: main.cpp Added Files: deljoin-help.pd Removed Files: help-deljoin.pd Log Message: fixed integer representation rename help file more fixes
Index: main.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/deljoin/main.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** main.cpp 7 Apr 2005 14:57:01 -0000 1.6 --- main.cpp 11 Aug 2005 15:02:40 -0000 1.7 *************** *** 131,139 **** if(IsSymbol(a)) strcpy(t,GetString(a)); ! else if(IsInt(a)) { ! STD::sprintf(t,"%i",GetInt(a),10); ! } ! else if(IsFloat(a)) { ! STD::sprintf(t,"%f",GetFloat(a),10); } // else do nothing --- 131,141 ---- if(IsSymbol(a)) strcpy(t,GetString(a)); ! else if(CanbeFloat(a)) { ! const float f = GetAFloat(a); ! const int fi = (int)f; ! if(f == fi) ! STD::sprintf(t,"%i",fi,10); ! else ! STD::sprintf(t,"%f",f,10); } // else do nothing
--- NEW FILE: deljoin-help.pd --- #N canvas 300 90 462 290 12; #X msg 247 89 symbol -; #X msg 232 62 list; #X msg 259 115 list +; #X obj 105 229 print; #X symbolatom 266 143 10 0 0 0 - - -; #X msg 44 66 a b c d e f; #X msg 217 34 0; #X obj 105 203 deljoin 0; #X text 254 21 no delimiter; #X text 272 62 space; #X msg 208 11 bang; #X connect 0 0 7 1; #X connect 1 0 7 1; #X connect 2 0 7 1; #X connect 4 0 7 1; #X connect 5 0 7 0; #X connect 6 0 7 1; #X connect 7 0 3 0; #X connect 10 0 7 1;
--- help-deljoin.pd DELETED ---