Commit 9f96332e authored by Jim Fulton's avatar Jim Fulton

Added hack to work with Python 1.5.2.

parent a2cb98ae
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE. DAMAGE.
$Id: ThreadLock.c,v 1.4 1998/11/17 20:23:42 jim Exp $ $Id: ThreadLock.c,v 1.5 1998/11/17 21:43:50 jim Exp $
If you have questions regarding this software, If you have questions regarding this software,
contact: contact:
...@@ -46,13 +46,18 @@ ...@@ -46,13 +46,18 @@
*/ */
static char ThreadLock_module_documentation[] = static char ThreadLock_module_documentation[] =
"" ""
"\n$Id: ThreadLock.c,v 1.4 1998/11/17 20:23:42 jim Exp $" "\n$Id: ThreadLock.c,v 1.5 1998/11/17 21:43:50 jim Exp $"
; ;
#include "Python.h" #include "Python.h"
#ifdef WITH_THREAD #ifdef WITH_THREAD
#include "listobject.h"
#ifdef PyList_SET_ITEM
#include "pythread.h"
#else
#include "thread.h" #include "thread.h"
#endif #endif
#endif
static PyObject *ErrorObject; static PyObject *ErrorObject;
...@@ -277,7 +282,7 @@ void ...@@ -277,7 +282,7 @@ void
initThreadLock() initThreadLock()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.4 $"; char *rev="$Revision: 1.5 $";
m = Py_InitModule4("ThreadLock", Module_methods, m = Py_InitModule4("ThreadLock", Module_methods,
ThreadLock_module_documentation, ThreadLock_module_documentation,
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE. DAMAGE.
$Id: ThreadLock.c,v 1.4 1998/11/17 20:23:42 jim Exp $ $Id: ThreadLock.c,v 1.5 1998/11/17 21:43:50 jim Exp $
If you have questions regarding this software, If you have questions regarding this software,
contact: contact:
...@@ -46,13 +46,18 @@ ...@@ -46,13 +46,18 @@
*/ */
static char ThreadLock_module_documentation[] = static char ThreadLock_module_documentation[] =
"" ""
"\n$Id: ThreadLock.c,v 1.4 1998/11/17 20:23:42 jim Exp $" "\n$Id: ThreadLock.c,v 1.5 1998/11/17 21:43:50 jim Exp $"
; ;
#include "Python.h" #include "Python.h"
#ifdef WITH_THREAD #ifdef WITH_THREAD
#include "listobject.h"
#ifdef PyList_SET_ITEM
#include "pythread.h"
#else
#include "thread.h" #include "thread.h"
#endif #endif
#endif
static PyObject *ErrorObject; static PyObject *ErrorObject;
...@@ -277,7 +282,7 @@ void ...@@ -277,7 +282,7 @@ void
initThreadLock() initThreadLock()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.4 $"; char *rev="$Revision: 1.5 $";
m = Py_InitModule4("ThreadLock", Module_methods, m = Py_InitModule4("ThreadLock", Module_methods,
ThreadLock_module_documentation, ThreadLock_module_documentation,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment