Karsten Hopp fe1954
To: vim_dev@googlegroups.com
Karsten Hopp fe1954
Subject: Patch 7.3.1043
Karsten Hopp fe1954
Fcc: outbox
Karsten Hopp fe1954
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp fe1954
Mime-Version: 1.0
Karsten Hopp fe1954
Content-Type: text/plain; charset=UTF-8
Karsten Hopp fe1954
Content-Transfer-Encoding: 8bit
Karsten Hopp fe1954
------------
Karsten Hopp fe1954
Karsten Hopp fe1954
Patch 7.3.1043
Karsten Hopp fe1954
Problem:    Python: Dynamic compilation with 2.3 fails.
Karsten Hopp fe1954
Solution:   Python patch 4. (ZyX)
Karsten Hopp fe1954
Files:	    src/if_python.c
Karsten Hopp fe1954
Karsten Hopp fe1954
Karsten Hopp fe1954
*** ../vim-7.3.1042/src/if_python.c	2013-05-29 22:02:18.000000000 +0200
Karsten Hopp fe1954
--- src/if_python.c	2013-05-29 22:04:43.000000000 +0200
Karsten Hopp fe1954
***************
Karsten Hopp fe1954
*** 194,199 ****
Karsten Hopp fe1954
--- 194,200 ----
Karsten Hopp fe1954
  # define PyDict_New dll_PyDict_New
Karsten Hopp fe1954
  # define PyDict_GetItemString dll_PyDict_GetItemString
Karsten Hopp fe1954
  # define PyDict_Next dll_PyDict_Next
Karsten Hopp fe1954
+ # define PyDict_Type (*dll_PyDict_Type)
Karsten Hopp fe1954
  # ifdef PyMapping_Items
Karsten Hopp fe1954
  #  define PY_NO_MAPPING_ITEMS
Karsten Hopp fe1954
  # else
Karsten Hopp fe1954
***************
Karsten Hopp fe1954
*** 234,241 ****
Karsten Hopp fe1954
  # define Py_IsInitialized dll_Py_IsInitialized
Karsten Hopp fe1954
  # define _PyObject_New dll__PyObject_New
Karsten Hopp fe1954
  # define _PyObject_GC_New dll__PyObject_GC_New
Karsten Hopp fe1954
! # define PyObject_GC_Del dll_PyObject_GC_Del
Karsten Hopp fe1954
! # define PyObject_GC_UnTrack dll_PyObject_GC_UnTrack
Karsten Hopp fe1954
  # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02070000
Karsten Hopp fe1954
  #  define _PyObject_NextNotImplemented (*dll__PyObject_NextNotImplemented)
Karsten Hopp fe1954
  # endif
Karsten Hopp fe1954
--- 235,248 ----
Karsten Hopp fe1954
  # define Py_IsInitialized dll_Py_IsInitialized
Karsten Hopp fe1954
  # define _PyObject_New dll__PyObject_New
Karsten Hopp fe1954
  # define _PyObject_GC_New dll__PyObject_GC_New
Karsten Hopp fe1954
! # ifdef PyObject_GC_Del
Karsten Hopp fe1954
! #  define Py_underscore_GC
Karsten Hopp fe1954
! #  define _PyObject_GC_Del dll__PyObject_GC_Del
Karsten Hopp fe1954
! #  define _PyObject_GC_UnTrack dll__PyObject_GC_UnTrack
Karsten Hopp fe1954
! # else
Karsten Hopp fe1954
! #  define PyObject_GC_Del dll_PyObject_GC_Del
Karsten Hopp fe1954
! #  define PyObject_GC_UnTrack dll_PyObject_GC_UnTrack
Karsten Hopp fe1954
! # endif
Karsten Hopp fe1954
  # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02070000
Karsten Hopp fe1954
  #  define _PyObject_NextNotImplemented (*dll__PyObject_NextNotImplemented)
Karsten Hopp fe1954
  # endif
