Update of /cvsroot/pure-data/externals/grill/flext/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12267/source
Modified Files: flbase.cpp flbase.h flqueue.cpp Log Message: ""
Index: flqueue.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flqueue.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** flqueue.cpp 12 Dec 2003 03:32:56 -0000 1.14 --- flqueue.cpp 20 Mar 2004 03:23:11 -0000 1.15 *************** *** 85,90 **** { for(;;) { ! // since qcnt can only be increased from any other function than QWork ! // qc will be a minimum guaranteed number of present queue elements int qc = qcnt; if(!qc) break; --- 85,92 ---- { for(;;) { ! // Since qcnt can only be increased from any other function than QWork ! // qc will be a minimum guaranteed number of present queue elements. ! // On the other hand, if new queue elements are added by the methods called ! // in the loop, these will be sent in the next tick to avoid recursion overflow. int qc = qcnt; if(!qc) break;
Index: flbase.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flbase.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** flbase.cpp 10 Feb 2004 03:29:50 -0000 1.14 --- flbase.cpp 20 Mar 2004 03:23:11 -0000 1.15 *************** *** 121,122 **** --- 121,142 ---- }
+ + #if FLEXT_SYS == FLEXT_SYS_PD + // this declaration is missing in m_pd.h (0.37-0 and -1) + extern "C" void canvas_getargs(int *argcp, t_atom **argvp); + #endif + + + void flext_obj::CanvasArgs(AtomList &args) const + { + #if FLEXT_SYS == FLEXT_SYS_PD + int argc; + t_atom *argv; + canvas_getargs(&argc,&argv); + args(argc); + for(int i = 0; i < argc; ++i) args[i] = argv[i]; + #else + #pragma message("Not implemented") + args(0); + #endif + }
Index: flbase.h =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flbase.h,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** flbase.h 12 Dec 2003 03:32:56 -0000 1.22 --- flbase.h 20 Mar 2004 03:23:11 -0000 1.23 *************** *** 261,264 **** --- 261,267 ---- static const t_symbol *GetParamSym(const t_symbol *s,t_canvas *c);
+ //! Get the canvas arguments + void CanvasArgs(AtomList &args) const; + //! @} FLEXT_O_INTERNAL