Update of /cvsroot/mahogany/M/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13307/src/Python
Modified Files:
PythonDll.cpp
Log Message:
hook up additional functions and variables used by recent swig-generated code
Index: PythonDll.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/PythonDll.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -b -u -2 -r1.19 -r1.20
--- PythonDll.cpp 27 Sep 2004 15:51:02 -0000 1.19
+++ PythonDll.cpp 9 Apr 2005 19:56:57 -0000 1.20
@@ -79,4 +79,5 @@
//void(*M_PyErr_SetNone)(PyObject *) = NULL;
void(*M_PyErr_SetString)(PyObject *, const char *) = NULL;
+ PyObject *(*M_PyErr_Format)(PyObject *, const char *, ...) = NULL;
// objects
@@ -92,11 +93,14 @@
int (*M_PyObject_Size)(PyObject *) = NULL;
- // ints
+ // ints and longs
long(*M_PyInt_AsLong)(PyObject *) = NULL;
PyObject*(*M_PyInt_FromLong)(long) = NULL;
+ long (*M_PyLong_AsLong)(PyObject *) = NULL;
+ unsigned long (*M_PyLong_AsUnsignedLong)(PyObject *) = NULL;
+ PyObject*(*M_PyLong_FromUnsignedLong)(unsigned long) = NULL;
PyTypeObject *M_PyInt_Type = NULL;
-
- // longs
PyTypeObject *M_PyLong_Type = NULL;
+ PyIntObject *M__Py_TrueStruct = NULL;
+ PyIntObject *M__Py_ZeroStruct = NULL;
// strings
@@ -187,4 +191,5 @@
PYTHON_FUNC(PyErr_Restore)
PYTHON_FUNC(PyErr_SetString)
+ PYTHON_FUNC(PyErr_Format)
// objects
@@ -198,11 +203,14 @@
PYTHON_FUNC(PyObject_Size)
- // ints
+ // ints and longs
PYTHON_FUNC(PyInt_AsLong)
PYTHON_FUNC(PyInt_FromLong)
+ PYTHON_FUNC(PyLong_FromUnsignedLong)
+ PYTHON_FUNC(PyLong_AsLong)
+ PYTHON_FUNC(PyLong_AsUnsignedLong)
PYTHON_FUNC(PyInt_Type)
-
- // longs
PYTHON_FUNC(PyLong_Type)
+ PYTHON_FUNC(_Py_TrueStruct)
+ PYTHON_FUNC(_Py_ZeroStruct)
// strings
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates