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