Karsten Hopp fe1954
***************
Karsten Hopp fe1954
*** 247,259 ****
Karsten Hopp fe1954
  # define PyObject_IsTrue dll_PyObject_IsTrue
Karsten Hopp fe1954
  # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
Karsten Hopp fe1954
  #  define PyType_IsSubtype dll_PyType_IsSubtype
Karsten Hopp fe1954
- # endif
Karsten Hopp fe1954
- # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02030000
Karsten Hopp fe1954
  #  ifdef Py_DEBUG
Karsten Hopp fe1954
  #   define _Py_NegativeRefcount dll__Py_NegativeRefcount
Karsten Hopp fe1954
  #   define _Py_RefTotal (*dll__Py_RefTotal)
Karsten Hopp fe1954
  #   define _Py_Dealloc dll__Py_Dealloc
Karsten Hopp fe1954
  #  endif
Karsten Hopp fe1954
  #  if defined(Py_DEBUG) && !defined(Py_DEBUG_NO_PYMALLOC)
Karsten Hopp fe1954
  #   define _PyObject_DebugMalloc dll__PyObject_DebugMalloc
Karsten Hopp fe1954
  #   define _PyObject_DebugFree dll__PyObject_DebugFree
Karsten Hopp fe1954
--- 254,266 ----
Karsten Hopp fe1954
  # define PyObject_IsTrue dll_PyObject_IsTrue
Karsten Hopp fe1954
  # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
Karsten Hopp fe1954
  #  define PyType_IsSubtype dll_PyType_IsSubtype
Karsten Hopp fe1954
  #  ifdef Py_DEBUG
Karsten Hopp fe1954
  #   define _Py_NegativeRefcount dll__Py_NegativeRefcount
Karsten Hopp fe1954
  #   define _Py_RefTotal (*dll__Py_RefTotal)
Karsten Hopp fe1954
  #   define _Py_Dealloc dll__Py_Dealloc
Karsten Hopp fe1954
  #  endif
Karsten Hopp fe1954
+ # endif
Karsten Hopp fe1954
+ # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02030000
Karsten Hopp fe1954
  #  if defined(Py_DEBUG) && !defined(Py_DEBUG_NO_PYMALLOC)
Karsten Hopp fe1954
  #   define _PyObject_DebugMalloc dll__PyObject_DebugMalloc
Karsten Hopp fe1954
  #   define _PyObject_DebugFree dll__PyObject_DebugFree
Karsten Hopp fe1954
***************
Karsten Hopp fe1954
*** 316,322 ****
Karsten Hopp fe1954
  static PyObject*(*dll_PyImport_ImportModule)(const char *);
Karsten Hopp fe1954
  static PyObject*(*dll_PyDict_New)(void);
Karsten Hopp fe1954
  static PyObject*(*dll_PyDict_GetItemString)(PyObject *, const char *);
Karsten Hopp fe1954
! static int (*dll_PyDict_Next)(PyObject *, Py_ssize_t *, PyObject **, PyObject **);
Karsten Hopp fe1954
  # ifndef PY_NO_MAPPING_ITEMS
Karsten Hopp fe1954
  static PyObject* (*dll_PyMapping_Items)(PyObject *);
Karsten Hopp fe1954
  # endif
Karsten Hopp fe1954
--- 323,330 ----
Karsten Hopp fe1954
  static PyObject*(*dll_PyImport_ImportModule)(const char *);
Karsten Hopp fe1954
  static PyObject*(*dll_PyDict_New)(void);
Karsten Hopp fe1954
  static PyObject*(*dll_PyDict_GetItemString)(PyObject *, const char *);
Karsten Hopp fe1954
! static int (*dll_PyDict_Next)(PyObject *, PyInt *, PyObject **, PyObject **);
Karsten Hopp fe1954
! static PyTypeObject* dll_PyDict_Type;
Karsten Hopp fe1954
  # ifndef PY_NO_MAPPING_ITEMS
