From db7bcd346529c35eee37d356138c971f32e3f795 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Wed, 6 Jul 2005 21:39:26 +0000 Subject: added xcode project better reload handling, but still far fom perfect fixed minor other issues bumped version number made some methods static svn path=/trunk/; revision=3296 --- externals/grill/py/source/main.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'externals/grill/py/source/main.h') diff --git a/externals/grill/py/source/main.h b/externals/grill/py/source/main.h index 23a9ccb0..0b94274e 100644 --- a/externals/grill/py/source/main.h +++ b/externals/grill/py/source/main.h @@ -25,7 +25,7 @@ WARRANTIES, see the file, "license.txt," in this distribution. #error PD version >= 0.37 required, please upgrade! #endif -#define PY__VERSION "0.2.0pre" +#define PY__VERSION "0.2.0" #define PYEXT_MODULE "pyext" // name for module @@ -200,19 +200,19 @@ public: // (recursive calls can only happen in the system thread) static int lockcount; - inline PyThreadState *PyLock(PyThreadState *st = FindThreadState()) + static PyThreadState *PyLock(PyThreadState *st = FindThreadState()) { if(!IsSystemThread() || !lockcount++) PyEval_AcquireLock(); return PyThreadState_Swap(st); } - inline PyThreadState *PyLockSys() + static PyThreadState *PyLockSys() { if(!lockcount++) PyEval_AcquireLock(); return PyThreadState_Swap(pythrsys); } - inline void PyUnlock(PyThreadState *st) + static void PyUnlock(PyThreadState *st) { PyThreadState *old = PyThreadState_Swap(st); if(old != pythrsys || !--lockcount) PyEval_ReleaseLock(); @@ -222,9 +222,9 @@ public: inline void Lock() {} inline void Unlock() {} - inline PyThreadState *PyLock(PyThreadState * = NULL) { return NULL; } - inline PyThreadState *PyLockSys() { return NULL; } - inline void PyUnlock(PyThreadState *st) {} + static PyThreadState *PyLock(PyThreadState * = NULL) { return NULL; } + static PyThreadState *PyLockSys() { return NULL; } + static void PyUnlock(PyThreadState *st) {} #endif static PyObject* StdOut_Write(PyObject* Self, PyObject* Args); -- cgit v1.2.1