[PD-cvs] externals/grill/py/source main.cpp,1.16,1.17 main.h,1.22,1.23 pyext.cpp,1.20,1.21

Thomas Grill xovo at users.sourceforge.net
Mon Sep 27 01:03:18 CEST 2004


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

Modified Files:
	main.cpp main.h pyext.cpp 
Log Message:
 ""

Index: main.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/source/main.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** main.cpp	20 Sep 2004 04:06:08 -0000	1.16
--- main.cpp	26 Sep 2004 23:03:16 -0000	1.17
***************
*** 32,37 ****
  
  #ifdef FLEXT_DEBUG
! 	Py_DebugFlag = 1;
! //	Py_VerboseFlag = 1;
  #endif
  
--- 32,37 ----
  
  #ifdef FLEXT_DEBUG
! //	Py_DebugFlag = 1;
! 	Py_VerboseFlag = 1;
  #endif
  

Index: main.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/source/main.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** main.h	20 Sep 2004 04:06:08 -0000	1.22
--- main.h	26 Sep 2004 23:03:16 -0000	1.23
***************
*** 30,34 ****
  #endif
  
! #define PY__VERSION "0.1.4pre"
  
  
--- 30,34 ----
  #endif
  
! #define PY__VERSION "0.1.4"
  
  

Index: pyext.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/source/pyext.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** pyext.cpp	9 Sep 2004 04:06:33 -0000	1.20
--- pyext.cpp	26 Sep 2004 23:03:16 -0000	1.21
***************
*** 12,16 ****
  #include <flinternal.h>
  
! FLEXT_LIB_V("pyext pyx",pyext)
  
  V pyext::Setup(t_classid c)
--- 12,16 ----
  #include <flinternal.h>
  
! FLEXT_LIB_V("pyext pyext. pyx pyx.",pyext)
  
  V pyext::Setup(t_classid c)
***************
*** 126,129 ****
--- 126,131 ----
      }
  
+     const t_atom *clname = NULL;
+ 
      PY_LOCK
  
***************
*** 159,176 ****
  
          ++apre;
  	}
  
   	Register("_pyext");
  
! //	t_symbol *sobj = NULL;
! 	if(argc > apre) {
! 		// object name
! 		if(!IsString(argv[apre])) 
! 			post("%s - object name argument is invalid",thisName());
! 		else {
! 			methname = GetSymbol(argv[apre]);
! 		}
! 
!         ++apre;
  	}
  
--- 161,179 ----
  
          ++apre;
+ 
+         // check for alias creation names
+         if(strrchr(thisName(),'.')) clname = &scr;
  	}
  
   	Register("_pyext");
  
! 	if(argc > apre || clname) {
!         if(!clname) clname = &argv[apre++];
!     
! 		// class name
! 		if(!IsString(*clname)) 
! 			post("%s - class name argument is invalid",thisName());
! 		else
! 			methname = GetSymbol(*clname);
  	}
  
***************
*** 238,245 ****
  	PY_UNLOCK
  	
!     FLEXT_ASSERT(inlets >= 0 && outlets >= 0);
! 
! 	AddInAnything(1+inlets);  
! 	AddOutAnything(outlets);  
  
  	if(!pyobj)
--- 241,250 ----
  	PY_UNLOCK
  	
!     if(inlets < 0 || outlets < 0)
!         InitProblem();
!     else {
!     	AddInAnything(1+inlets);  
! 	    AddOutAnything(outlets);  
!     }
  
  	if(!pyobj)





More information about the Pd-cvs mailing list