|
Karsten Hopp |
b787dd |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
b787dd |
Subject: Patch 7.3.958
|
|
Karsten Hopp |
b787dd |
Fcc: outbox
|
|
Karsten Hopp |
b787dd |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
b787dd |
Mime-Version: 1.0
|
|
Karsten Hopp |
b787dd |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
b787dd |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
b787dd |
------------
|
|
Karsten Hopp |
b787dd |
|
|
Karsten Hopp |
b787dd |
Patch 7.3.958
|
|
Karsten Hopp |
b787dd |
Problem: Python: Iteration destructor not set.
|
|
Karsten Hopp |
b787dd |
Solution: Put IterDestructor to use. (ZyX)
|
|
Karsten Hopp |
b787dd |
Files: src/if_py_both.c
|
|
Karsten Hopp |
b787dd |
|
|
Karsten Hopp |
b787dd |
|
|
Karsten Hopp |
b787dd |
*** ../vim-7.3.957/src/if_py_both.h 2013-05-15 17:49:00.000000000 +0200
|
|
Karsten Hopp |
b787dd |
--- src/if_py_both.h 2013-05-15 19:00:19.000000000 +0200
|
|
Karsten Hopp |
b787dd |
***************
|
|
Karsten Hopp |
b787dd |
*** 566,572 ****
|
|
Karsten Hopp |
b787dd |
return (PyObject *)(self);
|
|
Karsten Hopp |
b787dd |
}
|
|
Karsten Hopp |
b787dd |
|
|
Karsten Hopp |
b787dd |
- #if 0 /* unused */
|
|
Karsten Hopp |
b787dd |
static void
|
|
Karsten Hopp |
b787dd |
IterDestructor(PyObject *self)
|
|
Karsten Hopp |
b787dd |
{
|
|
Karsten Hopp |
b787dd |
--- 566,571 ----
|
|
Karsten Hopp |
b787dd |
***************
|
|
Karsten Hopp |
b787dd |
*** 576,582 ****
|
|
Karsten Hopp |
b787dd |
|
|
Karsten Hopp |
b787dd |
DESTRUCTOR_FINISH(self);
|
|
Karsten Hopp |
b787dd |
}
|
|
Karsten Hopp |
b787dd |
- #endif
|
|
Karsten Hopp |
b787dd |
|
|
Karsten Hopp |
b787dd |
static PyObject *
|
|
Karsten Hopp |
b787dd |
IterNext(PyObject *self)
|
|
Karsten Hopp |
b787dd |
--- 575,580 ----
|
|
Karsten Hopp |
b787dd |
***************
|
|
Karsten Hopp |
b787dd |
*** 3823,3828 ****
|
|
Karsten Hopp |
b787dd |
--- 3821,3827 ----
|
|
Karsten Hopp |
b787dd |
IterType.tp_doc = "generic iterator object";
|
|
Karsten Hopp |
b787dd |
IterType.tp_iter = IterIter;
|
|
Karsten Hopp |
b787dd |
IterType.tp_iternext = IterNext;
|
|
Karsten Hopp |
b787dd |
+ IterType.tp_dealloc = IterDestructor;
|
|
Karsten Hopp |
b787dd |
|
|
Karsten Hopp |
b787dd |
vim_memset(&BufferType, 0, sizeof(BufferType));
|
|
Karsten Hopp |
b787dd |
BufferType.tp_name = "vim.buffer";
|
|
Karsten Hopp |
b787dd |
*** ../vim-7.3.957/src/version.c 2013-05-15 18:28:08.000000000 +0200
|
|
Karsten Hopp |
b787dd |
--- src/version.c 2013-05-15 19:05:28.000000000 +0200
|
|
Karsten Hopp |
b787dd |
***************
|
|
Karsten Hopp |
b787dd |
*** 730,731 ****
|
|
Karsten Hopp |
b787dd |
--- 730,733 ----
|
|
Karsten Hopp |
b787dd |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
b787dd |
+ /**/
|
|
Karsten Hopp |
b787dd |
+ 958,
|
|
Karsten Hopp |
b787dd |
/**/
|
|
Karsten Hopp |
b787dd |
|
|
Karsten Hopp |
b787dd |
--
|
|
Karsten Hopp |
b787dd |
Yesterday is history.
|
|
Karsten Hopp |
b787dd |
Tomorrow is a mystery.
|
|
Karsten Hopp |
b787dd |
Today is a gift.
|
|
Karsten Hopp |
b787dd |
That's why it is called 'present'.
|
|
Karsten Hopp |
b787dd |
|
|
Karsten Hopp |
b787dd |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
b787dd |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
b787dd |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
b787dd |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|