Karsten Hopp 2cc3cb
To: vim_dev@googlegroups.com
Karsten Hopp 2cc3cb
Subject: Patch 7.3.1053
Karsten Hopp 2cc3cb
Fcc: outbox
Karsten Hopp 2cc3cb
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 2cc3cb
Mime-Version: 1.0
Karsten Hopp 2cc3cb
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 2cc3cb
Content-Transfer-Encoding: 8bit
Karsten Hopp 2cc3cb
------------
Karsten Hopp 2cc3cb
Karsten Hopp 2cc3cb
Patch 7.3.1053
Karsten Hopp 2cc3cb
Problem:    Python: no flag for types with tp_traverse+tp_clear.
Karsten Hopp 2cc3cb
Solution:   Python patch 14: Add Py_TPFLAGS_HAVE_GC. (ZyX)
Karsten Hopp 2cc3cb
Files:	    src/if_py_both.h
Karsten Hopp 2cc3cb
Karsten Hopp 2cc3cb
Karsten Hopp 2cc3cb
*** ../vim-7.3.1052/src/if_py_both.h	2013-05-29 22:52:29.000000000 +0200
Karsten Hopp 2cc3cb
--- src/if_py_both.h	2013-05-29 22:55:08.000000000 +0200
Karsten Hopp 2cc3cb
***************
Karsten Hopp 2cc3cb
*** 4461,4467 ****
Karsten Hopp 2cc3cb
      vim_memset(&IterType, 0, sizeof(IterType));
Karsten Hopp 2cc3cb
      IterType.tp_name = "vim.iter";
Karsten Hopp 2cc3cb
      IterType.tp_basicsize = sizeof(IterObject);
Karsten Hopp 2cc3cb
!     IterType.tp_flags = Py_TPFLAGS_DEFAULT;
Karsten Hopp 2cc3cb
      IterType.tp_doc = "generic iterator object";
Karsten Hopp 2cc3cb
      IterType.tp_iter = (getiterfunc)IterIter;
Karsten Hopp 2cc3cb
      IterType.tp_iternext = (iternextfunc)IterNext;
Karsten Hopp 2cc3cb
--- 4461,4467 ----
Karsten Hopp 2cc3cb
      vim_memset(&IterType, 0, sizeof(IterType));
Karsten Hopp 2cc3cb
      IterType.tp_name = "vim.iter";
Karsten Hopp 2cc3cb
      IterType.tp_basicsize = sizeof(IterObject);
Karsten Hopp 2cc3cb
!     IterType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC;
Karsten Hopp 2cc3cb
      IterType.tp_doc = "generic iterator object";
Karsten Hopp 2cc3cb
      IterType.tp_iter = (getiterfunc)IterIter;
Karsten Hopp 2cc3cb
      IterType.tp_iternext = (iternextfunc)IterNext;
Karsten Hopp 2cc3cb
***************
Karsten Hopp 2cc3cb
*** 4495,4501 ****
Karsten Hopp 2cc3cb
      WindowType.tp_basicsize = sizeof(WindowObject);
Karsten Hopp 2cc3cb
      WindowType.tp_dealloc = (destructor)WindowDestructor;
Karsten Hopp 2cc3cb
      WindowType.tp_repr = (reprfunc)WindowRepr;
Karsten Hopp 2cc3cb
!     WindowType.tp_flags = Py_TPFLAGS_DEFAULT;
Karsten Hopp 2cc3cb
      WindowType.tp_doc = "vim Window object";
Karsten Hopp 2cc3cb
      WindowType.tp_methods = WindowMethods;
Karsten Hopp 2cc3cb
      WindowType.tp_traverse = (traverseproc)WindowTraverse;
Karsten Hopp 2cc3cb
--- 4495,4501 ----
Karsten Hopp 2cc3cb
      WindowType.tp_basicsize = sizeof(WindowObject);
Karsten Hopp 2cc3cb
      WindowType.tp_dealloc = (destructor)WindowDestructor;
Karsten Hopp 2cc3cb
      WindowType.tp_repr = (reprfunc)WindowRepr;
Karsten Hopp 2cc3cb
!     WindowType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC;
Karsten Hopp 2cc3cb
      WindowType.tp_doc = "vim Window object";
Karsten Hopp 2cc3cb
      WindowType.tp_methods = WindowMethods;
