|
Karsten Hopp |
91585d |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
91585d |
Subject: Patch 7.3.583
|
|
Karsten Hopp |
91585d |
Fcc: outbox
|
|
Karsten Hopp |
91585d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
91585d |
Mime-Version: 1.0
|
|
Karsten Hopp |
91585d |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
91585d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
91585d |
------------
|
|
Karsten Hopp |
91585d |
|
|
Karsten Hopp |
91585d |
Patch 7.3.583
|
|
Karsten Hopp |
91585d |
Problem: PyObject_NextNotImplemented is not defined before Python 2.7.
|
|
Karsten Hopp |
91585d |
(Danek Duvall)
|
|
Karsten Hopp |
91585d |
Solution: Add #ifdefs.
|
|
Karsten Hopp |
91585d |
Files: src/if_python.c
|
|
Karsten Hopp |
91585d |
|
|
Karsten Hopp |
91585d |
|
|
Karsten Hopp |
91585d |
*** ../vim-7.3.582/src/if_python.c 2012-06-29 19:14:48.000000000 +0200
|
|
Karsten Hopp |
91585d |
--- src/if_python.c 2012-06-30 12:59:38.000000000 +0200
|
|
Karsten Hopp |
91585d |
***************
|
|
Karsten Hopp |
91585d |
*** 214,220 ****
|
|
Karsten Hopp |
91585d |
# define Py_Finalize dll_Py_Finalize
|
|
Karsten Hopp |
91585d |
# define Py_IsInitialized dll_Py_IsInitialized
|
|
Karsten Hopp |
91585d |
# define _PyObject_New dll__PyObject_New
|
|
Karsten Hopp |
91585d |
! # define _PyObject_NextNotImplemented (*dll__PyObject_NextNotImplemented)
|
|
Karsten Hopp |
91585d |
# define _Py_NoneStruct (*dll__Py_NoneStruct)
|
|
Karsten Hopp |
91585d |
# define PyObject_Init dll__PyObject_Init
|
|
Karsten Hopp |
91585d |
# define PyObject_GetIter dll_PyObject_GetIter
|
|
Karsten Hopp |
91585d |
--- 214,222 ----
|
|
Karsten Hopp |
91585d |
# define Py_Finalize dll_Py_Finalize
|
|
Karsten Hopp |
91585d |
# define Py_IsInitialized dll_Py_IsInitialized
|
|
Karsten Hopp |
91585d |
# define _PyObject_New dll__PyObject_New
|
|
Karsten Hopp |
91585d |
! # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02070000
|
|
Karsten Hopp |
91585d |
! # define _PyObject_NextNotImplemented (*dll__PyObject_NextNotImplemented)
|
|
Karsten Hopp |
91585d |
! # endif
|
|
Karsten Hopp |
91585d |
# define _Py_NoneStruct (*dll__Py_NoneStruct)
|
|
Karsten Hopp |
91585d |
# define PyObject_Init dll__PyObject_Init
|
|
Karsten Hopp |
91585d |
# define PyObject_GetIter dll_PyObject_GetIter
|
|
Karsten Hopp |
91585d |
***************
|
|
Karsten Hopp |
91585d |
*** 310,316 ****
|
|
Karsten Hopp |
91585d |
--- 312,320 ----
|
|
Karsten Hopp |
91585d |
static PyObject*(*dll__PyObject_New)(PyTypeObject *, PyObject *);
|
|
Karsten Hopp |
91585d |
static PyObject*(*dll__PyObject_Init)(PyObject *, PyTypeObject *);
|
|
Karsten Hopp |
91585d |
static PyObject* (*dll_PyObject_GetIter)(PyObject *);
|
|
Karsten Hopp |
91585d |
+ # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02070000
|
|
Karsten Hopp |
91585d |
static iternextfunc dll__PyObject_NextNotImplemented;
|
|
Karsten Hopp |
91585d |
+ # endif
|
|
Karsten Hopp |
91585d |
static PyObject* dll__Py_NoneStruct;
|
|
Karsten Hopp |
91585d |
# if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
|
|
Karsten Hopp |
91585d |
static int (*dll_PyType_IsSubtype)(PyTypeObject *, PyTypeObject *);
|
|
Karsten Hopp |
91585d |
***************
|
|
Karsten Hopp |
91585d |
*** 430,436 ****
|
|
Karsten Hopp |
91585d |
--- 434,442 ----
|
|
Karsten Hopp |
91585d |
{"_PyObject_New", (PYTHON_PROC*)&dll__PyObject_New},
|
|
Karsten Hopp |
91585d |
{"PyObject_Init", (PYTHON_PROC*)&dll__PyObject_Init},
|
|
Karsten Hopp |
91585d |
{"PyObject_GetIter", (PYTHON_PROC*)&dll_PyObject_GetIter},
|
|
Karsten Hopp |
91585d |
+ # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02070000
|
|
Karsten Hopp |
91585d |
{"_PyObject_NextNotImplemented", (PYTHON_PROC*)&dll__PyObject_NextNotImplemented},
|
|
Karsten Hopp |
91585d |
+ # endif
|
|
Karsten Hopp |
91585d |
{"_Py_NoneStruct", (PYTHON_PROC*)&dll__Py_NoneStruct},
|
|
Karsten Hopp |
91585d |
# if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
|
|
Karsten Hopp |
91585d |
{"PyType_IsSubtype", (PYTHON_PROC*)&dll_PyType_IsSubtype},
|
|
Karsten Hopp |
91585d |
*** ../vim-7.3.582/src/version.c 2012-06-29 23:57:50.000000000 +0200
|
|
Karsten Hopp |
91585d |
--- src/version.c 2012-06-30 13:20:46.000000000 +0200
|
|
Karsten Hopp |
91585d |
***************
|
|
Karsten Hopp |
91585d |
*** 716,717 ****
|
|
Karsten Hopp |
91585d |
--- 716,719 ----
|
|
Karsten Hopp |
91585d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
91585d |
+ /**/
|
|
Karsten Hopp |
91585d |
+ 583,
|
|
Karsten Hopp |
91585d |
/**/
|
|
Karsten Hopp |
91585d |
|
|
Karsten Hopp |
91585d |
--
|
|
Karsten Hopp |
91585d |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
91585d |
90. Instead of calling you to dinner, your spouse sends e-mail.
|
|
Karsten Hopp |
91585d |
|
|
Karsten Hopp |
91585d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
91585d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
91585d |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
91585d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|