Karsten Hopp fe1954
  static PyObject* (*dll_PyMapping_Items)(PyObject *);
Karsten Hopp fe1954
  # endif
Karsten Hopp fe1954
***************
Karsten Hopp fe1954
*** 354,361 ****
Karsten Hopp fe1954
--- 362,374 ----
Karsten Hopp fe1954
  static int(*dll_Py_IsInitialized)(void);
Karsten Hopp fe1954
  static PyObject*(*dll__PyObject_New)(PyTypeObject *, PyObject *);
Karsten Hopp fe1954
  static PyObject*(*dll__PyObject_GC_New)(PyTypeObject *);
Karsten Hopp fe1954
+ # ifdef Py_underscore_GC
Karsten Hopp fe1954
+ static void(*dll__PyObject_GC_Del)(void *);
Karsten Hopp fe1954
+ static void(*dll__PyObject_GC_UnTrack)(void *);
Karsten Hopp fe1954
+ # else
Karsten Hopp fe1954
  static void(*dll_PyObject_GC_Del)(void *);
Karsten Hopp fe1954
  static void(*dll_PyObject_GC_UnTrack)(void *);
Karsten Hopp fe1954
+ # endif
Karsten Hopp fe1954
  static PyObject*(*dll__PyObject_Init)(PyObject *, PyTypeObject *);
Karsten Hopp fe1954
  static PyObject* (*dll_PyObject_GetIter)(PyObject *);
Karsten Hopp fe1954
  static int (*dll_PyObject_IsTrue)(PyObject *);
Karsten Hopp fe1954
***************
Karsten Hopp fe1954
*** 367,379 ****
Karsten Hopp fe1954
  static PyObject* dll__Py_TrueStruct;
Karsten Hopp fe1954
  # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
Karsten Hopp fe1954
  static int (*dll_PyType_IsSubtype)(PyTypeObject *, PyTypeObject *);
Karsten Hopp fe1954
- # endif
Karsten Hopp fe1954
- # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02030000
Karsten Hopp fe1954
  #  ifdef Py_DEBUG
Karsten Hopp fe1954
  static void (*dll__Py_NegativeRefcount)(const char *fname, int lineno, PyObject *op);
Karsten Hopp fe1954
! static Py_ssize_t* dll__Py_RefTotal;
Karsten Hopp fe1954
  static void (*dll__Py_Dealloc)(PyObject *obj);
Karsten Hopp fe1954
  #  endif
Karsten Hopp fe1954
  #  if defined(Py_DEBUG) && !defined(Py_DEBUG_NO_PYMALLOC)
Karsten Hopp fe1954
  static void (*dll__PyObject_DebugFree)(void*);
Karsten Hopp fe1954
  static void* (*dll__PyObject_DebugMalloc)(size_t);
Karsten Hopp fe1954
--- 380,392 ----
Karsten Hopp fe1954
  static PyObject* dll__Py_TrueStruct;
Karsten Hopp fe1954
  # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
Karsten Hopp fe1954
  static int (*dll_PyType_IsSubtype)(PyTypeObject *, PyTypeObject *);
Karsten Hopp fe1954
  #  ifdef Py_DEBUG
Karsten Hopp fe1954
  static void (*dll__Py_NegativeRefcount)(const char *fname, int lineno, PyObject *op);
Karsten Hopp fe1954
! static PyInt* dll__Py_RefTotal;
Karsten Hopp fe1954
  static void (*dll__Py_Dealloc)(PyObject *obj);
Karsten Hopp fe1954
  #  endif
Karsten Hopp fe1954
+ # endif
Karsten Hopp fe1954
+ # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02030000
Karsten Hopp fe1954
  #  if defined(Py_DEBUG) && !defined(Py_DEBUG_NO_PYMALLOC)
Karsten Hopp fe1954
  static void (*dll__PyObject_DebugFree)(void*);
Karsten Hopp fe1954
  static void* (*dll__PyObject_DebugMalloc)(size_t);
