From: Thomas H. <th...@us...> - 2005-07-08 07:57:08
|
Update of /cvsroot/py2exe/py2exe/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13009 Modified Files: Python-dynload.h Python-dynload.c Log Message: Make Py_XINCREF available. Index: Python-dynload.c =================================================================== RCS file: /cvsroot/py2exe/py2exe/source/Python-dynload.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Python-dynload.c 22 Jun 2005 08:52:22 -0000 1.2 --- Python-dynload.c 8 Jul 2005 07:56:57 -0000 1.3 *************** *** 20,23 **** --- 20,29 ---- } + void Py_XINCREF(PyObject *ob) + { + if (ob) + Py_BuildValue("O", ob); + } + int _load_python_FromFile(char *dllname) { *************** *** 50,54 **** return _load_python_FromFile(dllname); ! hmod = MemoryLoadLibrary(dllname, bytes, NULL, NULL); if (hmod == NULL) { return 0; --- 56,60 ---- return _load_python_FromFile(dllname); ! hmod = MemoryLoadLibrary(dllname, bytes); if (hmod == NULL) { return 0; Index: Python-dynload.h =================================================================== RCS file: /cvsroot/py2exe/py2exe/source/Python-dynload.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Python-dynload.h 21 Apr 2005 19:45:58 -0000 1.1 --- Python-dynload.h 8 Jul 2005 07:56:57 -0000 1.2 *************** *** 25,30 **** --- 25,32 ---- #include "import-tab.h" + extern void Py_XINCREF(PyObject *); #define snprintf _snprintf #define Py_DECREF(x) Py_XDECREF(x) + #define Py_INCREF(x) Py_XINCREF(x) extern void Py_XDECREF(PyObject *ob); |