[PD-cvs] externals/grill/py/source clmeth.cpp, 1.17, 1.18 py.cpp, 1.22, 1.23 pyext.cpp, 1.31, 1.32 pyext.h, 1.21, 1.22

Thomas Grill xovo at users.sourceforge.net
Thu Apr 7 17:03:55 CEST 2005


Update of /cvsroot/pure-data/externals/grill/py/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15431/source

Modified Files:
	clmeth.cpp py.cpp pyext.cpp pyext.h 
Log Message:
cleaner error reporting
added generic numpy support (not working)
use lock count instead of message queuing to avoid py->py messaging deadlock
fixing strange gcc behavior
fixes for maxmsp
support for buffer objects (preliminary)
fixed reference count bug
use optimized version
adjust pd and py files for correct argument passing
more optimizations
little restructuring


Index: clmeth.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/source/clmeth.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** clmeth.cpp	31 Mar 2005 03:54:10 -0000	1.17
--- clmeth.cpp	7 Apr 2005 15:03:52 -0000	1.18
***************
*** 174,178 ****
  			val = PySequence_GetSlice(args,2,sz);  // new ref
  
!         AtomListStatic<16> lst;
  		if(GetPyArgs(lst,val)) {
  			int o = PyInt_AsLong(outl);
--- 174,178 ----
  			val = PySequence_GetSlice(args,2,sz);  // new ref
  
!         flext::AtomListStatic<16> lst;
  		if(GetPyArgs(lst,val)) {
  			int o = PyInt_AsLong(outl);
***************
*** 296,300 ****
  			val = PyTuple_GetSlice(args,1,sz);  // new ref
  
! 		AtomListStatic<16> lst;
          if(GetPyArgs(lst,val)) {
  			t_glist *gl = ext->thisCanvas(); //canvas_getcurrent();
--- 296,300 ----
  			val = PyTuple_GetSlice(args,1,sz);  // new ref
  
! 		flext::AtomListStatic<16> lst;
          if(GetPyArgs(lst,val)) {
  			t_glist *gl = ext->thisCanvas(); //canvas_getcurrent();

Index: pyext.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/source/pyext.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** pyext.cpp	31 Mar 2005 03:54:11 -0000	1.31
--- pyext.cpp	7 Apr 2005 15:03:53 -0000	1.32
***************
*** 415,419 ****
  	PyObject *pvar  = PyObject_GetAttrString(pyobj,const_cast<char *>(GetString(s))); /* fetch bound method */
  	if(pvar) {
!         AtomListStatic<16> lst;
          if(GetPyArgs(lst,pvar,1)) {
              // dump value to attribute outlet
--- 415,419 ----
  	PyObject *pvar  = PyObject_GetAttrString(pyobj,const_cast<char *>(GetString(s))); /* fetch bound method */
  	if(pvar) {
!         flext::AtomListStatic<16> lst;
          if(GetPyArgs(lst,pvar,1)) {
              // dump value to attribute outlet

Index: pyext.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/source/pyext.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** pyext.h	31 Mar 2005 03:54:11 -0000	1.21
--- pyext.h	7 Apr 2005 15:03:53 -0000	1.22
***************
*** 77,81 ****
      int siginlets,sigoutlets;
  
!     AtomListStatic<16> initargs;
  
  	virtual bool Reload();
--- 77,81 ----
      int siginlets,sigoutlets;
  
!     flext::AtomListStatic<16> initargs;
  
  	virtual bool Reload();

Index: py.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/source/py.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** py.cpp	31 Mar 2005 03:54:11 -0000	1.22
--- py.cpp	7 Apr 2005 15:03:53 -0000	1.23
***************
*** 332,336 ****
      }
      else {
!         AtomListStatic<16> rargs;
          if(GetPyArgs(rargs,ret)) {
              // call to outlet _outside_ the Mutex lock!
--- 332,336 ----
      }
      else {
!         flext::AtomListStatic<16> rargs;
          if(GetPyArgs(rargs,ret)) {
              // call to outlet _outside_ the Mutex lock!





More information about the Pd-cvs mailing list