Karsten Hopp fe1954
***************
Karsten Hopp fe1954
*** 470,475 ****
Karsten Hopp fe1954
--- 483,489 ----
Karsten Hopp fe1954
      {"PyDict_GetItemString", (PYTHON_PROC*)&dll_PyDict_GetItemString},
Karsten Hopp fe1954
      {"PyDict_Next", (PYTHON_PROC*)&dll_PyDict_Next},
Karsten Hopp fe1954
      {"PyDict_New", (PYTHON_PROC*)&dll_PyDict_New},
Karsten Hopp fe1954
+     {"PyDict_Type", (PYTHON_PROC*)&dll_PyDict_Type},
Karsten Hopp fe1954
  # ifndef PY_NO_MAPPING_ITEMS
Karsten Hopp fe1954
      {"PyMapping_Items", (PYTHON_PROC*)&dll_PyMapping_Items},
Karsten Hopp fe1954
  # endif
Karsten Hopp fe1954
***************
Karsten Hopp fe1954
*** 504,511 ****
Karsten Hopp fe1954
--- 518,530 ----
Karsten Hopp fe1954
      {"Py_IsInitialized", (PYTHON_PROC*)&dll_Py_IsInitialized},
Karsten Hopp fe1954
      {"_PyObject_New", (PYTHON_PROC*)&dll__PyObject_New},
Karsten Hopp fe1954
      {"_PyObject_GC_New", (PYTHON_PROC*)&dll__PyObject_GC_New},
Karsten Hopp fe1954
+ # ifdef Py_underscore_GC
Karsten Hopp fe1954
+     {"_PyObject_GC_Del", (PYTHON_PROC*)&dll__PyObject_GC_Del},
Karsten Hopp fe1954
+     {"_PyObject_GC_UnTrack", (PYTHON_PROC*)&dll__PyObject_GC_UnTrack},
Karsten Hopp fe1954
+ # else
Karsten Hopp fe1954
      {"PyObject_GC_Del", (PYTHON_PROC*)&dll_PyObject_GC_Del},
Karsten Hopp fe1954
      {"PyObject_GC_UnTrack", (PYTHON_PROC*)&dll_PyObject_GC_UnTrack},
Karsten Hopp fe1954
+ # endif
Karsten Hopp fe1954
      {"PyObject_Init", (PYTHON_PROC*)&dll__PyObject_Init},
Karsten Hopp fe1954
      {"PyObject_GetIter", (PYTHON_PROC*)&dll_PyObject_GetIter},
Karsten Hopp fe1954
      {"PyObject_IsTrue", (PYTHON_PROC*)&dll_PyObject_IsTrue},
Karsten Hopp fe1954
***************
Karsten Hopp fe1954
*** 516,529 ****
Karsten Hopp fe1954
      {"_Py_ZeroStruct", (PYTHON_PROC*)&dll__Py_ZeroStruct},
Karsten Hopp fe1954
      {"_Py_TrueStruct", (PYTHON_PROC*)&dll__Py_TrueStruct},
Karsten Hopp fe1954
  # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
Karsten Hopp fe1954
-     {"PyType_IsSubtype", (PYTHON_PROC*)&dll_PyType_IsSubtype},
Karsten Hopp fe1954
- # endif
Karsten Hopp fe1954
- # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02030000
Karsten Hopp fe1954
  #  ifdef Py_DEBUG
Karsten Hopp fe1954
      {"_Py_NegativeRefcount", (PYTHON_PROC*)&dll__Py_NegativeRefcount},
Karsten Hopp fe1954
      {"_Py_RefTotal", (PYTHON_PROC*)&dll__Py_RefTotal},
Karsten Hopp fe1954
      {"_Py_Dealloc", (PYTHON_PROC*)&dll__Py_Dealloc},
Karsten Hopp fe1954
  #  endif
Karsten Hopp fe1954
  #  if defined(Py_DEBUG) && !defined(Py_DEBUG_NO_PYMALLOC)
