From f66c0c2b611dbbbab76389d9c1e7e27f3e159c39 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Oct 17 2006 11:15:09 +0000 Subject: - patchlevel 112 --- diff --git a/7.0.112 b/7.0.112 new file mode 100644 index 0000000..3b6ce3b --- /dev/null +++ b/7.0.112 @@ -0,0 +1,108 @@ +To: vim-dev@vim.org +Subject: Patch 7.0.112 +Fcc: outbox +From: Bram Moolenaar +Mime-Version: 1.0 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: 8bit +------------ + +Patch 7.0.112 +Problem: Python interface does not work with Python 2.5. +Solution: Change PyMem_DEL() to Py_DECREF(). (Sumner Hayes) +Files: src/if_python.c + + +*** ../vim-7.0.111/src/if_python.c Sun Apr 30 20:48:37 2006 +--- src/if_python.c Fri Sep 22 15:08:33 2006 +*************** +*** 1463,1469 **** + if (this->buf && this->buf != INVALID_BUFFER_VALUE) + this->buf->b_python_ref = NULL; + +! PyMem_DEL(self); + } + + static PyObject * +--- 1463,1469 ---- + if (this->buf && this->buf != INVALID_BUFFER_VALUE) + this->buf->b_python_ref = NULL; + +! Py_DECREF(self); + } + + static PyObject * +*************** +*** 1674,1680 **** + bufr = (BufferObject *)BufferNew(buf); + if (bufr == NULL) + { +! PyMem_DEL(self); + return NULL; + } + Py_INCREF(bufr); +--- 1674,1680 ---- + bufr = (BufferObject *)BufferNew(buf); + if (bufr == NULL) + { +! Py_DECREF(self); + return NULL; + } + Py_INCREF(bufr); +*************** +*** 1690,1696 **** + RangeDestructor(PyObject *self) + { + Py_DECREF(((RangeObject *)(self))->buf); +! PyMem_DEL(self); + } + + static PyObject * +--- 1690,1696 ---- + RangeDestructor(PyObject *self) + { + Py_DECREF(((RangeObject *)(self))->buf); +! Py_DECREF(self); + } + + static PyObject * +*************** +*** 1944,1950 **** + if (this->win && this->win != INVALID_WINDOW_VALUE) + this->win->w_python_ref = NULL; + +! PyMem_DEL(self); + } + + static int +--- 1944,1950 ---- + if (this->win && this->win != INVALID_WINDOW_VALUE) + this->win->w_python_ref = NULL; + +! Py_DECREF(self); + } + + static int +*** ../vim-7.0.111/src/version.c Tue Oct 3 14:43:31 2006 +--- src/version.c Tue Oct 3 14:46:10 2006 +*************** +*** 668,669 **** +--- 668,671 ---- + { /* Add new patch number below this line */ ++ /**/ ++ 112, + /**/ + +-- +A salesperson says: Translation: +"backward compatible" Old technology +"Premium" Overpriced +"Can't keep it on the shelf" Unavailable +"Stands alone" Piece of shit +"Proprietary" Incompatible + (Scott Adams - The Dilbert principle) + + /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ +/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ +\\\ download, build and distribute -- http://www.A-A-P.org /// + \\\ help me help AIDS victims -- http://ICCF-Holland.org ///