Update of /cvsroot/pure-data/externals/grill/py/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22152/source
Modified Files: py.cpp pybase.cpp pybase.h pyext.cpp pyext.h pymeth.cpp Log Message: corrected Python object propagation (attribute "py") and adjusted help files better exception handling and error message much better detach method handling (one thread for all object instances) better definition of output values (atoms, lists, anythings)
Index: pymeth.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/py/source/pymeth.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pymeth.cpp 19 Jul 2005 13:18:33 -0000 1.3 --- pymeth.cpp 20 Jul 2005 08:11:18 -0000 1.4 *************** *** 144,148 **** // callbacks FLEXT_ATTRVAR_I(detach) ! FLEXT_ATTRVAR_B(xlate) FLEXT_ATTRVAR_B(respond)
--- 144,148 ---- // callbacks FLEXT_ATTRVAR_I(detach) ! FLEXT_ATTRVAR_B(pymsg) FLEXT_ATTRVAR_B(respond)
*************** *** 177,181 **** FLEXT_CADDMETHOD_(c,0,"set",m_set);
! FLEXT_CADDATTR_VAR1(c,"py",xlate); FLEXT_CADDATTR_VAR1(c,"respond",respond);
--- 177,181 ---- FLEXT_CADDMETHOD_(c,0,"set",m_set);
! FLEXT_CADDATTR_VAR1(c,"py",pymsg); FLEXT_CADDATTR_VAR1(c,"respond",respond);
Index: pyext.h =================================================================== RCS file: /cvsroot/pure-data/externals/grill/py/source/pyext.h,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** pyext.h 19 Jul 2005 13:18:33 -0000 1.26 --- pyext.h 20 Jul 2005 08:11:18 -0000 1.27 *************** *** 138,142 **** // callbacks FLEXT_ATTRVAR_I(detach) ! FLEXT_ATTRVAR_B(xlate) FLEXT_ATTRVAR_B(respond)
--- 138,142 ---- // callbacks FLEXT_ATTRVAR_I(detach) ! FLEXT_ATTRVAR_B(pymsg) FLEXT_ATTRVAR_B(respond)
Index: pybase.h =================================================================== RCS file: /cvsroot/pure-data/externals/grill/py/source/pybase.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** pybase.h 19 Jul 2005 13:18:33 -0000 1.4 --- pybase.h 20 Jul 2005 08:11:18 -0000 1.5 *************** *** 134,138 ****
int detach; ! bool xlate;
bool gencall(PyObject *fun,PyObject *args); --- 134,138 ----
int detach; ! bool pymsg;
bool gencall(PyObject *fun,PyObject *args);
Index: pybase.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/py/source/pybase.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** pybase.cpp 19 Jul 2005 13:18:33 -0000 1.4 --- pybase.cpp 20 Jul 2005 08:11:18 -0000 1.5 *************** *** 193,197 **** #endif , detach(0) ! , xlate(true) { PyThreadState *state = PyLockSys(); --- 193,197 ---- #endif , detach(0) ! , pymsg(false) { PyThreadState *state = PyLockSys(); *************** *** 454,458 **** { flext::AtomListStatic<16> lst; ! const t_symbol *sym = xlate?GetPyArgs(lst,obj):GetPyAtom(lst,obj); if(sym) { // call to outlet _outside_ the Mutex lock! --- 454,458 ---- { flext::AtomListStatic<16> lst; ! const t_symbol *sym = pymsg?GetPyAtom(lst,obj):GetPyArgs(lst,obj); if(sym) { // call to outlet _outside_ the Mutex lock!
Index: pyext.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/py/source/pyext.cpp,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** pyext.cpp 19 Jul 2005 13:18:33 -0000 1.38 --- pyext.cpp 20 Jul 2005 08:11:18 -0000 1.39 *************** *** 42,46 **** FLEXT_CADDMETHOD_(c,0,"set",m_set);
! FLEXT_CADDATTR_VAR1(c,"py",xlate); FLEXT_CADDATTR_VAR1(c,"respond",respond);
--- 42,46 ---- FLEXT_CADDMETHOD_(c,0,"set",m_set);
! FLEXT_CADDATTR_VAR1(c,"py",pymsg); FLEXT_CADDATTR_VAR1(c,"respond",respond);
Index: py.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/py/source/py.cpp,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** py.cpp 19 Jul 2005 13:18:33 -0000 1.30 --- py.cpp 20 Jul 2005 08:11:18 -0000 1.31 *************** *** 67,71 **** // callbacks FLEXT_ATTRVAR_I(detach) ! FLEXT_ATTRVAR_B(xlate) FLEXT_ATTRVAR_B(respond)
--- 67,71 ---- // callbacks FLEXT_ATTRVAR_I(detach) ! FLEXT_ATTRVAR_B(pymsg) FLEXT_ATTRVAR_B(respond)
*************** *** 100,104 **** FLEXT_CADDMETHOD_(c,0,"set",m_set);
! FLEXT_CADDATTR_VAR1(c,"py",xlate); FLEXT_CADDATTR_VAR1(c,"respond",respond); } --- 100,104 ---- FLEXT_CADDMETHOD_(c,0,"set",m_set);
! FLEXT_CADDATTR_VAR1(c,"py",pymsg); FLEXT_CADDATTR_VAR1(c,"respond",respond); }