Karsten Hopp fe1954
      {"_PyObject_DebugFree", (PYTHON_PROC*)&dll__PyObject_DebugFree},
Karsten Hopp fe1954
      {"_PyObject_DebugMalloc", (PYTHON_PROC*)&dll__PyObject_DebugMalloc},
Karsten Hopp fe1954
--- 535,548 ----
Karsten Hopp fe1954
      {"_Py_ZeroStruct", (PYTHON_PROC*)&dll__Py_ZeroStruct},
Karsten Hopp fe1954
      {"_Py_TrueStruct", (PYTHON_PROC*)&dll__Py_TrueStruct},
Karsten Hopp fe1954
  # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
Karsten Hopp fe1954
  #  ifdef Py_DEBUG
Karsten Hopp fe1954
      {"_Py_NegativeRefcount", (PYTHON_PROC*)&dll__Py_NegativeRefcount},
Karsten Hopp fe1954
      {"_Py_RefTotal", (PYTHON_PROC*)&dll__Py_RefTotal},
Karsten Hopp fe1954
      {"_Py_Dealloc", (PYTHON_PROC*)&dll__Py_Dealloc},
Karsten Hopp fe1954
  #  endif
Karsten Hopp fe1954
+     {"PyType_IsSubtype", (PYTHON_PROC*)&dll_PyType_IsSubtype},
Karsten Hopp fe1954
+ # endif
Karsten Hopp fe1954
+ # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02030000
Karsten Hopp fe1954
  #  if defined(Py_DEBUG) && !defined(Py_DEBUG_NO_PYMALLOC)
Karsten Hopp fe1954
      {"_PyObject_DebugFree", (PYTHON_PROC*)&dll__PyObject_DebugFree},
Karsten Hopp fe1954
      {"_PyObject_DebugMalloc", (PYTHON_PROC*)&dll__PyObject_DebugMalloc},
Karsten Hopp fe1954
***************
Karsten Hopp fe1954
*** 696,703 ****
Karsten Hopp fe1954
  #endif
Karsten Hopp fe1954
  #ifndef Py_CLEAR
Karsten Hopp fe1954
  # define Py_CLEAR(obj) \
Karsten Hopp fe1954
!     Py_XDECREF(obj); \
Karsten Hopp fe1954
!     obj = NULL;
Karsten Hopp fe1954
  #endif
Karsten Hopp fe1954
  
Karsten Hopp fe1954
  /*
Karsten Hopp fe1954
--- 715,724 ----
Karsten Hopp fe1954
  #endif
Karsten Hopp fe1954
  #ifndef Py_CLEAR
Karsten Hopp fe1954
  # define Py_CLEAR(obj) \
Karsten Hopp fe1954
!     { \
Karsten Hopp fe1954
! 	Py_XDECREF(obj); \
Karsten Hopp fe1954
! 	obj = NULL; \
Karsten Hopp fe1954
!     }
Karsten Hopp fe1954
  #endif
Karsten Hopp fe1954
  
Karsten Hopp fe1954
  /*
Karsten Hopp fe1954
*** ../vim-7.3.1042/src/version.c	2013-05-29 22:02:18.000000000 +0200
Karsten Hopp fe1954
--- src/version.c	2013-05-29 22:04:56.000000000 +0200
Karsten Hopp fe1954
***************
Karsten Hopp fe1954
*** 730,731 ****
Karsten Hopp fe1954
--- 730,733 ----
Karsten Hopp fe1954
  {   /* Add new patch number below this line */
Karsten Hopp fe1954
+ /**/
Karsten Hopp fe1954
+     1043,
Karsten Hopp fe1954
  /**/
Karsten Hopp fe1954
Karsten Hopp fe1954
-- 
Karsten Hopp fe1954
When a fly lands on the ceiling, does it do a half roll or
Karsten Hopp fe1954
a half loop?
Karsten Hopp fe1954
Karsten Hopp fe1954
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp fe1954
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp fe1954
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp fe1954
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///