home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.0.240 < prev    next >
Encoding:
Internet Message Format  |  2002-02-19  |  2.4 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.240
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.240
  11. Problem:    Win32: building with Python 2.2 doesn't work.
  12. Solution:   Add support for Python 2.2 with dynamic linking. (Paul Moore)
  13. Files:      src/if_python.c
  14.     
  15.  
  16. *** ../vim60.239/src/if_python.c    Sun Nov  4 14:31:23 2001
  17. --- src/if_python.c    Fri Jan 11 09:53:29 2002
  18. ***************
  19. *** 107,112 ****
  20. --- 107,115 ----
  21.   # define _PyObject_New dll__PyObject_New
  22.   # define _Py_NoneStruct (*dll__Py_NoneStruct)
  23.   # define PyObject_Init dll__PyObject_Init
  24. + # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
  25. + #  define PyType_IsSubtype dll_PyType_IsSubtype
  26. + # endif
  27.   
  28.   /*
  29.    * Pointers for dynamic link
  30. ***************
  31. *** 148,153 ****
  32. --- 151,159 ----
  33.   static PyObject*(*dll__PyObject_New)(PyTypeObject *, PyObject *);
  34.   static PyObject*(*dll__PyObject_Init)(PyObject *, PyTypeObject *);
  35.   static PyObject* dll__Py_NoneStruct;
  36. + # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
  37. + static int (*dll_PyType_IsSubtype)(PyTypeObject *, PyTypeObject *);
  38. + # endif
  39.   
  40.   static HINSTANCE hinstPython = 0; /* Instance of python.dll */
  41.   
  42. ***************
  43. *** 211,216 ****
  44. --- 217,225 ----
  45.       {"_PyObject_New", (PYTHON_PROC*)&dll__PyObject_New},
  46.       {"PyObject_Init", (PYTHON_PROC*)&dll__PyObject_Init},
  47.       {"_Py_NoneStruct", (PYTHON_PROC*)&dll__Py_NoneStruct},
  48. + # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
  49. +     {"PyType_IsSubtype", (PYTHON_PROC*)&dll_PyType_IsSubtype},
  50. + # endif
  51.       {"", NULL},
  52.   };
  53.   
  54. *** ../vim60.239/src/version.c    Wed Feb 20 20:51:35 2002
  55. --- src/version.c    Wed Feb 20 21:19:17 2002
  56. ***************
  57. *** 608,609 ****
  58. --- 608,611 ----
  59.   {   /* Add new patch number below this line */
  60. + /**/
  61. +     240,
  62.   /**/
  63.  
  64. -- 
  65. BEDEVERE:        And what do you burn, apart from witches?
  66. FOURTH VILLAGER: ... Wood?
  67. BEDEVERE:        So why do witches burn?
  68. SECOND VILLAGER: (pianissimo) ... Because they're made of wood...?
  69.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  70.  
  71.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  72. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  73. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  74.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  75.