[PD-cvs] externals/grill/py/source main.cpp,1.23,1.24 main.h,1.30,1.31 pyext.cpp,1.26,1.27
Thomas Grill
xovo at users.sourceforge.net
Sat Feb 26 05:57:50 CET 2005
Update of /cvsroot/pure-data/externals/grill/py/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15178/source
Modified Files:
main.cpp main.h pyext.cpp
Log Message:
- garbage collection at module scope
- better handling of bang messages
better error reporting
Index: pyext.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/source/pyext.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** pyext.cpp 23 Feb 2005 04:57:19 -0000 1.26
--- pyext.cpp 26 Feb 2005 04:57:48 -0000 1.27
***************
*** 245,249 ****
}
! if(gcrun) collect();
}
--- 245,251 ----
}
! if(gcrun && !collect()) {
! post("%s - Unloading: Object is still referenced",thisName());
! }
}
Index: main.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/source/main.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** main.cpp 23 Feb 2005 04:57:18 -0000 1.23
--- main.cpp 26 Feb 2005 04:57:48 -0000 1.24
***************
*** 557,561 ****
#endif
! void py::collect()
{
if(gcollect) {
--- 557,561 ----
#endif
! bool py::collect()
{
if(gcollect) {
***************
*** 569,574 ****
--- 569,576 ----
#endif
Py_DECREF(ret);
+ return false;
}
}
+ return true;
}
Index: main.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/source/main.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** main.h 23 Feb 2005 04:57:19 -0000 1.30
--- main.h 26 Feb 2005 04:57:48 -0000 1.31
***************
*** 133,137 ****
#endif
! static void collect();
private:
--- 133,137 ----
#endif
! static bool collect();
private:
More information about the Pd-cvs
mailing list