Karsten Hopp 2cc3cb
      WindowType.tp_traverse = (traverseproc)WindowTraverse;
Karsten Hopp 2cc3cb
***************
Karsten Hopp 2cc3cb
*** 4558,4564 ****
Karsten Hopp 2cc3cb
      RangeType.tp_repr = (reprfunc)RangeRepr;
Karsten Hopp 2cc3cb
      RangeType.tp_as_sequence = &RangeAsSeq;
Karsten Hopp 2cc3cb
      RangeType.tp_as_mapping = &RangeAsMapping;
Karsten Hopp 2cc3cb
!     RangeType.tp_flags = Py_TPFLAGS_DEFAULT;
Karsten Hopp 2cc3cb
      RangeType.tp_doc = "vim Range object";
Karsten Hopp 2cc3cb
      RangeType.tp_methods = RangeMethods;
Karsten Hopp 2cc3cb
      RangeType.tp_traverse = (traverseproc)RangeTraverse;
Karsten Hopp 2cc3cb
--- 4558,4564 ----
Karsten Hopp 2cc3cb
      RangeType.tp_repr = (reprfunc)RangeRepr;
Karsten Hopp 2cc3cb
      RangeType.tp_as_sequence = &RangeAsSeq;
Karsten Hopp 2cc3cb
      RangeType.tp_as_mapping = &RangeAsMapping;
Karsten Hopp 2cc3cb
!     RangeType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC;
Karsten Hopp 2cc3cb
      RangeType.tp_doc = "vim Range object";
Karsten Hopp 2cc3cb
      RangeType.tp_methods = RangeMethods;
Karsten Hopp 2cc3cb
      RangeType.tp_traverse = (traverseproc)RangeTraverse;
Karsten Hopp 2cc3cb
***************
Karsten Hopp 2cc3cb
*** 4637,4643 ****
Karsten Hopp 2cc3cb
      vim_memset(&OptionsType, 0, sizeof(OptionsType));
Karsten Hopp 2cc3cb
      OptionsType.tp_name = "vim.options";
Karsten Hopp 2cc3cb
      OptionsType.tp_basicsize = sizeof(OptionsObject);
Karsten Hopp 2cc3cb
!     OptionsType.tp_flags = Py_TPFLAGS_DEFAULT;
Karsten Hopp 2cc3cb
      OptionsType.tp_doc = "object for manipulating options";
Karsten Hopp 2cc3cb
      OptionsType.tp_as_mapping = &OptionsAsMapping;
Karsten Hopp 2cc3cb
      OptionsType.tp_dealloc = (destructor)OptionsDestructor;
Karsten Hopp 2cc3cb
--- 4637,4643 ----
Karsten Hopp 2cc3cb
      vim_memset(&OptionsType, 0, sizeof(OptionsType));
Karsten Hopp 2cc3cb
      OptionsType.tp_name = "vim.options";
Karsten Hopp 2cc3cb
      OptionsType.tp_basicsize = sizeof(OptionsObject);
Karsten Hopp 2cc3cb
!     OptionsType.tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC;
Karsten Hopp 2cc3cb
      OptionsType.tp_doc = "object for manipulating options";
Karsten Hopp 2cc3cb
      OptionsType.tp_as_mapping = &OptionsAsMapping;
Karsten Hopp 2cc3cb
      OptionsType.tp_dealloc = (destructor)OptionsDestructor;
Karsten Hopp 2cc3cb
*** ../vim-7.3.1052/src/version.c	2013-05-29 22:52:29.000000000 +0200
Karsten Hopp 2cc3cb
--- src/version.c	2013-05-29 22:54:46.000000000 +0200
Karsten Hopp 2cc3cb
***************
Karsten Hopp 2cc3cb
*** 730,731 ****
Karsten Hopp 2cc3cb
--- 730,733 ----
Karsten Hopp 2cc3cb
  {   /* Add new patch number below this line */
Karsten Hopp 2cc3cb
+ /**/
Karsten Hopp 2cc3cb
+     1053,
Karsten Hopp 2cc3cb
  /**/
Karsten Hopp 2cc3cb
Karsten Hopp 2cc3cb
-- 
Karsten Hopp 2cc3cb
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 2cc3cb
26. You check your mail. It says "no new messages." So you check it again.
Karsten Hopp 2cc3cb
Karsten Hopp 2cc3cb
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 2cc3cb
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 2cc3cb
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 2cc3cb
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///